mirror of
https://github.com/writefreely/writefreely
synced 2024-11-28 03:20:17 +00:00
Add admin dashboard link to dropdown navs
This commit is contained in:
parent
af0f6302a2
commit
63a2225b7f
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
||||||
<li><a href="/me/c/{{.Username}}">Customize</a></li>
|
<li><a href="/me/c/{{.Username}}">Customize</a></li>
|
||||||
<li><a href="/me/c/{{.Username}}/stats">Stats</a></li>
|
<li><a href="/me/c/{{.Username}}/stats">Stats</a></li>
|
||||||
<li class="separator"><hr /></li>
|
<li class="separator"><hr /></li>
|
||||||
|
{{if .IsAdmin}}<li><a href="/admin">Admin</a></li>{{end}}
|
||||||
<li><a href="/me/settings">Settings</a></li>
|
<li><a href="/me/settings">Settings</a></li>
|
||||||
<li><a href="/me/export">Export</a></li>
|
<li><a href="/me/export">Export</a></li>
|
||||||
<li class="separator"><hr /></li>
|
<li class="separator"><hr /></li>
|
||||||
|
@ -41,6 +42,7 @@
|
||||||
<nav id="user-nav">
|
<nav id="user-nav">
|
||||||
<nav class="dropdown-nav">
|
<nav class="dropdown-nav">
|
||||||
<ul><li><a>{{.Username}}</a> <img class="ic-18dp" src="/img/ic_down_arrow_dark@2x.png" /><ul>
|
<ul><li><a>{{.Username}}</a> <img class="ic-18dp" src="/img/ic_down_arrow_dark@2x.png" /><ul>
|
||||||
|
{{if .IsAdmin}}<li><a href="/admin">Admin dashboard</a></li>{{end}}
|
||||||
<li><a href="/me/settings">Account settings</a></li>
|
<li><a href="/me/settings">Account settings</a></li>
|
||||||
<li><a href="/me/export">Export</a></li>
|
<li><a href="/me/export">Export</a></li>
|
||||||
{{if .CanInvite}}<li><a href="/me/invites">Invite people</a></li>{{end}}
|
{{if .CanInvite}}<li><a href="/me/invites">Invite people</a></li>{{end}}
|
||||||
|
|
Loading…
Reference in a new issue