Skip to content

Commit 8adfdc6

Browse files
author
Kirk Wang
authored
Merge pull request #2252 from samvera/fix-add-child-link
🐛 Fix Add Child link
2 parents 7fff868 + 00214fc commit 8adfdc6

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

app/views/hyrax/base/_show_actions.html.erb

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%# OVERRIDE Hyrax v5.0.0rc2 Adjust permission checks for delete and add analytics button and add ENV to control turbolinks %>
1+
<%# OVERRIDE Hyrax v5.0.1 Adjust permission checks for delete and add analytics button and add ENV to control turbolinks %>
22
<div class="row show-actions button-row-top-two-column">
33
<div class="col-sm-6">
44
<% if !workflow_restriction?(presenter) %>
@@ -35,13 +35,12 @@
3535
<div class="btn-group">
3636
<button type="button" class="btn btn-secondary dropdown-toggle" type="button" id="dropdown-menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
3737
<%= t('.attach_child') %>
38-
<ul class="dropdown-menu">
39-
<% presenter.valid_child_concerns.each do |concern| %>
40-
<li class="dropdown-item">
41-
<%= link_to "Attach #{concern.human_readable_type}", polymorphic_path([main_app, :new, :hyrax, :parent, concern.model_name.singular.to_sym], parent_id: presenter.id) %>
42-
</li>
43-
<% end %>
44-
</ul>
38+
</button>
39+
<div class="dropdown-menu">
40+
<% presenter.valid_child_concerns.each do |concern| %>
41+
<%= link_to "Attach #{concern.human_readable_type}", polymorphic_path([main_app, :new, :hyrax, :parent, concern.model_name.singular.to_sym], parent_id: presenter.id), class: "dropdown-item" %>
42+
<% end %>
43+
</div>
4544
</div>
4645
<% end %>
4746
<%# OVERRIDE to validate delete permission %>

0 commit comments

Comments
 (0)