Skip to content
Snippets Groups Projects

Display buttons to easily access groups

Merged Anusha Ranganathan requested to merge feature/472_crc_1280_button into develop
Files
2
@@ -19,14 +19,14 @@ module Hyrax
self.sidebar_partials = { activity: [], configuration: [], repository_content: [], tasks: [] }
def show
collections_to_display = list_collections_to_display
@collections_to_display = list_collections_to_display
if can? :read, :admin_dashboard
@presenter = Hyrax::Admin::DashboardPresenter.new
@admin_set_rows = Hyrax::AdminSetService.new(self).search_results_with_work_count(:read)
render 'show_admin', locals: {collections_to_display: collections_to_display}
render 'show_admin'
else
@presenter = Dashboard::UserPresenter.new(current_user, view_context, params[:since])
render 'show_user', locals: {collections_to_display: collections_to_display}
render 'show_user'
end
end
Loading