mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
62 lines
2.9 KiB
HTML
62 lines
2.9 KiB
HTML
<!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">
|
|
<title>{% block title %}{{ config.NAME }}'s microblog{% endblock %}</title>
|
|
<link rel="stylesheet" href="/static/pure.css">
|
|
<link rel="authorization_endpoint" href="{{ config.ID }}/indieauth">
|
|
<link rel="token_endpoint" href="{{ config.ID }}/token">
|
|
<link rel="micropub" href="{{config.ID}}/api/new_note">
|
|
{% if not request.args.get("older_than") and not request.args.get("previous_than") %}<link rel="canonical" href="https://{{ config.DOMAIN }}{{ request.path }}">{% endif %}
|
|
{% block links %}{% endblock %}
|
|
{% if config.THEME_COLOR %}<meta name="theme-color" content="{{ config.THEME_COLOR }}">{% endif %}
|
|
<style>{{ config.CSS | safe }}
|
|
.icon { color: #555; }
|
|
.emoji {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
.custom-emoji {
|
|
width: 25px;
|
|
height: 25px;
|
|
}
|
|
dt:after {content: ": ";}
|
|
dt, dd { font-size: 0.9em; }
|
|
{{ highlight_css }}
|
|
</style>
|
|
{% block header %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
{% if logged_in %}
|
|
<nav id="admin-menu-wrapper">
|
|
<ul id="admin-menu">
|
|
<li class="left"><a href="/admin" class="admin-title{% if request.path.startswith("/admin") %} selected{% endif %}">Admin</a></li>
|
|
<li class="left"><a href="/" class="admin-title {% if not request.path.startswith("/admin") %} selected{% endif %}">Public</a></li>
|
|
<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
|
|
{% if unread_notifications_count %}
|
|
({{unread_notifications_count}})
|
|
{% endif %}</a></li>
|
|
<li class="left"><a href="/admin/direct_messages"{% if request.path == url_for('admin.admin_direct_messages') %} class="selected" {% endif %}>DMs</a></li>
|
|
<li class="left"><a href="/admin/lists"{% if request.path == url_for('admin.admin_lists') %} class="selected" {% endif %}>Lists</a></li>
|
|
<li class="left"><a href="/admin/bookmarks"{% if request.path == "/admin/bookmarks" %} class="selected" {% endif %}>Bookmarks</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>
|
|
</nav>
|
|
{% endif %}
|
|
|
|
|
|
<div class="base-container">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
<footer class="footer">
|
|
<div>
|
|
Powered by <a href="https://microblog.pub">microblog.pub</a> <small class="microblogpub-version"><code>{{ microblogpub_version }}</code></small> (<a href="https://github.com/tsileo/microblog.pub">source code</a>) and the <a href="https://activitypub.rocks/">ActivityPub</a> protocol
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|