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
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
</div>
</div>
</div>
- <% if Rails.configuration.show_recent_collections_in_dashboard %>
+ <% if Rails.configuration.show_recent_collections_on_dashboard %>
<div class="panel panel-default">
<div class="panel-heading"><span class="panel-title">Recent collections</span>
<span class="pull-right">
# 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