mirror of
https://github.com/QingdaoU/Spirit.git
synced 2024-12-28 15:32:12 +00:00
Cross reference for read/unread notifications. (#213)
* Cross reference for read/unread notifications.
This commit is contained in:
parent
bb14b111f1
commit
7afd334500
@ -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>
|
@ -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" %}
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user