app/views/hyrax/dashboard/show_user.html.erb
<% provide :page_header do %>
<h1><%= t("hyrax.dashboard.title") %></h1>
<% end %>
<% if current_ability.can_create_any_work? %>
<div class="panel panel-default">
<div class="panel-body">
<% if @create_work_presenter.many? %>
<% if Flipflop.batch_upload? %>
<%= link_to(
t(:'helpers.action.batch.new'),
'#',
data: { behavior: "select-work", target: "#worktypes-to-create", 'create-type' => 'batch' },
class: 'btn btn-primary'
) %>
<% end %>
<%= link_to(
t(:'helpers.action.work.new'),
'#',
data: { behavior: "select-work", target: "#worktypes-to-create", 'create-type' => 'single' },
class: 'btn btn-primary'
) %>
<% else # simple link to the first work type %>
<% if Flipflop.batch_upload? %>
<%= link_to(
t(:'helpers.action.batch.new'),
hyrax.new_batch_upload_path(payload_concern: @create_work_presenter.first_model),
class: 'btn btn-primary'
) %>
<% end %>
<%= link_to(
t(:'helpers.action.work.new'),
new_polymorphic_path([main_app, @create_work_presenter.first_model]),
class: 'btn btn-primary'
) %>
<% end %>
</div>
</div>
<% end %>
<div class="panel panel-default user-activity">
<div class="panel-heading">
<h3 class="panel-title "><%= t("hyrax.dashboard.user_activity.title") %></h3>
</div>
<div class="panel-body">
<%= @presenter.render_recent_activity %>
</div>
</div>
<div class="panel panel-default" id="notifications">
<div class="panel-heading">
<h3 class="panel-title "><%= t("hyrax.dashboard.user_notifications") %></h3>
</div>
<div class="panel-body">
<%= @presenter.render_recent_notifications %>
<%= @presenter.link_to_additional_notifications %>
</div>
</div>
<% if Flipflop.proxy_deposit? %>
<div class="panel panel-default" id="proxy_management">
<div class="panel-heading">
<h3 class="panel-title "><%= t("hyrax.dashboard.current_proxies") %></h3>
</div>
<div class="panel-body">
<%= render 'hyrax/dashboard/_index_partials/current_proxy_rights', user: current_user %>
<%= @presenter.link_to_manage_proxies %>
</div>
</div>
<% end %>
<div class="panel panel-default transfers">
<div class="panel-heading">
<h3 class="panel-title "><%= t("hyrax.dashboard.transfer_of_ownership") %></h3>
</div>
<div class="panel-body">
<%= render 'hyrax/dashboard/_index_partials/transfers', presenter: @presenter.transfers %>
</div>
</div>