{% extends 'base.html' %} {% load static i18n %} {% block title %}{% trans "Notifications" %} - ATS{% endblock %} {% block content %}

{% trans "Notifications" %}

{% blocktrans count count=total_notifications %} {{ count }} notification {% plural %} {{ count }} notifications {% endblocktrans %} {% if unread_notifications %}({{ unread_notifications }} unread){% endif %}

{% if unread_notifications %} {% trans "Mark All Read" %} {% endif %}
{% trans "Clear" %}
{{ total_notifications }}

{% trans "Total Notifications" %}

{{ unread_notifications }}

{% trans "Unread" %}

{{ email_notifications }}

{% trans "Email Notifications" %}

{% if page_obj %}
{% for notification in page_obj %}
{{ notification.get_status_display }} {{ notification.get_notification_type_display }} {{ notification.created_at|date:"Y-m-d H:i" }}
{{ notification.message|truncatewords:15 }}
{% if notification.related_meeting %} {% trans "Related to meeting:" %} {{ notification.related_meeting.topic }} {% endif %}
{% if notification.status == 'PENDING' %} {% else %} {% endif %}
{% endfor %}
{% if page_obj.has_other_pages %} {% endif %} {% else %}
{% trans "No notifications found" %}

{% if status_filter or type_filter %} {% trans "Try adjusting your filters to see more notifications." %} {% else %} {% trans "You don't have any notifications yet." %} {% endif %}

{% if status_filter or type_filter %} {% trans "Clear Filters" %} {% endif %}
{% endif %}
{% endblock %} {% block customJS %} {% endblock %}