From: Ward Vandewege Date: Sat, 8 Oct 2016 15:24:35 +0000 (-0400) Subject: Small naming fix for the config variables. X-Git-Tag: 1.1.0~682 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/f853c2c7f2283b57a4f215aeb288b2842e3d1843 Small naming fix for the config variables. refs #10078 --- diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb index 5b3f3f59ec..3b6c89ec0e 100644 --- a/apps/workbench/app/controllers/application_controller.rb +++ b/apps/workbench/app/controllers/application_controller.rb @@ -769,7 +769,7 @@ class ApplicationController < ActionController::Base helper_method :user_notifications def user_notifications - return [] if @errors or not current_user.andand.is_active or not Rails.configuration.show_user_notifications_in_dashboard + return [] if @errors or not current_user.andand.is_active or not Rails.configuration.show_user_notifications_on_dashboard @notifications ||= @@notification_tests.map do |t| t.call(self, current_user) end.compact diff --git a/apps/workbench/app/views/projects/_show_dashboard.html.erb b/apps/workbench/app/views/projects/_show_dashboard.html.erb index 873d4f3f70..e0093bf6de 100644 --- a/apps/workbench/app/views/projects/_show_dashboard.html.erb +++ b/apps/workbench/app/views/projects/_show_dashboard.html.erb @@ -13,7 +13,7 @@ collection_pdhs = outputs.select {|x| !(m = CollectionsHelper.match(x)).nil?}.uniq.compact collection_uuids = outputs - collection_pdhs - if Rails.configuration.show_recent_collections_in_dashboard + if Rails.configuration.show_recent_collections_on_dashboard recent_cs = recent_collections(8) collection_uuids = collection_uuids + recent_cs[:collections].collect {|c| c.uuid} collection_uuids.flatten.uniq @@ -163,7 +163,7 @@ - <% if Rails.configuration.show_recent_collections_in_dashboard %> + <% if Rails.configuration.show_recent_collections_on_dashboard %>
Recent collections diff --git a/apps/workbench/config/application.default.yml b/apps/workbench/config/application.default.yml index 95b178448b..ed2683d81a 100644 --- a/apps/workbench/config/application.default.yml +++ b/apps/workbench/config/application.default.yml @@ -284,5 +284,5 @@ common: # In systems with many shared projects, dashboard loading can be # slow due to collections indexing; use the following parameters # to suppress certain properties from dashboard - show_recent_collections_in_dashboard: true - show_user_notifications_in_dashboard: true + show_recent_collections_on_dashboard: true + show_user_notifications_on_dashboard: true