]> git.0d.be Git - chloro.git/blob - chloro/phyll/templates/phyll/note_detail.html
use <article> elements, so reader mode is made available in firefox
[chloro.git] / chloro / phyll / templates / phyll / note_detail.html
1 {% extends "phyll/base.html" %}
2 {% load i18n %}
3
4 {% block content-class %}post{% endblock %}
5 {% block page-title %}{{ object.title }} - {{ block.super }}{% endblock %}
6
7 {% block body %}
8 <article>
9 <h2>{{ object.title }}</h2>
10 <div {% if request.user.is_staff %}contenteditable="true"{% endif %}>{{ object.text|safe }}</div>
11 {% if request.user.is_staff %}
12 {% csrf_token %}<button id="save">{% trans "Save" %}</button>
13 {% endif %}
14
15 <div class="meta">{{ object.creation_timestamp|date:"j E Y, H:i"|lower }}</div>
16 </article>
17 {% endblock %}
18
19 {% block bottom-actions %}
20 <a href="edit/">{% trans "Edit" %}</a>
21 <a href="delete/">{% trans "Delete" %}</a>
22 {% endblock %}