Migrate to font-awesome-sass
This commit is contained in:
parent
2c56cd7a96
commit
f806e8bcff
2
Gemfile
2
Gemfile
|
@ -42,7 +42,7 @@ gem 'bootstrap-sass'
|
||||||
gem 'bootstrap-sass-extras'
|
gem 'bootstrap-sass-extras'
|
||||||
gem 'bootswatch-rails'
|
gem 'bootswatch-rails'
|
||||||
gem 'autoprefixer-rails'
|
gem 'autoprefixer-rails'
|
||||||
gem 'font-awesome-rails'
|
gem 'font-awesome-sass'
|
||||||
|
|
||||||
gem 'nested_form'
|
gem 'nested_form'
|
||||||
gem 'jquery-datatables-rails'
|
gem 'jquery-datatables-rails'
|
||||||
|
|
|
@ -117,8 +117,8 @@ GEM
|
||||||
faker (1.4.3)
|
faker (1.4.3)
|
||||||
i18n (~> 0.5)
|
i18n (~> 0.5)
|
||||||
ffi (1.9.8)
|
ffi (1.9.8)
|
||||||
font-awesome-rails (4.3.0.0)
|
font-awesome-sass (4.3.2.1)
|
||||||
railties (>= 3.2, < 5.0)
|
sass (~> 3.2)
|
||||||
formatador (0.2.5)
|
formatador (0.2.5)
|
||||||
globalid (0.3.5)
|
globalid (0.3.5)
|
||||||
activesupport (>= 4.1.0)
|
activesupport (>= 4.1.0)
|
||||||
|
@ -343,7 +343,7 @@ DEPENDENCIES
|
||||||
devise-i18n
|
devise-i18n
|
||||||
factory_girl_rails
|
factory_girl_rails
|
||||||
faker
|
faker
|
||||||
font-awesome-rails
|
font-awesome-sass
|
||||||
globalize
|
globalize
|
||||||
guard-rspec
|
guard-rspec
|
||||||
hirb
|
hirb
|
||||||
|
|
|
@ -49,14 +49,14 @@ html
|
||||||
ul.nav#side-menu
|
ul.nav#side-menu
|
||||||
li class="#{controller_name == 'conferences' ? 'active' : nil}"
|
li class="#{controller_name == 'conferences' ? 'active' : nil}"
|
||||||
= link_to management_conferences_path
|
= link_to management_conferences_path
|
||||||
= fa_icon 'group fw', text: Conference.model_name.human(count: 2).mb_chars.capitalize
|
= icon 'group', Conference.model_name.human(count: 2).mb_chars.capitalize, class: 'fw'
|
||||||
ul.nav.nav-second-level
|
ul.nav.nav-second-level
|
||||||
- Conference.all.each do |conference|
|
- Conference.all.each do |conference|
|
||||||
li
|
li
|
||||||
= link_to conference.title, management_conference_path(conference)
|
= link_to conference.title, management_conference_path(conference)
|
||||||
li class="#{controller_name == 'users' ? 'active' : nil}"
|
li class="#{controller_name == 'users' ? 'active' : nil}"
|
||||||
= link_to management_users_path
|
= link_to management_users_path
|
||||||
= fa_icon 'user fw', text: User.model_name.human(count: 2).mb_chars.capitalize
|
= icon 'user', User.model_name.human(count: 2).mb_chars.capitalize, class: 'fw'
|
||||||
|
|
||||||
|
|
||||||
div.content#page-wrapper
|
div.content#page-wrapper
|
||||||
|
|
|
@ -5,17 +5,17 @@ tr
|
||||||
td.action
|
td.action
|
||||||
- if conference.call_for_papers_open?
|
- if conference.call_for_papers_open?
|
||||||
= link_to cfp_management_conference_path(conference), method: :delete, class: 'btn btn-sm btn-success cfp-toggle', remote: true, onclick: '$(".cfp-toggle").addClass("disabled")'
|
= link_to cfp_management_conference_path(conference), method: :delete, class: 'btn btn-sm btn-success cfp-toggle', remote: true, onclick: '$(".cfp-toggle").addClass("disabled")'
|
||||||
= fa_icon 'dot-circle-o fw'
|
= icon 'dot-circle-o', '', class: 'fa-fw'
|
||||||
- else
|
- else
|
||||||
= link_to cfp_management_conference_path(conference), method: :post, class: 'btn btn-sm btn-warning cfp-toggle', remote: true, onclick: '$(".cfp-toggle").addClass("disabled")'
|
= link_to cfp_management_conference_path(conference), method: :post, class: 'btn btn-sm btn-warning cfp-toggle', remote: true, onclick: '$(".cfp-toggle").addClass("disabled")'
|
||||||
= fa_icon 'circle-o fw'
|
= icon 'circle-o', class: 'fa-fw'
|
||||||
|
|
||||||
td = conference.events.count
|
td = conference.events.count
|
||||||
td.actions
|
td.actions
|
||||||
div.btn-group.btn-group-sm
|
div.btn-group.btn-group-sm
|
||||||
= link_to management_conference_path(conference), title: t('actions.view.button', model: Conference.model_name.human), class: 'btn btn-info'
|
= link_to management_conference_path(conference), title: t('actions.view.button', model: Conference.model_name.human), class: 'btn btn-info'
|
||||||
= fa_icon :eye
|
= icon :eye
|
||||||
= link_to edit_management_conference_path(conference), title: t('actions.edit.button', model: Conference.model_name.human), class: 'btn btn-primary'
|
= link_to edit_management_conference_path(conference), title: t('actions.edit.button', model: Conference.model_name.human), class: 'btn btn-primary'
|
||||||
= fa_icon :edit
|
= icon :edit
|
||||||
= link_to management_conference_path(conference), title: t('actions.destroy.button', model: Conference.model_name.human), class: ['btn', 'btn-danger', conference.events.any? ? 'disabled' : nil], remote: true, method: :delete, data: {confirm: t('actions.are_you_sure')}
|
= link_to management_conference_path(conference), title: t('actions.destroy.button', model: Conference.model_name.human), class: ['btn', 'btn-danger', conference.events.any? ? 'disabled' : nil], remote: true, method: :delete, data: {confirm: t('actions.are_you_sure')}
|
||||||
= fa_icon :trash
|
= icon :trash
|
||||||
|
|
|
@ -5,7 +5,7 @@ div#halls
|
||||||
.panel-heading
|
.panel-heading
|
||||||
.panel-title
|
.panel-title
|
||||||
= Hall.model_name.human.mb_chars.capitalize
|
= Hall.model_name.human.mb_chars.capitalize
|
||||||
= ff.link_to_remove fa_icon(:remove), class: ['btn', 'btn-danger', 'btn-xs', 'pull-right']
|
= ff.link_to_remove icon(:remove), class: ['btn', 'btn-danger', 'btn-xs', 'pull-right']
|
||||||
span.clearfix
|
span.clearfix
|
||||||
.panel-body
|
.panel-body
|
||||||
= ff.input :name
|
= ff.input :name
|
||||||
|
|
|
@ -5,7 +5,7 @@ div#tracks
|
||||||
.panel-heading
|
.panel-heading
|
||||||
.panel-title
|
.panel-title
|
||||||
= Track.model_name.human.mb_chars.capitalize
|
= Track.model_name.human.mb_chars.capitalize
|
||||||
= ff.link_to_remove fa_icon(:remove), class: ['btn', 'btn-danger', 'btn-xs', 'pull-right', ff.object.events.any? ? 'disabled' : nil]
|
= ff.link_to_remove icon(:remove), class: ['btn', 'btn-danger', 'btn-xs', 'pull-right', ff.object.events.any? ? 'disabled' : nil]
|
||||||
|
|
||||||
.panel-body
|
.panel-body
|
||||||
= ff.input :name
|
= ff.input :name
|
||||||
|
|
|
@ -21,4 +21,4 @@
|
||||||
.panel-footer
|
.panel-footer
|
||||||
.text-right
|
.text-right
|
||||||
= link_to new_management_conference_path, class: 'btn btn-primary'
|
= link_to new_management_conference_path, class: 'btn btn-primary'
|
||||||
=> fa_icon 'plus fw', text: t('actions.create.button', model: Conference.model_name.human)
|
=> icon 'plus', t('actions.create.button', model: Conference.model_name.human), class: 'fa-fw'
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
.panel-heading
|
.panel-heading
|
||||||
.row
|
.row
|
||||||
.col-xs-3
|
.col-xs-3
|
||||||
= fa_icon 'files-o 5x'
|
= icon 'files-o', '', class: 'fa-5x'
|
||||||
.col-xs-9.text-right
|
.col-xs-9.text-right
|
||||||
.huge
|
.huge
|
||||||
= @conference.events.count
|
= @conference.events.count
|
||||||
|
@ -19,14 +19,14 @@
|
||||||
= link_to management_conference_events_path(@conference)
|
= link_to management_conference_events_path(@conference)
|
||||||
.panel-footer.text-primary
|
.panel-footer.text-primary
|
||||||
span.pull-left = t 'views.conference.see_details'
|
span.pull-left = t 'views.conference.see_details'
|
||||||
span.pull-right = fa_icon 'arrow-circle-right'
|
span.pull-right = icon 'arrow-circle-right'
|
||||||
span.clearfix
|
span.clearfix
|
||||||
.col-lg-3.col-md-6
|
.col-lg-3.col-md-6
|
||||||
.panel.panel-danger
|
.panel.panel-danger
|
||||||
.panel-heading
|
.panel-heading
|
||||||
.row
|
.row
|
||||||
.col-xs-3
|
.col-xs-3
|
||||||
= fa_icon 'thumbs-down 5x'
|
= icon 'thumbs-down', '', class: 'fa-5x'
|
||||||
.col-xs-9.text-right
|
.col-xs-9.text-right
|
||||||
.huge
|
.huge
|
||||||
= @conference.events.rejected.count
|
= @conference.events.rejected.count
|
||||||
|
@ -35,14 +35,14 @@
|
||||||
= link_to rejected_management_conference_events_path(@conference)
|
= link_to rejected_management_conference_events_path(@conference)
|
||||||
.panel-footer.text-danger
|
.panel-footer.text-danger
|
||||||
span.pull-left = t 'views.conference.see_details'
|
span.pull-left = t 'views.conference.see_details'
|
||||||
span.pull-right = fa_icon 'arrow-circle-right'
|
span.pull-right = icon 'arrow-circle-right'
|
||||||
span.clearfix
|
span.clearfix
|
||||||
.col-lg-3.col-md-6
|
.col-lg-3.col-md-6
|
||||||
.panel.panel-info
|
.panel.panel-info
|
||||||
.panel-heading
|
.panel-heading
|
||||||
.row
|
.row
|
||||||
.col-xs-3
|
.col-xs-3
|
||||||
= fa_icon 'thumbs-up 5x'
|
= icon 'thumbs-up', class: 'fa-5x'
|
||||||
.col-xs-9.text-right
|
.col-xs-9.text-right
|
||||||
.huge
|
.huge
|
||||||
= @conference.events.approved.count
|
= @conference.events.approved.count
|
||||||
|
@ -51,14 +51,14 @@
|
||||||
= link_to approved_management_conference_events_path(@conference)
|
= link_to approved_management_conference_events_path(@conference)
|
||||||
.panel-footer.text-info
|
.panel-footer.text-info
|
||||||
span.pull-left = t 'views.conference.see_details'
|
span.pull-left = t 'views.conference.see_details'
|
||||||
span.pull-right = fa_icon 'arrow-circle-right'
|
span.pull-right = icon 'arrow-circle-right'
|
||||||
span.clearfix
|
span.clearfix
|
||||||
.col-lg-3.col-md-6
|
.col-lg-3.col-md-6
|
||||||
.panel.panel-success
|
.panel.panel-success
|
||||||
.panel-heading
|
.panel-heading
|
||||||
.row
|
.row
|
||||||
.col-xs-3
|
.col-xs-3
|
||||||
= fa_icon 'check 5x'
|
= icon 'check', '', class: 'fa-5x'
|
||||||
.col-xs-9.text-right
|
.col-xs-9.text-right
|
||||||
.huge
|
.huge
|
||||||
= @conference.events.approved.confirmed.count
|
= @conference.events.approved.confirmed.count
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
= link_to confirmed_management_conference_events_path(@conference)
|
= link_to confirmed_management_conference_events_path(@conference)
|
||||||
.panel-footer.text-success
|
.panel-footer.text-success
|
||||||
span.pull-left = t 'views.conference.see_details'
|
span.pull-left = t 'views.conference.see_details'
|
||||||
span.pull-right = fa_icon 'arrow-circle-right'
|
span.pull-right = icon 'arrow-circle-right'
|
||||||
span.clearfix
|
span.clearfix
|
||||||
.row
|
.row
|
||||||
.col-lg-12
|
.col-lg-12
|
||||||
|
|
|
@ -25,18 +25,18 @@
|
||||||
= @suggestion.user.speaker_profile.name
|
= @suggestion.user.speaker_profile.name
|
||||||
- if @suggestion.user.speaker_profile.organisation.present?
|
- if @suggestion.user.speaker_profile.organisation.present?
|
||||||
div
|
div
|
||||||
=> fa_icon(:briefcase)
|
=> icon(:briefcase)
|
||||||
= @suggestion.user.speaker_profile.organisation
|
= @suggestion.user.speaker_profile.organisation
|
||||||
|
|
||||||
div.social
|
div.social
|
||||||
= link_to "mailto://#{@suggestion.user.email}"
|
= link_to "mailto://#{@suggestion.user.email}"
|
||||||
= fa_icon :envelope
|
= icon :envelope
|
||||||
- if @suggestion.user.speaker_profile.github.present?
|
- if @suggestion.user.speaker_profile.github.present?
|
||||||
= link_to "https://github.com/#{@suggestion.user.speaker_profile.github}"
|
= link_to "https://github.com/#{@suggestion.user.speaker_profile.github}"
|
||||||
= fa_icon :github
|
= icon :github
|
||||||
- if @suggestion.user.speaker_profile.twitter.present?
|
- if @suggestion.user.speaker_profile.twitter.present?
|
||||||
= link_to "https://twitter.com/#{@suggestion.user.speaker_profile.twitter}"
|
= link_to "https://twitter.com/#{@suggestion.user.speaker_profile.twitter}"
|
||||||
= fa_icon :twitter
|
= icon :twitter
|
||||||
|
|
||||||
h4 = @suggestion.class.human_attribute_name(:abstract)
|
h4 = @suggestion.class.human_attribute_name(:abstract)
|
||||||
= simple_format @suggestion.abstract
|
= simple_format @suggestion.abstract
|
||||||
|
|
|
@ -11,17 +11,17 @@
|
||||||
= @user.speaker_profile.name
|
= @user.speaker_profile.name
|
||||||
- if @user.speaker_profile.organisation.present?
|
- if @user.speaker_profile.organisation.present?
|
||||||
div
|
div
|
||||||
=> fa_icon(:briefcase)
|
=> icon(:briefcase)
|
||||||
= @user.speaker_profile.organisation
|
= @user.speaker_profile.organisation
|
||||||
div.social
|
div.social
|
||||||
= link_to "mailto://#{@user.email}"
|
= link_to "mailto://#{@user.email}"
|
||||||
= fa_icon :envelope
|
= icon :envelope
|
||||||
- if @user.speaker_profile.github.present?
|
- if @user.speaker_profile.github.present?
|
||||||
= link_to "https://github.com/#{@user.speaker_profile.github}"
|
= link_to "https://github.com/#{@user.speaker_profile.github}"
|
||||||
= fa_icon :github
|
= icon :github
|
||||||
- if @user.speaker_profile.twitter.present?
|
- if @user.speaker_profile.twitter.present?
|
||||||
= link_to "https://twitter.com/#{@user.speaker_profile.twitter}"
|
= link_to "https://twitter.com/#{@user.speaker_profile.twitter}"
|
||||||
= fa_icon :twitter
|
= icon :twitter
|
||||||
|
|
||||||
hr
|
hr
|
||||||
|
|
||||||
|
@ -30,10 +30,10 @@
|
||||||
|
|
||||||
h5 = t :contacts
|
h5 = t :contacts
|
||||||
- if @user.speaker_profile.twitter.present?
|
- if @user.speaker_profile.twitter.present?
|
||||||
p #{fa_icon(:twitter)} @#{@user.speaker_profile.twitter}
|
p #{icon(:twitter)} @#{@user.speaker_profile.twitter}
|
||||||
- if @user.speaker_profile.public_email.present?
|
- if @user.speaker_profile.public_email.present?
|
||||||
p #{fa_icon(:envelope)} #{@user.speaker_profile.public_email} (#{t(:public)})
|
p #{icon(:envelope)} #{@user.speaker_profile.public_email} (#{t(:public)})
|
||||||
p #{fa_icon(:envelope)} #{@user.email} (#{t(:private)})
|
p #{icon(:envelope)} #{@user.email} (#{t(:private)})
|
||||||
p #{glyph(:phone)} #{Phony.format(@user.speaker_profile.mobile_phone, format: :international)}
|
p #{glyph(:phone)} #{Phony.format(@user.speaker_profile.mobile_phone, format: :international)}
|
||||||
|
|
||||||
.modal-footer
|
.modal-footer
|
||||||
|
|
Loading…
Reference in New Issue