aboutsummaryrefslogtreecommitdiffstats
path: root/notes/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'notes/templates/index.html')
-rw-r--r--notes/templates/index.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/notes/templates/index.html b/notes/templates/index.html
new file mode 100644
index 0000000..c996511
--- /dev/null
+++ b/notes/templates/index.html
@@ -0,0 +1,27 @@
+{% extends request.is_ajax|yesno:"blank.html,default.html" %}
+
+{% block content %}
+<div data-role="page">
+ <div data-role="header" data-position="fixed">
+ <a href="#tagPopup" data-icon="gear" data-rel="popup">Tags</a>
+ <h1>Notes</h1>
+ <a href="/notes/new/" class="ui-btn-right">New</a>
+ </div>
+ <div data-role="content">
+ <ul data-role="listview" data-filter="true">
+ {% for n in notes %}
+ <li><a href="{{ n.get_absolute_url }}">{{ n.title }}<p class="ui-li-aside ui-li-desc">{{ n.user.username }} @ {{ n.updated_at|date:"SHORT_DATE_FORMAT" }}</p></a></li>
+ {% endfor %}
+ </ul>
+
+ <div data-role="popup" id="tagPopup">
+ <ul data-role="listview" data-inset="true">
+ {% for t in tags %}
+ <li><a href="/notes/tag/{{ t.pk }}/">{{ t.title }} <span class="ui-li-count">{{ t.note_set.count }}</span></a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ </div>
+</div>
+
+{% endblock content %}