-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit ea0059b.
- Loading branch information
Showing
7 changed files
with
55 additions
and
29 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 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 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,6 +1,6 @@ | ||
module ApplicationHelper | ||
# Needed for devise omniauth without :database_authenticatable | ||
# def new_session_path(scope) | ||
# new_user_session_path | ||
# end | ||
def new_session_path(scope) | ||
new_user_session_path | ||
end | ||
end |
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 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,27 @@ | ||
<ul id="user_utility_links" class="navbar-nav navbar-dark"> | ||
<%= render 'shared/locale_picker' if available_translations.size > 1 %> | ||
<% if user_signed_in? %> | ||
<li class="nav-item"> | ||
<%= render_notifications(user: current_user) %> | ||
</li> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
<span class="sr-only"><%= t("hyrax.toolbar.profile.sr_action") %></span> | ||
<span><%= current_user.name %></span> | ||
<span class="sr-only"> <%= t("hyrax.toolbar.profile.sr_target") %></span> | ||
</a> | ||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"> | ||
<%= link_to "My Profile", hyrax.dashboard_profile_path(current_user), class: 'dropdown-item' %> | ||
<%= link_to t("hyrax.toolbar.dashboard.menu"), hyrax.dashboard_path, class: "dropdown-item" %> | ||
<div class="dropdown-divider"></div> | ||
<%= link_to t("hyrax.toolbar.profile.logout"), main_app.destroy_user_session_path, class: "dropdown-item" %> | ||
</div> | ||
</li> | ||
<% else %> | ||
<li class="nav-item"> | ||
<%= link_to main_app.user_cas_omniauth_authorize_path, method: :post, class: 'nav-link' do %> | ||
<span class="fa fa-sign-in" aria-hidden="true"></span> <%= t("hyrax.toolbar.profile.login") %> | ||
<% end %> | ||
</li> | ||
<% 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
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