Sha256: 714d40520b3042fd9ec188f414d1d6c7eb8237b5fac227e5abc89e71dcf4e755

Contents?: true

Size: 1.81 KB

Versions: 1

Compression:

Stored size: 1.81 KB

Contents

<div class="btn-group">

  <button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= file_set.id %>" aria-haspopup="true">
    <span class="sr-only">Press to </span>
    Select an action
    <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 'Edit', edit_polymorphic_path([main_app, file_set]),
        { title: "Edit #{file_set}" } %>
    </li>

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

    <li role="menuitem" tabindex="-1">
      <%= link_to t('sufia.single_use_links.button'), '#',
                  class: "copypaste",
                  title: "Single-Use Link to File",
                  data: { generate_single_use_link_url: curation_concerns.generate_show_single_use_link_url(file_set.id) },
                  id: "copy_link_#{file_set.id}" %>
    </li>

  <% end %>
  <% if can?(:destroy, file_set.id) %>
    <li role="menuitem" tabindex="-1">
      <%= link_to 'Delete', polymorphic_path([main_app, file_set]),
        method: :delete, title: "Delete #{file_set}",
        data: {confirm: "Deleting #{file_set} from #{application_name} is permanent. Click OK to delete this from #{application_name}, or Cancel to cancel this operation"} %>
    </li>
  <% end %>

  <% if can?(:read, file_set.id) %>
    <li role="menuitem" tabindex="-1">
      <%= link_to 'Download', main_app.download_path(file_set),
        title: "Download #{file_set.to_s.inspect}", target: "_blank" %>
    </li>
  <% end %>

  </ul>
</div>


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sufia-7.1.0 app/views/curation_concerns/file_sets/_actions.html.erb