microblog.pub/templates/layout.html

61 lines
2.7 KiB
HTML
Raw Normal View History

2018-05-18 13:41:41 -05:00
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
2018-05-18 13:41:41 -05:00
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
2019-07-17 02:29:48 -05:00
<title>{% block title %}{{ config.NAME }}'s microblog{% endblock %}</title>
2019-08-17 14:33:15 -05:00
<link rel="stylesheet" href="/static/pure.css">
2018-05-18 13:41:41 -05:00
<link rel="authorization_endpoint" href="{{ config.ID }}/indieauth">
<link rel="token_endpoint" href="{{ config.ID }}/token">
{% 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 %}
2018-05-21 14:10:21 -05:00
{% if config.THEME_COLOR %}<meta name="theme-color" content="{{ config.THEME_COLOR }}">{% endif %}
2019-04-10 15:50:36 -05:00
<style>{{ config.CSS | safe }}
2019-07-15 16:08:12 -05:00
.icon { color: #555; }
2019-04-10 15:50:36 -05:00
.emoji {
width: 20px;
2019-08-20 15:16:47 -05:00
height: 20px;
}
.custom-emoji {
width: 25px;
height: 25px;
2019-04-10 15:50:36 -05:00
}
2019-09-08 09:55:24 -05:00
dt:after {content: ": ";}
dt, dd { font-size: 0.9em; }
2019-08-24 17:16:39 -05:00
{{ highlight_css }}
2019-04-10 15:50:36 -05:00
</style>
2019-09-08 08:06:52 -05:00
{% block header %}{% endblock %}
2018-05-18 13:41:41 -05:00
</head>
<body>
2018-07-01 16:25:26 -05:00
{% if logged_in %}
2019-09-08 03:56:46 -05:00
<nav id="admin-menu-wrapper">
2018-07-01 16:25:26 -05:00
<ul id="admin-menu">
2018-07-24 17:11:23 -05:00
<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>
2018-07-06 17:08:44 -05:00
<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>
2019-08-01 12:55:30 -05:00
<li class="left"><a href="/admin/lists"{% if request.path == url_for('admin.admin_lists') %} class="selected" {% endif %}>Lists</a></li>
2019-07-10 16:47:42 -05:00
<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>
2018-07-15 14:25:09 -05:00
<li class="left"><a href="/admin/logout">Logout</a></li>
2018-07-01 16:25:26 -05:00
</ul>
2019-09-08 03:56:46 -05:00
</nav>
2018-07-01 16:25:26 -05:00
{% endif %}
2019-09-08 07:54:47 -05:00
<div class="base-container">
2018-05-18 13:41:41 -05:00
{% block content %}{% endblock %}
2019-09-08 07:54:47 -05:00
</div>
2019-09-08 03:56:46 -05:00
<footer class="footer">
2018-05-18 13:41:41 -05:00
<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
2018-05-18 13:41:41 -05:00
</div>
2019-09-08 03:56:46 -05:00
</footer>
2018-05-18 13:41:41 -05:00
</body>
</html>