-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from scientist-softserv/bring-in-rehare-theme
⚙️ Activate ReShare show theme
- Loading branch information
Showing
2 changed files
with
34 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
<ul id="user_utility_links" class="nav navbar-nav navbar-right"> | ||
<ul id="user_utility_links" class="navbar-nav ml-auto"> | ||
<%= render 'shared/locale_picker' if available_translations.size > 1 %> | ||
<% if current_ability.user_groups.include?('admin') %> | ||
<li> | ||
<li class="nav-item"> | ||
<%= render_notifications(user: current_user) %> | ||
</li> | ||
<li class="dropdown"> | ||
<%= link_to hyrax.dashboard_profile_path(current_user), role: 'button', data: { toggle: 'dropdown' }, aria: { haspopup: true, expanded: false, controls: 'user-util-links' } do %> | ||
<%= link_to hyrax.dashboard_profile_path(current_user), class: 'nav-link dropdown-toggle', id: 'navbarDropdown', role: 'button', data: { toggle: 'dropdown' }, aria: { haspopup: true, expanded: false } do %> | ||
<span class="sr-only"><%= t("hyrax.toolbar.profile.sr_action") %></span> | ||
<span class="hidden-xs"> <%= current_user.name %></span> | ||
<%= current_user.name %> | ||
<span class="sr-only"> <%= t("hyrax.toolbar.profile.sr_target") %></span> | ||
<span class="fa fa-user" aria-hidden="true"></span> | ||
<span class="caret"></span> | ||
<i class="fa fa-user" aria-hidden="true"></i> | ||
<% end %> | ||
<ul id="user-util-links" class="dropdown-menu dropdown-menu-right" role="menu"> | ||
<li><%= link_to t("hyrax.toolbar.dashboard.menu"), hyrax.dashboard_path %></li> | ||
|
||
<li class="divider"></li> | ||
<li><%= link_to t("hyku.toolbar.profile.edit_registration"), main_app.edit_user_registration_path %></li> | ||
<li><%= link_to t("hyrax.toolbar.profile.logout"), main_app.destroy_user_session_path %></li> | ||
</ul> | ||
<div id="user-util-links" class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"> | ||
<a class="dropdown-item" href="<%= hyrax.dashboard_path %>"><%= t("hyrax.toolbar.dashboard.menu") %></a> | ||
<% if Flipflop.show_login_link? || current_ability.user_groups.include?('admin') %> | ||
<div class="dropdown-divider"></div> | ||
<% if Devise.mappings[:user]&.registerable? %> | ||
<a class="dropdown-item" href="<%= main_app.edit_user_registration_path %>"><%= t("hyku.toolbar.profile.edit_registration") %></a> | ||
<% end %> | ||
<a class="dropdown-item" href="<%= main_app.destroy_user_session_path %>"><%= t("hyrax.toolbar.profile.logout") %></a> | ||
<% end %> | ||
</div> | ||
</li><!-- /.btn-group --> | ||
<% end %> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# These settings are to provide information about your theme | ||
# and should follow the format | ||
# theme: | ||
# name: Theme notes | ||
# notes: Notes about the theme you want to display | ||
# | ||
default_show: | ||
name: Default Show Page | ||
notes: This is the default Hyku show page. It is recommended for use with cultural repositories. | ||
cultural_show: | ||
name: Cultural Show Page | ||
notes: This image based show page is recommended for cultural repositories. | ||
scholarly_show: | ||
name: Scholarly Show Page | ||
notes: This text based show page is recommended for institutional repositories. | ||
reshare_show: | ||
name: ReShare Show Page | ||
notes: For ReShare CDL Pilot use only, do not use unless instructed to do so. | ||
|