1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-08-08 22:36:41 +02:00

moved auth from user package and added timezone to context values

This commit is contained in:
Lee Brown
2019-08-04 14:48:43 -08:00
parent fad0801379
commit bb9820ffcc
62 changed files with 3740 additions and 1008 deletions

View File

@ -10,7 +10,7 @@
{{ if HasAuth $._Ctx }}
<!-- Topbar Search -->
<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
<!--- form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
<div class="input-group">
<input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
<div class="input-group-append">
@ -19,7 +19,7 @@
</button>
</div>
</div>
</form>
</form -->
<!-- Topbar Navbar -->
<ul class="navbar-nav ml-auto">
@ -161,7 +161,7 @@
<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"}}">
<img class="img-profile rounded-circle" src="{{ SiteAssetUrl "/assets/images/user-default.jpg" }}">
{{ end }}
</a>
@ -173,7 +173,7 @@
</a>
{{ if HasRole $._Ctx "admin" }}
<a class="dropdown-item" href="/admin/account">
<a class="dropdown-item" href="/account">
<i class="fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"></i>
Account Settings
</a>
@ -187,7 +187,7 @@
Invite User
</a>
{{ else }}
<a class="dropdown-item" href="/account">
<a class="dropdown-item" href="/user/account">
<i class="fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"></i>
Account
</a>