Verified Commit a6699f30 authored by blint's avatar blint 😶
Browse files

add dropdown menu for admin

parent 98e80c58
Pipeline #9024 passed with stages
in 2 minutes and 20 seconds
......@@ -12,12 +12,15 @@
<ul class="navbar-nav">
{{- if .User }}
{{- if .User.IsAdmin }}
<li class="nav-item">
<a class="nav-link" href="/admin">Admin</a>
<li class="nav-item">
<li class="nav-item dropdown">
<a class="dropdown-toggle nav-link" href="#" id="admin_menu" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="dropdown-menu bg-dark" aria-labelledby="menu">
<a class="nav-link" href="/admin">Admin oldal</a>
<a class="nav-link" href="/topup">Feltöltés</a>
{{- else }}
<li class="nav-item">
<a class="nav-link" href="#" onclick="alert('Keresd a reszort gazdaságist!')">Feltöltés</a>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment