microblog.pub/app/templates/layout.html

60 lines
2.5 KiB
HTML
Raw Permalink Normal View History

2022-06-22 18:11:22 +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 }}">
2022-06-27 06:30:29 +00:00
<link rel="alternate" title="{{ local_actor.display_name}}'s microblog" type="application/json" href="{{ url_for("json_feed") }}" />
<link rel="alternate" href="{{ url_for("rss_feed") }}" type="application/rss+xml" title="{{ local_actor.display_name}}'s microblog">
<link rel="alternate" href="{{ url_for("atom_feed") }}" type="application/atom+xml" title="{{ local_actor.display_name}}'s microblog">
<link rel="icon" type="image/x-icon" href="{{ BASE_URL }}/static/favicon.ico">
2022-08-29 19:42:54 +00:00
<style>{{ highlight_css }}</style>
2022-06-26 19:54:07 +00:00
{% block head %}{% endblock %}
2022-06-22 18:11:22 +00:00
</head>
<body>
<div id="main">
2022-09-20 18:00:35 +00:00
<main{%- block main_tag %}{%- endblock %}>
2022-06-22 18:11:22 +00:00
{% if is_admin %}
<div id="admin">
{% macro admin_link(url, text) %}
{% set url_for = BASE_URL + request.app.router.url_path_for(url) %}
2022-11-09 07:15:29 +00:00
<a href="{{ url_for }}" {% if BASE_URL + request.url.path == url_for %}class="active"{% endif %}>{{ text }}</a>
2022-06-22 18:11:22 +00:00
{% endmacro %}
2022-08-29 19:42:54 +00:00
<div class="admin-menu">
2022-06-22 18:11:22 +00:00
<nav class="flexbox">
<ul>
<li>{{ admin_link("index", "Public") }}</li>
<li>{{ admin_link("admin_new", "New") }}</li>
2022-07-07 18:37:16 +00:00
<li>{{ admin_link("admin_stream", "Stream") }}</li>
<li>{{ admin_link("admin_inbox", "Inbox") }} / {{ admin_link("admin_outbox", "Outbox") }}</li>
2022-08-11 20:07:40 +00:00
<li>{{ admin_link("admin_direct_messages", "DMs") }}</li>
2022-06-22 18:11:22 +00:00
<li>{{ admin_link("get_notifications", "Notifications") }} {% if notifications_count %}({{ notifications_count }}){% endif %}</li>
<li>{{ admin_link("get_lookup", "Lookup") }}</li>
2022-06-26 09:09:43 +00:00
<li>{{ admin_link("admin_bookmarks", "Bookmarks") }}</li>
<li><a href="{{ url_for("logout")}}">Logout</a></li>
2022-06-22 18:11:22 +00:00
</ul>
</nav>
</div>
</div>
{% endif %}
{% block content %}{% endblock %}
</main>
</div>
<footer class="footer">
2022-07-29 21:17:02 +00:00
<div class="box">
2022-08-24 19:18:30 +00:00
{% if custom_footer %}
{{ custom_footer | safe }}
{% else %}
Powered by <a href="https://docs.microblog.pub">microblog.pub</a> <small class="microblogpub-version"><code>{{ microblogpub_version }}</code></small> and the <a href="https://activitypub.rocks/">ActivityPub</a> protocol. <a href="{{ url_for("login") }}">Admin</a>.
{% endif %}
2022-07-29 21:17:02 +00:00
</div>
2022-06-22 18:11:22 +00:00
</footer>
2022-08-29 18:11:31 +00:00
{% if is_admin %}
<script src="{{ BASE_URL }}/static/common-admin.js?v={{ JS_HASH }}"></script>
2022-08-29 18:11:31 +00:00
{% endif %}
2022-06-22 18:11:22 +00:00
</body>
</html>