]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/templates/phyll/note_list.html
misc: extend notes with a "published" flag
[chloro.git] / chloro / phyll / templates / phyll / note_list.html
index abc30a09f0c166f5120bdc054ab0a51d9fdab7da..aedf918fbd59a279a7ebf0f8a4a0647ba599ebb4 100644 (file)
@@ -8,7 +8,7 @@
 <h2>{{ view.kwargs.tag }}</h2>
 <ul>
 {% for post in object_list %}
-<li><a href="{{ post.get_absolute_url }}">{{ post.title }} <span>{{ post.creation_timestamp|date:"Y/m/d" }}</a></li>
+<li {% if not post.published %}class="unpublished"{% endif %}><a href="{{ post.get_absolute_url }}">{{ post.title }} <span>{{ post.creation_timestamp|date:"Y/m/d" }}</a></li>
 {% endfor %}
 </ul>
 </div>