summaryrefslogtreecommitdiff
path: root/templates/thoughts.html.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/thoughts.html.j2')
-rw-r--r--templates/thoughts.html.j212
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/thoughts.html.j2 b/templates/thoughts.html.j2
index 69734fa..fa950e7 100644
--- a/templates/thoughts.html.j2
+++ b/templates/thoughts.html.j2
@@ -1,6 +1,12 @@
{% extends "template.html.j2" %}
{% block content %}
- <div id="thoughts_list">
- {{ content|safe }}
- </div>
+ {% for category_name, thoughts in tree.items() %}
+ <h3 id="{{category_name.replace(' ', '_')}}">{{category_name}}</h3>
+ <dl>
+ {% for id_, title, datetime in thoughts %}
+ <dt><a href="{{'/thought?id=%i' % id_}}">{{title}}</a></dt>
+ <dd>{{datetime}}</dd>
+ {% endfor %}
+ </dl>
+ {% endfor %}
{% endblock %}