Cross reference for read/unread notifications. (#213)

* Cross reference for read/unread notifications.
This commit is contained in:
cryptogun 2018-01-31 01:40:03 +08:00 committed by Esteban Castro Borsani
parent bb14b111f1
commit 7afd334500
3 changed files with 20 additions and 3 deletions

View File

@ -0,0 +1,18 @@
{% load i18n %}
<div class="container">
<div class="categories js-tabs-container">
{% ifequal active "notifications" %}
<a class="dropdown-button js-tab" href="#" data-related=".js-categories-content">{% trans "Notifications" %} <i class="fa fa-chevron-down"></i></a>
{% else %}
<a class="dropdown-button js-tab" href="#" data-related=".js-categories-content">{% trans "Unread notifications" %} <i class="fa fa-chevron-down"></i></a>
{% endifequal %}
<div class="tab-content js-tab-content js-categories-content">
<ul class="menu">
<li><a class="menu-link" href="{% url "spirit:topic:notification:index" %}" >{% trans "Notifications" %}</a></li>
<li><a class="menu-link" href="{% url "spirit:topic:notification:index-unread" %}" >{% trans "Unread notifications" %}</a></li>
</ul>
</div>
</div>
</div>

View File

@ -6,7 +6,7 @@
{% block content %}
<h1 class="headline">{% trans "Notifications" %}</h1>
{% include "spirit/topic/notification/_top_bar.html" with active="notifications" %}
<div class="rows">
{% include "spirit/topic/notification/_render_list.html" %}

View File

@ -5,8 +5,7 @@
{% block title %}{% trans "Unread notifications" %}{% endblock %}
{% block content %}
<h1 class="headline">{% trans "Unread notifications" %}</h1>
{% include "spirit/topic/notification/_top_bar.html" with active="unread_notifications" %}
<div class="rows">
{% if page %}