]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/templates/phyll/note_detail.html
add mini-live edit, for quick fixes
[chloro.git] / chloro / phyll / templates / phyll / note_detail.html
index 4abf3af256902ea60853c30cbbb52954f93026d7..d0b9bc36c34ca7ee0be720c440362d06a3cce3bc 100644 (file)
@@ -1,8 +1,20 @@
 {% extends "phyll/base.html" %}
+{% load i18n %}
+
+{% block content-class %}post{% endblock %}
+{% block page-title %}{{ object.title }} - {{ block.super }}{% endblock %}
 
 {% block body %}
-<h1>{{ object.title }}</h1>
+<div>
+<h2>{{ object.title }}</h2>
+<div {% if request.user.is_staff %}contenteditable="true"{% endif %}>{{ object.text|safe }}</div>
+{% if request.user.is_staff %}<button id="save">{% trans "Save" %}</button>{% endif %}
 
-<div>{{ object.text|safe }}</div>
+<div class="meta">{{ object.creation_timestamp|date:"j E Y, H:i"|lower }}</div>
+</div>
+{% endblock %}
 
+{% block bottom-actions %}
+<a href="edit/">{% trans "Edit" %}</a>
+<a href="delete/">{% trans "Delete" %}</a>
 {% endblock %}