]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/templates/phyll/note_detail.html
do not include non-feed posts on homepage
[chloro.git] / chloro / phyll / templates / phyll / note_detail.html
index 06966f499fb48560ca9996b06976e8470e5ac8c4..1d7e21d43a8d68547d21006829ef73e7e2e79653 100644 (file)
@@ -1,22 +1,33 @@
 {% extends "phyll/base.html" %}
 {% load i18n %}
 
+{% block html-lang %}{{ object.lang }}{% endblock %}
 {% block content-class %}post{% endblock %}
 {% block page-title %}{{ object.title }} - {{ block.super }}{% endblock %}
 
 {% block body %}
-<div>
-<h2>{{ object.title }}</h2>
-<div {% if request.user.is_staff %}contenteditable="true"{% endif %}>{{ object.text|safe }}</div>
-{% if request.user.is_staff %}
-{% csrf_token %}<button id="save">{% trans "Save" %}</button>
-{% endif %}
+  <article>
+    <h1>{{ object.title }}</h1>
+    {% if object.included_in_feed %}
+      <div class="meta">{{ object.creation_timestamp|date:"j E Y, H:i"|lower }}</div>
+    {% endif %}
+    <div {% if request.user.is_staff %}data-editable{% endif %}>{{ object.text|safe }}</div>
 
-<div class="meta">{{ object.creation_timestamp|date:"j E Y, H:i"|lower }}</div>
-</div>
+    {% if request.user.is_staff %}
+      {% csrf_token %}
+      <div id="quickedit">
+        <label><input type="checkbox"><span>Mode édition</span></label>
+      </div>
+    {% endif %}
+
+    {% if not object.included_in_feed %}
+      <div class="meta">Dernière mise à jour : {{ object.last_update_timestamp|date:"j E Y, H:i"|lower }}</div>
+    {% endif %}
+
+  </article>
 {% endblock %}
 
 {% block bottom-actions %}
-<a href="edit/">{% trans "Edit" %}</a>
-<a href="delete/">{% trans "Delete" %}</a>
+  <a href="edit/">{% trans "Edit" %}</a>
+  <a href="delete/">{% trans "Delete" %}</a>
 {% endblock %}