Skip to content

Commit

Permalink
Merge pull request #135 from scientist-softserv/bring-in-rehare-theme
Browse files Browse the repository at this point in the history
⚙️ Activate ReShare show theme
  • Loading branch information
kirkkwang authored Sep 5, 2024
2 parents a9eb61e + c11eafd commit 0c31855
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 13 deletions.
28 changes: 15 additions & 13 deletions app/views/themes/reshare_show/_user_util_links.html.erb
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">&nbsp;<%= 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>
19 changes: 19 additions & 0 deletions config/show_themes.yml
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.

0 comments on commit 0c31855

Please sign in to comment.