Add public notes access
This commit is contained in:
@@ -13,12 +13,15 @@
|
||||
</head>
|
||||
<body onload="startup();">
|
||||
<!-- Header -->
|
||||
<div class="settings">{% if authenticated %}<a href="/user/edit">Settings</a> <a href="/disconnect">Disconnect</a><br/>
|
||||
<div class="settings"><a href="/public_notes">Public notes</a> {% if authenticated %}<a href="/user/edit">Settings</a> <a href="/disconnect">Disconnect</a><br/>
|
||||
{% endif %}
|
||||
<form action="/search" method="post">{% csrf_token %}<input name="text"/><input type="submit" value="Search"/></form></div>
|
||||
<!-- Left panel -->
|
||||
<div id="left_panel">
|
||||
<a id="home_icon" href="/" alt="Home"><img src="{{ STATIC_URL }}images/home.png"/></a><br/><br/>
|
||||
{% if authenticated %}
|
||||
<a href="/note/add">Add a note</a>
|
||||
{% endif %}
|
||||
{% block left %} {% endblock %}
|
||||
</div>
|
||||
<div id="main_panel">
|
||||
|
@@ -6,9 +6,6 @@
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block left %}
|
||||
{% if authenticated %}
|
||||
<a href="/note/add">Add a note</a>
|
||||
{% endif %}
|
||||
<div id="categories">
|
||||
{% for meta_note in notes_by_category %}
|
||||
<div class="category" category_id="{{ meta_note.category_id }}">
|
||||
@@ -46,10 +43,6 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
{% if notes_by_category|length == 0 %}
|
||||
<b>Any note</b>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@@ -27,6 +27,8 @@
|
||||
<tr><td>Password</td><td><input id="password" type="password" name="password"/></td></tr>
|
||||
<tr><td/><td><input type="submit" value="Connect"/></td></tr>
|
||||
<tr><td/><td><a href="/user/add">Create an account</a><br/>({{ nb_people_registered }} people(s) registered)</td></tr>
|
||||
<tr><td></td><td></td></tr>
|
||||
<tr><td></td><td><a href="/public_notes">Public notes</a></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user