Commit 978cd0ec authored by Vidjil Team's avatar Vidjil Team

server: bikeshedding, 'news' instead of 'notifications'

parent 4956d848
......@@ -35,7 +35,7 @@ def index():
if not auth.is_admin():
notifications = notifications.find(lambda row: row.expiration >= date.today())
return dict(message="Notifications",
return dict(message="News",
query=query,
notifications=notifications)
......
......@@ -2,7 +2,7 @@
<div id="db_menu">
<a class="button" onclick="db.call('patient/index');">patients</a>
<a class="button" onclick="db.call('notification/index');">notifications</a>
<a class="button" onclick="db.call('notification/index');">news</a>
{{if auth.is_admin():}}
- - -
<a class="button" onclick="db.call('config/index');">configs</a>
......
......@@ -7,6 +7,9 @@
<div class="db_block info_block">
{{=XML(markdown(query.message_content))}}
</div>
<h3>Older news</h3>
{{pass}}
<div id="db_table_container" {{if query is not None:}}class="info_table"{{pass}}>
......@@ -69,5 +72,5 @@
</div>
{{if auth.is_admin():}}
<span class="button2" onclick="db.call('notification/add')"> + new notification </span>
<span class="button2" onclick="db.call('notification/add')"> + add news </span>
{{pass}}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment