-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes behavior for Collection tabs.
- Loading branch information
Showing
4 changed files
with
12 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
<% current_page_dashboard = current_page?(hyrax.dashboard_collections_path(locale: nil)) %> | ||
<ul class="nav nav-tabs" id="my_nav" role="navigation"> | ||
<li<%= ' class="nav-item"'.html_safe if current_page?(hyrax.dashboard_collections_path(locale: nil)) %>> | ||
<%= link_to t("hyrax.dashboard.#{current_ability.admin? ? 'all' : 'managed'}.collections"), hyrax.dashboard_collections_path, class: "nav-link" %> | ||
<li<%= ' class="nav-item"'.html_safe if current_page_dashboard %>> | ||
<%= link_to( | ||
t("hyrax.dashboard.#{current_ability.admin? ? 'all' : 'managed'}.collections"), | ||
hyrax.dashboard_collections_path, | ||
class: "nav-link#{' active' if current_page_dashboard}") %> | ||
</li> | ||
<li<%= ' class="nav-item"'.html_safe if current_page?(hyrax.my_collections_path(locale: nil)) %>> | ||
<%= link_to t('hyrax.dashboard.my.your_collections'), hyrax.my_collections_path, class: "nav-link active" %> | ||
<li<%= ' class="nav-item"'.html_safe if !current_page_dashboard %>> | ||
<%= link_to( | ||
t('hyrax.dashboard.my.your_collections'), | ||
hyrax.my_collections_path, | ||
class: "nav-link#{' active' if !current_page_dashboard}") %> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters