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