@@ -40,6 +40,7 @@
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{% if current_user.is_authenticated %}
|
||||
<li><a href="{{ url_for('notifications_page') }}">({{ current_user.notifications | length }})</a></li>
|
||||
<li><a href="{{ url_for('user_profile_page', username=current_user.username) }}">{{ current_user.display_name }}</a></li>
|
||||
<li><a href="{{ url_for('user.logout') }}">Sign out</a></li>
|
||||
{% else %}
|
||||
|
||||
17
app/templates/notifications/list.html
Normal file
17
app/templates/notifications/list.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
Notifications
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<ul>
|
||||
{% for n in current_user.notifications %}
|
||||
<li><a href="{{ n.url }}">
|
||||
{{ n.title}} [{{ n.causer.display_name }}]
|
||||
</a></li>
|
||||
{% else %}
|
||||
<li><i>No notifications</i></ul>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user