2023-01-11 23:28:38 +00:00
<!DOCTYPE HTML>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< meta http-equiv = "x-ua-compatible" content = "ie=edge" >
< meta name = "viewport" content = "width=device-width, initial-scale=1, shrink-to-fit=no" >
< link rel = "stylesheet" href = "{{ BASE_URL }}/static/css/main.css?v={{ CSS_HASH }}" >
< link rel = "alternate" title = "blog.zak" type = "application/json" href = "{{ url_for(" json_feed " ) } } " / >
< link rel = "alternate" href = "{{ url_for(" rss_feed " ) } } " type = "application/rss+xml" title = "blog.zak" >
< link rel = "alternate" href = "{{ url_for(" atom_feed " ) } } " type = "application/atom+xml" title = "blog.zak" >
< link rel = "icon" type = "image/x-icon" href = "{{ BASE_URL }}/static/favicon.ico" >
< style > { { h i g h l i g h t _ c s s } } < / style >
{% block head %}{% endblock %}
< / head >
< body >
< div id = "main" >
< main { % - block main_tag % } { % - endblock % } >
{% if is_admin %}
< div id = "admin" >
{% macro admin_link(url, text) %}
{% set url_for = BASE_URL + request.app.router.url_path_for(url) %}
< a href = "{{ url_for }}" { % if BASE_URL + request . url . path = = url_for % } class = "active" { % endif % } > {{ text }}< / a >
{% endmacro %}
< div class = "admin-menu" >
< nav class = "flexbox" >
< ul >
< li > {{ admin_link("index", "Public") }}< / li >
< li > {{ admin_link("admin_new", "New") }}< / li >
< li > {{ admin_link("admin_stream", "Stream") }}< / li >
< li > {{ admin_link("admin_inbox", "Inbox") }} / {{ admin_link("admin_outbox", "Outbox") }}< / li >
< li > {{ admin_link("admin_direct_messages", "DMs") }}< / li >
2023-01-12 15:05:15 +00:00
< li > {{ admin_link("admin_snippets", "Snippets") }}< / li >
2023-01-11 23:28:38 +00:00
< li > {{ admin_link("get_notifications", "Notifications") }} {% if notifications_count %}({{ notifications_count }}){% endif %}< / li >
< li > {{ admin_link("get_lookup", "Lookup") }}< / li >
< li > {{ admin_link("admin_bookmarks", "Bookmarks") }}< / li >
< li > < a href = "{{ url_for(" logout " ) } } " > Logout< / a > < / li >
< / ul >
< / nav >
< / div >
< / div >
{% endif %}
{% block content %}{% endblock %}
< / main >
< / div >
{%- macro header_link(url, text) -%}
{% set url_for = BASE_URL + request.app.router.url_path_for(url) %}
< a href = "{{ url_for }}" { % if BASE_URL + request . url . path = = url_for % } class = "active" { % endif % } > {{ text }}< / a >
{% endmacro %}
< footer class = "footer" >
< div class = "box" >
{% if custom_footer %}
{{ custom_footer | safe }}
{% else %}
2023-01-12 15:48:54 +00:00
< a href = "{{ url_for(" login " ) } } " > Admin< / a > .
2023-01-11 23:28:38 +00:00
{% if is_admin %}
2023-01-12 15:48:54 +00:00
{{ header_link("followers", "Followers") }} < span class = "counter" > {{ followers_count }}< / span > .
{{ header_link("following", "Following") }} < span class = "counter" > {{ following_count }}< / span > .
2023-01-11 23:28:38 +00:00
{% endif %}
2023-01-12 15:48:54 +00:00
< div >
Runs a modified version of < a href = "https://microblog.pub/" target = "_blank" > microblog.pub< / a > . Supports < a href = "https://activitypub.rocks/" target = "_blank" > ActivityPub< / a > !
< / div >
2023-01-12 16:24:21 +00:00
< div >
Modified source code at: < a href = "https://github.com/zpl-zak/microblog_pub_mirror" target = "_blank" > GitHub mirror< / a > .
< / div >
2023-01-11 23:28:38 +00:00
{% endif %}
< / div >
< / footer >
{% if is_admin %}
< script src = "{{ BASE_URL }}/static/common-admin.js?v={{ JS_HASH }}" > < / script >
{% endif %}
< script src = "{{ BASE_URL }}/static/common.js?v={{ JS_HASH }}" > < / script >
< / body >
< / html >