From f656ad15617834915e2af40f848cd28ac9f37350 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Fri, 30 Mar 2018 17:03:44 +0200 Subject: [PATCH] Fix fa icons [SCI-2217] --- Gemfile | 1 - app/datatables/protocol_linked_children_datatable.rb | 2 +- app/javascript/packs/fontawesome.scss | 2 +- .../Navigation/components/NotificationImage.jsx | 4 ++-- .../Navigation/components/NotificationsDropdown.jsx | 2 +- .../components/Navigation/components/TeamSwitch.jsx | 2 +- app/javascript/src/components/Navigation/index.jsx | 2 +- app/javascript/src/components/Spinner.jsx | 2 +- .../scenes/SettingsPage/scenes/preferences/index.jsx | 2 +- app/views/projects/show/_new_experiment.html.erb | 10 +++++----- .../reports/elements/_experiment_element.html.erb | 4 ++-- .../elements/_my_module_repository_element.html.erb | 4 ++-- .../repositories/_repository_row_info_modal.html.erb | 2 +- app/views/samples/_info_sample_modal.html.erb | 2 +- app/views/search/index.html.erb | 4 ++-- app/views/search/results/_experiments.html.erb | 2 +- app/views/search/results/_repositories.html.erb | 2 +- app/views/shared/_file_preview_icon.html.erb | 2 +- app/views/shared/_left_menu_bar.html.erb | 2 +- app/views/shared/_navigation.html.erb | 2 +- app/views/shared/_secondary_navigation.html.erb | 8 ++++---- .../user_notifications/icons/_assignment.html.erb | 4 +++- app/views/user_notifications/icons/_deliver.html.erb | 4 +++- .../users/settings/account/preferences/index.html.erb | 4 +++- config/locales/en.yml | 2 +- 25 files changed, 41 insertions(+), 36 deletions(-) diff --git a/Gemfile b/Gemfile index 085f7e219..64c4ef104 100644 --- a/Gemfile +++ b/Gemfile @@ -13,7 +13,6 @@ gem 'bootstrap-sass', '~> 3.3.7' gem 'sass-rails', '~> 5.0.6' gem 'bootstrap_form' gem 'yomu' -gem 'font-awesome-rails', '~> 4.7.0.2' gem 'recaptcha', require: 'recaptcha/rails' gem 'sanitize', '~> 4.4' gem 'omniauth' diff --git a/app/datatables/protocol_linked_children_datatable.rb b/app/datatables/protocol_linked_children_datatable.rb index eb7bccbf1..cf2757def 100644 --- a/app/datatables/protocol_linked_children_datatable.rb +++ b/app/datatables/protocol_linked_children_datatable.rb @@ -61,7 +61,7 @@ class ProtocolLinkedChildrenDatatable < CustomDatatable locals: { project: record.my_module.experiment.project } ) res += '' - res += "
  •  " + res += "
  •  " res += @controller.render_to_string( partial: 'search/results/partials/experiment_text.html.erb', locals: { experiment: record.my_module.experiment } diff --git a/app/javascript/packs/fontawesome.scss b/app/javascript/packs/fontawesome.scss index 5c64e04bf..bd5b619da 100644 --- a/app/javascript/packs/fontawesome.scss +++ b/app/javascript/packs/fontawesome.scss @@ -1,4 +1,4 @@ $fa-font-path: "~@fortawesome/fontawesome-free-webfonts/webfonts/"; @import "~@fortawesome/fontawesome-free-webfonts/scss/fontawesome"; -@import "~@fortawesome/fontawesome-free-webfonts/scss/fa-regular"; +@import "~@fortawesome/fontawesome-free-webfonts/scss/fa-solid"; diff --git a/app/javascript/src/components/Navigation/components/NotificationImage.jsx b/app/javascript/src/components/Navigation/components/NotificationImage.jsx index bcc04459c..44fbfb37e 100644 --- a/app/javascript/src/components/Navigation/components/NotificationImage.jsx +++ b/app/javascript/src/components/Navigation/components/NotificationImage.jsx @@ -25,12 +25,12 @@ const NotificationImage = ({className, type, avatar}: Props) => { ), deliver: ( - + ), assignment: ( - + ) } diff --git a/app/javascript/src/components/Navigation/components/NotificationsDropdown.jsx b/app/javascript/src/components/Navigation/components/NotificationsDropdown.jsx index 2aa7cbcc0..28aedfe66 100644 --- a/app/javascript/src/components/Navigation/components/NotificationsDropdown.jsx +++ b/app/javascript/src/components/Navigation/components/NotificationsDropdown.jsx @@ -141,7 +141,7 @@ class NotificationsDropdown extends Component { this.dropdown = el; }} > -   +   diff --git a/app/javascript/src/components/Navigation/components/TeamSwitch.jsx b/app/javascript/src/components/Navigation/components/TeamSwitch.jsx index ed7ae772d..e1e41d69c 100644 --- a/app/javascript/src/components/Navigation/components/TeamSwitch.jsx +++ b/app/javascript/src/components/Navigation/components/TeamSwitch.jsx @@ -80,7 +80,7 @@ class TeamSwitch extends Component { onClick={this.setTeams} title={ -  {this.props.current_team.name} +  {this.props.current_team.name} } id="team-switch" diff --git a/app/javascript/src/components/Navigation/index.jsx b/app/javascript/src/components/Navigation/index.jsx index 249d1a1e0..be939c850 100644 --- a/app/javascript/src/components/Navigation/index.jsx +++ b/app/javascript/src/components/Navigation/index.jsx @@ -107,7 +107,7 @@ class Navigation extends Component {