Skip to content

Commit

Permalink
IssueID #3144 - Fix for invisible Actions dropdowns on "My Dashboard"
Browse files Browse the repository at this point in the history
page.
  • Loading branch information
John Pinto committed Jan 5, 2024
1 parent 541615e commit a264f36
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/views/paginable/plans/_privately_visible.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,24 @@

<ul class="dropdown-menu" aria-labelledby="plan-<%= plan.id %>-actions">
<% if plan.editable_by?(current_user.id) then %>
<li class="nav-item"><%= link_to _('Edit'), plan_path(plan), class: 'nav-link dropdown-item px-3' %></li>
<li class="nav-item"><%= link_to _('Edit'), plan_path(plan), class: 'dropdown-item px-3' %></li>

<% if plan.administerable_by?(current_user.id) %>
<li><%= link_to _('Share'), share_plan_path(plan), class: 'nav-link dropdown-item px-3' %></li>
<li><%= link_to _('Share'), share_plan_path(plan), class: 'dropdown-item px-3' %></li>
<% end %>

<li><%= link_to _('Download'), download_plan_path(plan), class: 'nav-link dropdown-item px-3' %></li>
<li><%= link_to(_('Copy'), duplicate_plan_path(plan), class: 'nav-link dropdown-item px-3', data: { method: :post }) %></li>
<li><%= link_to _('Download'), download_plan_path(plan), class: 'dropdown-item px-3' %></li>
<li><%= link_to(_('Copy'), duplicate_plan_path(plan), class: 'dropdown-item px-3', data: { method: :post }) %></li>
<% else %>
<li><%= link_to _('View'), plan_path(plan), class: 'nav-link dropdown-item px-3' %></li>
<li><%= link_to _('View'), plan_path(plan), class: 'dropdown-item px-3' %></li>

<% if !plan.reviewable_by?(current_user.id) %>
<li><%= link_to _('Download'), download_plan_path(plan), class: 'nav-link dropdown-item px-3' %></li>
<li><%= link_to _('Download'), download_plan_path(plan), class: 'dropdown-item px-3' %></li>
<% end %>
<% end %>
<% role = my_plan_roles.first %>
<% conf = (role.creator? && plan.publicly_visible?) ? _("Are you sure you wish to remove this public plan? This will remove it from the Public DMPs page but any collaborators will still be able to access it.") : _("Are you sure you wish to remove this plan? Any collaborators will still be able to access it.") %>
<li><%= link_to _('Remove'), deactivate_role_path(role), 'class': 'nav-link dropdown-item px-3', 'data-method': 'put', rel: 'nofollow', 'data-confirm': conf %></li>
<li><%= link_to _('Remove'), deactivate_role_path(role), 'class': 'dropdown-item px-3', 'data-method': 'put', rel: 'nofollow', 'data-confirm': conf %></li>
</ul>
</div>
</td>
Expand Down

0 comments on commit a264f36

Please sign in to comment.