Denote/denote/templates/user_index.html

19 lines
624 B
HTML
Raw Normal View History

2015-09-24 18:31:03 +02:00
{% extends "base_user.html" %}
{% block content %}
{% for note in notes %}
<div class="note">
{% if note.category != None %}
<div class="title"><a href="/note/{{ note.id}}" oncontextmenu="return DoEdit('{{ note.id}}');">{{ note.title }} [{{ note.category.name }}]</a></div>
2015-09-24 18:31:03 +02:00
{% else %}
<div class="title"><a href="/note/{{ note.id}}" oncontextmenu="return DoEdit('{{ note.id}}');">{{ note.title }}</a></div>
2015-09-24 18:31:03 +02:00
{% endif %}
<div class="date">{{ note.modified_date }}</div>
<div class="summary">{{ note.long_summary }}</div>
</div>
{% endfor %}
2016-06-14 11:09:11 +02:00
{% if notes|length == 0 %}
<b>Any note</b>
{% endif %}
2015-09-24 18:31:03 +02:00
{% endblock %}