forked from rubyforgood/human-essentials
-
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.
Prepare admin navbar for "Switch to" feature
- Loading branch information
Showing
2 changed files
with
16 additions
and
39 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,35 +1,12 @@ | ||
<div class="navbar-custom-menu"> | ||
<ul class="nav navbar-nav"> | ||
<!-- User Account: style can be found in dropdown.less --> | ||
<li class="dropdown user user-menu"> | ||
<a href="#" class="dropdown-toggle" data-bs-toggle="dropdown"> | ||
<span class="hidden-xs"><%= current_user.display_name %></span> | ||
</a> | ||
<ul class="dropdown-menu"> | ||
<!-- User image --> | ||
<li class="user-body"> | ||
<p class="text-center"> | ||
<b><%= current_user.display_name %></b> | ||
</p> | ||
</li> | ||
<!-- Menu Body --> | ||
<li class="user-body"> | ||
<ul class="list-group"> | ||
<li class="list-group-item"> | ||
<%= fa_icon "cog" %> <%= navigation_link_to "Account Settings", edit_user_registration_path %> | ||
</li> | ||
</ul> | ||
</li> | ||
<!-- Menu Footer--> | ||
<li class="user-footer"> | ||
<div class="pull-left"> | ||
<!-- <a href="#" class="btn btn-default btn-flat">Profile</a> --> | ||
</div> | ||
<div class="pull-right"> | ||
<%= delete_button_to destroy_user_session_path, {text: "Log out", icon: "sign-out", no_confirm: true, size: "md"} %> | ||
</div> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link" data-bs-toggle="dropdown" href="#"> | ||
<%= current_user.display_name %> | ||
</a> | ||
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right"> | ||
<%= link_to "Switch To: to be implemented", "#", class:"dropdown-item" %> | ||
<div class="dropdown-divider"></div> | ||
<%= link_to destroy_user_session_path, class:"dropdown-item dropdown-footer", method: :delete do %> | ||
<i class="fa fa-sign-out mr-2"></i> Log Out | ||
<% end %> | ||
</div> | ||
</li> |
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