Add visibility management
This commit is contained in:
26
denote/templates/public_notes.html
Normal file
26
denote/templates/public_notes.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block left %}
|
||||
{% for note in public_notes %}
|
||||
<div id="categories">
|
||||
<div class="note">
|
||||
<a href="/note/{{ note.author.id}}/{{ note.id }}"><div class="title">{{ note.title }}</div></a>
|
||||
<div class="date">{{ note.created_date }}</div>
|
||||
<div class="summary">{{ note.short_summary }}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% for note in notes %}
|
||||
<div class="note">
|
||||
<div class="title"><a href="/note/{{ note.author.id }}/{{ note.id }}">{{ note.title }}</a></div>
|
||||
<div class="date">{{ note.modified_date }}</div>
|
||||
<div class="summary">{{ note.long_summary }}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% if notes|length == 0 %}
|
||||
<b>Any note</b>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user