]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/templates/phyll/note_list.html
views: add page to list notes by tag
[chloro.git] / chloro / phyll / templates / phyll / note_list.html
diff --git a/chloro/phyll/templates/phyll/note_list.html b/chloro/phyll/templates/phyll/note_list.html
new file mode 100644 (file)
index 0000000..abc30a0
--- /dev/null
@@ -0,0 +1,20 @@
+{% extends "phyll/base.html" %}
+{% load i18n %}
+
+{% block content-class %}post-list{% endblock %}
+
+{% block body %}
+<div>
+<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>
+{% endfor %}
+</ul>
+</div>
+{% endblock %}
+
+{% block bottom-actions %}
+<a href="edit/">{% trans "Edit" %}</a>
+<a href="delete/">{% trans "Delete" %}</a>
+{% endblock %}