Sha256: 25b6426e7a20483b796685b0857cc9cff271f7221c1ad52a67fde66c85c3b0f4

Contents?: true

Size: 1 KB

Versions: 15

Compression:

Stored size: 1 KB

Contents

<% current_page_works = current_page?(hyrax.dashboard_works_path(locale: nil)) %>
<ul class="nav nav-tabs" id="my_nav" role="list">
  <li<%= ' class="nav-item"'.html_safe if current_page_works %>>
    <% if params[:add_works_to_collection].present? && params[:add_works_to_collection_label].present? %>
      <%= link_to t("hyrax.dashboard.#{current_ability.admin? ? 'all' : 'managed'}.works"), hyrax.dashboard_works_path(add_works_to_collection: params[:add_works_to_collection], add_works_to_collection_label: params[:add_works_to_collection_label]), class: "nav-link#{' active' if current_page_works}" %>
    <% else %>
      <%= link_to t("hyrax.dashboard.#{current_ability.admin? ? 'all' : 'managed'}.works"), hyrax.dashboard_works_path, class: "nav-link#{' active' if current_page_works}" %>
    <% end %>
  </li>
  <li<%= ' class="nav-item"'.html_safe if !current_page_works %>>
    <%= link_to t('hyrax.dashboard.my.your_works'), hyrax.my_works_path, class: "nav-link#{' active' if !current_page_works}" %>
  </li>
</ul>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/views/hyrax/my/works/_tabs.html.erb
hyrax-5.0.4 app/views/hyrax/my/works/_tabs.html.erb
hyrax-5.0.3 app/views/hyrax/my/works/_tabs.html.erb
hyrax-5.0.2 app/views/hyrax/my/works/_tabs.html.erb
hyrax-5.0.1 app/views/hyrax/my/works/_tabs.html.erb
hyrax-5.0.0 app/views/hyrax/my/works/_tabs.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/my/works/_tabs.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/my/works/_tabs.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/my/works/_tabs.html.erb
hyrax-4.0.0 app/views/hyrax/my/works/_tabs.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/my/works/_tabs.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/my/works/_tabs.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/my/works/_tabs.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/my/works/_tabs.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/my/works/_tabs.html.erb