You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-08-08 22:36:41 +02:00
checkpoint
This commit is contained in:
@@ -154,25 +154,52 @@
|
||||
<!-- Nav Item - User Information -->
|
||||
<li class="nav-item dropdown no-arrow">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="mr-2 d-none d-lg-inline text-gray-600 small">Valerie Luna</span>
|
||||
<img class="img-profile rounded-circle" src="https://source.unsplash.com/QAB-WJcbgJk/60x60">
|
||||
|
||||
{{ $user := ContextUser $._Ctx }}
|
||||
{{ if $user }}
|
||||
<span class="mr-2 d-none d-lg-inline text-gray-600 small">{{ $user.Name }}</span>
|
||||
<img class="img-profile rounded-circle" src="{{ $user.Gravatar.Medium }}">
|
||||
{{ else }}
|
||||
<span class="mr-2 d-none d-lg-inline text-gray-600 small">Space Cadet</span>
|
||||
<img class="img-profile rounded-circle" src="src="{{ SiteAssetUrl "/assets/images/user-default.jpg"}}">
|
||||
{{ end }}
|
||||
|
||||
</a>
|
||||
<!-- Dropdown - User Information -->
|
||||
<div class="dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="userDropdown">
|
||||
<a class="dropdown-item" href="#">
|
||||
<a class="dropdown-item" href="/user">
|
||||
<i class="fas fa-user fa-sm fa-fw mr-2 text-gray-400"></i>
|
||||
Profile
|
||||
My Profile
|
||||
</a>
|
||||
<a class="dropdown-item" href="#">
|
||||
|
||||
{{ if HasRole $._Ctx "admin" }}
|
||||
<a class="dropdown-item" href="/admin/account">
|
||||
<i class="fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"></i>
|
||||
Account Settings
|
||||
</a>
|
||||
|
||||
<a class="dropdown-item" href="/users">
|
||||
<i class="fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"></i>
|
||||
Manage Users
|
||||
</a>
|
||||
<a class="dropdown-item" href="/users/invite">
|
||||
<i class="fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"></i>
|
||||
Invite User
|
||||
</a>
|
||||
{{ else }}
|
||||
<a class="dropdown-item" href="/account">
|
||||
<i class="fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"></i>
|
||||
Account
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<a class="dropdown-item" href="/support">
|
||||
<i class="fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"></i>
|
||||
Settings
|
||||
</a>
|
||||
<a class="dropdown-item" href="#">
|
||||
<i class="fas fa-list fa-sm fa-fw mr-2 text-gray-400"></i>
|
||||
Activity Log
|
||||
Support
|
||||
</a>
|
||||
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#logoutModal">
|
||||
<a class="dropdown-item" href="/user/logout" data-toggle="modal" data-target="#logoutModal">
|
||||
<i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
|
||||
Logout
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user