Sha256: 999155acb6a426aa0a9ee018109ae4683c8fc6aef301872edf6f45d432f94785

Contents?: true

Size: 923 Bytes

Versions: 54

Compression:

Stored size: 923 Bytes

Contents

<% include_works_link ||= can_ever_create_works? %>
<% include_collections_link ||= can?(:create, ::Collection) %>
<% if include_works_link || include_collections_link %>
  <ul class="nav navbar-nav">
    <li class="dropdown">
      <%= link_to curation_concerns.new_classify_concern_path, id: "add-content", class: "dropdown-toggle", data: { toggle: "dropdown"} do %>
        <span class="glyphicon glyphicon-plus"></span><span class="sr-only">Add</span>
      <% end %>
      <ul class="dropdown-menu quick-create">
        <% if include_works_link %>
          <li>
            <%= render 'shared/add_works' %>
          </li>
          <li class="divider"></li>
        <% end %>
        <% if include_collections_link %>
          <li><%= link_to 'Add a Collection', main_app.new_collection_path, class: 'menu-heading new-collection', role: 'menuitem' %></li>
        <% end %>
      </ul>
    </li>
  </ul>
<% end %>

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
curation_concerns-0.14.0.pre3 app/views/shared/_add_content.html.erb
curation_concerns-0.14.0.pre2 app/views/shared/_add_content.html.erb
curation_concerns-0.14.0.pre1 app/views/shared/_add_content.html.erb
curation_concerns-0.13.1 app/views/shared/_add_content.html.erb
curation_concerns-0.13.0 app/views/shared/_add_content.html.erb
curation_concerns-0.12.0 app/views/shared/_add_content.html.erb
curation_concerns-0.12.0.pre9 app/views/shared/_add_content.html.erb
curation_concerns-0.12.0.pre8 app/views/shared/_add_content.html.erb
curation_concerns-0.12.0.pre7 app/views/shared/_add_content.html.erb
curation_concerns-0.12.0.pre6 app/views/shared/_add_content.html.erb
curation_concerns-0.12.0.pre5 app/views/shared/_add_content.html.erb
curation_concerns-0.12.0.pre4 app/views/shared/_add_content.html.erb
curation_concerns-0.12.0.pre3 app/views/shared/_add_content.html.erb
curation_concerns-0.12.0.pre2 app/views/shared/_add_content.html.erb