added /manage/ and /manage/accounts/ views, added TOC to template

This commit is contained in:
Yusur 2023-03-22 09:49:38 +01:00
parent 4536f7fbd9
commit 191e235137
9 changed files with 162 additions and 21 deletions

View file

@ -4,12 +4,14 @@
{% block json_info %}<script>window.page_info={{ p.js_info()|tojson|safe }};</script>{% endblock %}
{% set html_and_toc = rev.html_and_toc(math = request.args.get('math') not in ['0', 'false', 'no', 'off']) %}
{% block content %}
<article>
<h1 id="firstHeading">{{ p.title }}</h1>
{% if p.calendar %}
<p class="calendar-subtitle"><span class="material-icons">calendar_today</span>{{ p.calendar.strftime('%B %-d, %Y') }}</div>
<p class="calendar-subtitle"><span class="material-icons">calendar_today</span>{{ p.calendar.strftime('%B %-d, %Y') }}</p>
{% endif %}
<div class="jump-to-actions">
@ -28,7 +30,7 @@
{% endif %}
<div class="inner-content">
{{ rev.html(math = request.args.get('math') not in ['0', 'false', 'no', 'off'])|safe }}
{{ html_and_toc[0]|safe }}
</div>
{% if p.tags %}
@ -54,6 +56,12 @@
{{ T('owner') }}: {{ p.owner.username }}
{% endblock %}
{% block toc %}
<nav class="toc">
{{ html_and_toc[1] }}
</nav>
{% endblock %}
{% block scripts %}
<script src="/static/content.js"></script>
{% endblock %}