Sha256: 1dee4b6bcf3029c3a44c67e2505438d88b22b2629117e0e997d67568900f0fba

Contents?: true

Size: 1.7 KB

Versions: 27

Compression:

Stored size: 1.7 KB

Contents

<% if file_set.user_can_perform_any_action? %>
  <div class="btn-group">

    <button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= file_set.id %>" aria-haspopup="true" aria-expanded="false">
      <span class="sr-only">Press to </span>
      <%= t('.header') %>
      <span class="caret" aria-hidden="true"></span>
    </button>

    <ul role="menu" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= file_set.id %>">
    <% if can?(:edit, file_set.id) %>
      <li role="menuitem" tabindex="-1">
        <%= link_to t('.edit'), edit_polymorphic_path([main_app, file_set]),
          { title: t('.edit_title', file_set: file_set) } %>
      </li>

      <li role="menuitem" tabindex="-1">
        <%= link_to t('.versions'),  edit_polymorphic_path([main_app, file_set], anchor: 'versioning_display'),
          { title: t('.versions_title') } %>
      </li>
    <% end %>

    <% if can?(:destroy, file_set.id) %>
      <li role="menuitem" tabindex="-1">
        <%= link_to t('.delete'), polymorphic_path([main_app, file_set]),
          method: :delete, title: t('.delete_title', file_set: file_set),
          data: { confirm: t('.delete_confirm', file_set: file_set, application_name: application_name) } %>
      </li>
    <% end %>

    <% if can?(:download, file_set.id) %>
      <li role="menuitem" tabindex="-1">
        <%= link_to t('.download'),
                    hyrax.download_path(file_set),
                    title: t('.download_title', file_set: file_set),
                    target: "_blank",
                    id: "file_download",
                    data: { label: file_set.id } %>
      </li>
    <% end %>

    </ul>
  </div>
<% end %>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
hyrax-2.3.1 app/views/hyrax/file_sets/_actions.html.erb
hyrax-2.3.0 app/views/hyrax/file_sets/_actions.html.erb
hyrax-2.2.4 app/views/hyrax/file_sets/_actions.html.erb
hyrax-2.2.3 app/views/hyrax/file_sets/_actions.html.erb
hyrax-2.2.2 app/views/hyrax/file_sets/_actions.html.erb
hyrax-2.2.1 app/views/hyrax/file_sets/_actions.html.erb
hyrax-2.2.0 app/views/hyrax/file_sets/_actions.html.erb