{% extends 'notifications/base.html' %} {% load static %} {% block title %}{{ notification.title }} - Notifications - AdTlas{% endblock %} {% block breadcrumb %} {% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{{ notification.title }}

{{ notification.notification_type.name }}

{% if not notification.is_read %} Unread {% else %} Read {% endif %} {% if notification.notification_type.priority >= 4 %} High Priority {% endif %} {{ notification.created_at|timesince }} ago
{% if not notification.is_read %} {% endif %} {% if not notification.is_archived %} {% endif %}
Message
{{ notification.message|linebreaks }}
{% if notification.action_url %} {% endif %}
{% if notification.data %}
Additional Information
{% for key, value in notification.data.items %} {% endfor %}
{{ key|title }} {{ value }}
{% endif %} {% if notification.content_object %}
Related Item
{{ notification.content_type.model|title }}

{{ notification.content_object }}

{% if notification.content_object.get_absolute_url %} View {% endif %}
{% endif %}
Notification Details
{{ notification.notification_type.name }}
{% if notification.notification_type.priority == 5 %} Critical {% elif notification.notification_type.priority == 4 %} High {% elif notification.notification_type.priority == 3 %} Normal {% elif notification.notification_type.priority == 2 %} Low {% else %} Very Low {% endif %}
{% if notification.is_archived %} Archived {% elif notification.is_read %} Read {% else %} Unread {% endif %}
{{ notification.created_at|date:"M d, Y" }}
{{ notification.created_at|time:"g:i A" }}
{% if notification.read_at %}
{{ notification.read_at|date:"M d, Y" }}
{{ notification.read_at|time:"g:i A" }}
{% endif %} {% if notification.expires_at %}
{{ notification.expires_at|date:"M d, Y" }}
{{ notification.expires_at|time:"g:i A" }}
{% endif %}
Quick Actions
Back to Notifications {% if not notification.is_read %} {% endif %} {% if not notification.is_archived %} {% endif %}
{% if related_notifications %}
Related Notifications
{% for related in related_notifications %}
{{ related.title|truncatechars:40 }}
{{ related.created_at|timesince }} ago
{% endfor %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}