aboutsummaryrefslogtreecommitdiffstats
path: root/notes/templates/view.html
diff options
context:
space:
mode:
Diffstat (limited to 'notes/templates/view.html')
-rw-r--r--notes/templates/view.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/notes/templates/view.html b/notes/templates/view.html
index a6d3473..fa2a59d 100644
--- a/notes/templates/view.html
+++ b/notes/templates/view.html
@@ -6,10 +6,18 @@
<div data-role="header">
<a href="/notes/" data-icon="arrow-l">Notes</a>
<h1>{{ note.title }}</h1>
- <a href="{{ note.get_absolute_url }}edit/">Edit</a>
+ <a href="{{ note.get_absolute_url }}edit/" data-ajax="false">Edit</a>
</div>
<div data-role="content">
<p>{{ version.content|restructuredtext }}</p>
+ <ul data-role="listview" data-inset="true">
+ {% for a in note.attachment_set.all %}
+ <li><a href="/notes/{{ note.id }}/file/{{ a.id }}/">{{ a.get_name }}<span class="ui-li-aside ui-li-desc">{{ a.content.size|filesizeformat }}</span></a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ <div data-role="footer" class="ui-bar" data-position="fixed" data-theme="b">
+ <a href="delete" data-icon="delete" data-role="button">Delete</a>
</div>
</div>
{% endblock content %}