2022-06-22 20:11:22 +02:00
|
|
|
<header id="header">
|
|
|
|
|
|
|
|
<div class="h-card p-author">
|
|
|
|
<data class="u-photo" value="{{ local_actor.icon_url }}"></data>
|
|
|
|
<a href="{{ local_actor.url }}" class="u-url u-uid no-hover title">
|
2022-07-01 19:35:34 +02:00
|
|
|
<span class="name">{{ local_actor.name }}</span>
|
|
|
|
<span class="p-name handle">{{ local_actor.handle }}</span>
|
2022-06-22 20:11:22 +02:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="p-note summary">
|
|
|
|
{{ local_actor.summary | safe }}
|
|
|
|
</div>
|
|
|
|
|
2022-08-10 08:58:18 +02:00
|
|
|
<div id="profile-props">
|
|
|
|
{% for prop in local_actor.attachments %}
|
|
|
|
<dl>
|
|
|
|
{% if prop.type == "PropertyValue" %}
|
|
|
|
<dt class="muted" title="{{ prop.name }}">{{ prop.name }}</dt>
|
|
|
|
<dd>{{ prop.value | clean_html(local_actor) | safe }}</dd>
|
|
|
|
{% endif %}
|
|
|
|
</dl>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
2022-06-22 20:11:22 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{%- macro header_link(url, text) -%}
|
2022-11-04 00:34:05 -07:00
|
|
|
{% set url_for = BASE_URL + request.app.router.url_path_for(url) %}
|
2022-11-09 08:15:29 +01:00
|
|
|
<a href="{{ url_for }}" {% if BASE_URL + request.url.path == url_for %}class="active"{% endif %}>{{ text }}</a>
|
2022-06-22 20:11:22 +02:00
|
|
|
{% endmacro %}
|
|
|
|
|
2022-11-02 08:51:21 +01:00
|
|
|
{%- macro navbar_item_link(navbar_item) -%}
|
2022-11-09 08:15:29 +01:00
|
|
|
{% set url_for = BASE_URL + navbar_item[0] %}
|
|
|
|
<a href="{{ navbar_item[0] }}" {% if BASE_URL + request.url.path == url_for %}class="active"{% endif %}>{{ navbar_item[1] }}</a>
|
2022-11-02 08:51:21 +01:00
|
|
|
{% endmacro %}
|
|
|
|
|
2022-08-29 21:42:54 +02:00
|
|
|
<div class="public-top-menu">
|
2022-06-22 20:11:22 +02:00
|
|
|
<nav class="flexbox">
|
|
|
|
<ul>
|
2022-11-02 08:51:21 +01:00
|
|
|
{% if NAVBAR_ITEMS.INDEX_NAVBAR_ITEM %}
|
|
|
|
<li>{{ navbar_item_link(NAVBAR_ITEMS.INDEX_NAVBAR_ITEM) }}</li>
|
|
|
|
{% endif %}
|
2022-06-26 10:28:21 +02:00
|
|
|
<li>{{ header_link("index", "Notes") }}</li>
|
2022-07-25 22:51:53 +02:00
|
|
|
{% if articles_count %}
|
|
|
|
<li>{{ header_link("articles", "Articles") }}</li>
|
|
|
|
{% endif %}
|
2022-09-13 22:33:20 +02:00
|
|
|
{% if not HIDES_FOLLOWERS or is_admin %}
|
2022-07-01 19:35:34 +02:00
|
|
|
<li>{{ header_link("followers", "Followers") }} <span class="counter">{{ followers_count }}</span></li>
|
2022-09-13 21:03:35 +02:00
|
|
|
{% endif %}
|
2022-09-13 22:33:20 +02:00
|
|
|
{% if not HIDES_FOLLOWING or is_admin %}
|
2022-07-01 19:35:34 +02:00
|
|
|
<li>{{ header_link("following", "Following") }} <span class="counter">{{ following_count }}</span></li>
|
2022-09-13 21:03:35 +02:00
|
|
|
{% endif %}
|
2022-06-26 18:07:55 +02:00
|
|
|
<li>{{ header_link("get_remote_follow", "Remote follow") }}</li>
|
2022-11-02 08:51:21 +01:00
|
|
|
{% for navbar_item in NAVBAR_ITEMS.EXTRA_NAVBAR_ITEMS %}
|
|
|
|
{{ navbar_item_link(navbar_item) }}
|
|
|
|
{% endfor %}
|
2022-06-22 20:11:22 +02:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2022-07-15 20:16:02 +02:00
|
|
|
</div>
|
2022-06-22 20:11:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
</header>
|