Tweak the admin UI, start new lookup UI

This commit is contained in:
Thomas Sileo
2018-07-21 00:04:15 +02:00
parent dc8365ff53
commit a3cb459ae0
3 changed files with 25 additions and 2 deletions

View File

@@ -1,15 +1,22 @@
<div id="header">
<div class="h-card p-author">
<data class="u-photo" value="{{ config.ME.icon.url }}"></data>
<a href="{{ config.ID }}" class="u-url u-uid no-hover title">
<span style="font-size:1.1em;">{{ config.NAME }}</span>
<span style="font-size:0.85em;" class="subtitle-username">@<span class="gold p-name">{{ config.USERNAME }}</span>@<span class="gold">{{ config.DOMAIN }}</span>
<small><a class="remote-follow-button" href="/remote_follow">Remote follow</a></small>
{% if not session.logged_in %}<small><a class="remote-follow-button" href="/remote_follow">Remote follow</a></small>{% endif %}
</a>
{% if not request.path.startswith('/admin') %}
<div class="p-note summary">
{{ config.SUMMARY | safe }}
</div>
{% endif %}
</div>
{% if not request.path.startswith('/admin') %}
<div class="menu">
<ul>
<li><a href="/" {% if request.path == "/" %}class="selected"{% endif %}>Notes <small class="badge">{{ notes_count }}</small></a></li>
@@ -22,4 +29,6 @@
-->
</ul>
</div>
{% endif %}
</div>

View File

@@ -22,6 +22,8 @@
<li class="left"><a href="/admin/new"{% if request.path == "/admin/new" %} class="selected" {% endif %}>New</a></li>
<li class="left"><a href="/admin/stream"{% if request.path == "/admin/stream" %} class="selected" {% endif %}>Stream</a></li>
<li class="left"><a href="/admin/notifications"{% if request.path == "/admin/notifications" %} class="selected" {% endif %}>Notifications</a></li>
<li class="left"><a href="/following"{% if request.path == "/following" %} class="selected" {% endif %}>Following</a></li>
<li class="left"><a href="/admin/lookup"{% if request.path == "/admin/lookup" %} class="selected" {% endif %}>Lookup</a></li>
<li class="left"><a href="/admin/logout">Logout</a></li>
</ul>
</div>