microblog.pub/templates/header.html

43 lines
1.9 KiB
HTML
Raw Normal View History

2018-07-24 22:11:23 +00:00
{% if not request.path.startswith('/admin') %}
2019-09-08 08:56:46 +00:00
<header id="header">
2018-05-18 18:41:41 +00:00
<div class="h-card p-author">
<data class="u-photo" value="{{ config.ME.icon.url }}"></data>
2018-05-18 18:41:41 +00:00
<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>
{% if not session.logged_in %}<small><a class="remote-follow-button" href="/remote_follow">Remote follow</a></small>{% endif %}
2018-05-18 18:41:41 +00:00
</a>
<div class="p-note summary">
{{ config.SUMMARY | safe }}
2019-09-08 14:55:24 +00:00
{% if config.PROFILE_METADATA %}
<dl>
{% for item in config.ME.attachment %}
{% if item.type == "PropertyValue" %}
<dt>{{item.name | safe }}</dt><dd>{{ item.value | safe }}</dd>
{% endif %}
{% endfor %}
</dl>
{% endif %}
</div>
2018-05-18 18:41:41 +00:00
</div>
2018-05-18 18:41:41 +00:00
<div class="menu">
<ul>
2018-06-25 21:56:29 +00:00
<li><a href="/" {% if request.path == "/" %}class="selected"{% endif %}>Notes <small class="badge">{{ notes_count }}</small></a></li>
2019-07-12 22:38:51 +00:00
{% if session.logged_in %}<li><a href="/all" {% if request.path == url_for("all") %}class="selected"{% endif %}>All <small class="badge">{{ with_replies_count }}</small></a></li>
2018-06-25 21:56:29 +00:00
<li><a href="/liked" {% if request.path == "/liked" %}class="selected"{% endif %}>Liked <small class="badge">{{ liked_count }}</small></a></li>
2019-08-13 22:06:58 +00:00
{% endif %}
2018-06-25 21:56:29 +00:00
<li><a href="/followers"{% if request.path == "/followers" %} class="selected" {% endif %}>Followers <small class="badge">{{ followers_count }}</small></a></li>
2018-07-17 22:11:05 +00:00
{% if not config.HIDE_FOLLOWING or session.logged_in %}<li id="menu-item-following"><a href="/following"{% if request.path == "/following" %} class="selected" {% endif %}>Following <small class="badge">{{ following_count }}</small></a></li>{% endif %}
2018-05-18 18:41:41 +00:00
<!-- <li><a href="/about"{% if request.path == "/about" %} class="selected" {% endif %}>/about</a></li>
-->
</ul>
</div>
2019-09-08 08:34:34 +00:00
</header>
2018-07-24 22:11:23 +00:00
{% endif %}