Skip to content
Snippets Groups Projects
Verified Commit db8aa616 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

fix: move admin button around

parent 04828ff3
No related branches found
No related tags found
No related merge requests found
Pipeline #2824 passed
......@@ -10,15 +10,15 @@
{{if .HasRole "imghost:user" }}
<li class="images"><a class="button" href="/me/images">My Images</a></li>
<li class="albums"><a class="button" href="/me/albums">My Albums</a></li>
{{if .HasRole "imghost:admin" }}
<li><a class="button" href="/admin">Admin</a></li>
{{end}}
<li class="me"><a class="button" href="https://accounts.kuschku.de/profile">{{.Name}}</a></li>
{{else if .Id }}
<li class="me"><a class="button" href="https://accounts.kuschku.de/profile">{{.Name}}</a></li>
{{else}}
<li><a class="button" href="/me/images">Login</a></li>
{{end}}
{{if .HasRole "imghost:admin" }}
<li><a class="button" href="/admin">Admin</a></li>
{{end}}
</ul>
</nav>
{{end}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment