Skip to content
Snippets Groups Projects
Commit f8805413 authored by Anusha Ranganathan's avatar Anusha Ranganathan
Browse files

fix template variable

parent 05bdc14d
No related tags found
1 merge request!361Display buttons to easily access groups
Pipeline #19413 passed
......@@ -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
......
<% if collections_to_display.present? %>
<% if @collections_to_display.present? %>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default" id="user_groups">
......@@ -6,7 +6,7 @@
<h2 class="panel-title "><%= t("hyrax.dashboard.my_groups") %></h2>
</div>
<div class="panel-body">
<% collections_to_display.each do |col| %>
<% @collections_to_display.each do |col| %>
<a href="<%= col[:url] %>" class="btn btn-info btn-inline" role="button"><%= col[:title] %></a>
<% end %>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment