]> git.0d.be Git - chloro.git/blob - chloro/phyll/templates/phyll/note_detail.html
add mini-live edit, for quick fixes
[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 <div>
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 %}<button id="save">{% trans "Save" %}</button>{% endif %}
12
13 <div class="meta">{{ object.creation_timestamp|date:"j E Y, H:i"|lower }}</div>
14 </div>
15 {% endblock %}
16
17 {% block bottom-actions %}
18 <a href="edit/">{% trans "Edit" %}</a>
19 <a href="delete/">{% trans "Delete" %}</a>
20 {% endblock %}