Tweak the admin menu

This commit is contained in:
Thomas Sileo
2018-07-01 23:25:26 +02:00
parent 9332b348eb
commit 0c7c3ccae3
3 changed files with 36 additions and 9 deletions

View File

@@ -19,6 +19,18 @@
</style>
</head>
<body>
{% if logged_in %}
<ul id="admin-menu">
<li class="left"><span class="admin-title">Admin</span></li>
<li class="left"><a href="/new"{% if request.path == "/new" %} class="selected" {% endif %}>New</a></li>
<li class="left"><a href="/stream"{% if request.path == "/stream" %} class="selected" {% endif %}>Stream</a></li>
<li class="left"><a href="/notifications"{% if request.path == "/notifications" %} class="selected" {% endif %}>Notifications</a></li>
<li class="left"><a href="/admin"{% if request.path == "/admin" %} class="selected" {% endif %}>Stats</a></li>
<li class="right"><a href="/logout">Logout</a></li>
</ul>
{% endif %}
<div class="base-container">
{% block content %}{% endblock %}
</div>