Changeset View
Changeset View
Standalone View
Standalone View
profiles/templates/profiles/notifications.html
- This file was added.
| {% extends 'common/base.html' %} | |||||
| {% block content %} | |||||
| <div class="container-xl"> | |||||
| <section class="my-4 text-center"> | |||||
| {% include "common/components/simple_header.html" with title="Notifications" subtitle="All the latest likes and replies to your content are here." %} | |||||
| <button class="btn btn-dark btn-sm mb-3" data-mark-all-read-url="{% url 'api-notifications-mark-read' %}" > | |||||
| <i class="material-icons {% if user.profile.notifications_unread.count >= 1 %}unread{% endif %}">markunread_mailbox</i> | |||||
| <span>Mark all as read</span> | |||||
| </button> | |||||
| <ul class="list-group activity-list"> | |||||
| {% for notification in notifications %} | |||||
| {% with action=notification.action %} | |||||
| {% include 'profiles/components/action.html' %} | |||||
| {% endwith %} | |||||
| {% empty %} | |||||
| <li class="activity-list-item"> | |||||
| No notifications yet | |||||
| </li> | |||||
| {% endfor %} | |||||
| </ul> | |||||
| <div class="row justify-content-md-center py-3"> | |||||
| <div class="col col-lg-6 text-center"> | |||||
| <span class="step-links"> | |||||
| {% if page_obj.has_previous %} | |||||
| <a href="?page=1">« first</a> | |||||
| <a href="?page={{ page_obj.previous_page_number }}">previous</a> | |||||
| {% endif %} | |||||
| <span class="current"> | |||||
| Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }} | |||||
| </span> | |||||
| {% if page_obj.has_next %} | |||||
| <a href="?page={{ page_obj.next_page_number }}">next</a> | |||||
| <a href="?page={{ page_obj.paginator.num_pages }}">last »</a> | |||||
| {% endif %} | |||||
| </span> | |||||
| </div> | |||||
| </div> | |||||
| </section> | |||||
| </div> | |||||
| {% endblock %} | |||||
| {% block scripts_footer %} | |||||
| {% endblock %} | |||||