{% load humanize %} {% load bootstrap_helpers %} {% load django_bootstrap5 %} {% load notification_helpers %} {% load bootstrap_helpers %} {% load community_utils %} {% load community_utils %} {% load community_buttons %} {% load sekizai_tags %} {% with notification_id=notification.id|stringformat:"s" %} {% with elem_id="notification-"|add:notification_id %} {% delete_notification_button notification as delete_button %} {% select_notification_button notification as select_button %} {% details_button notification no_lock=True as notification_details_button %} {% buttonize notification.date_created|naturaltime "text-muted" as date %} {% collapsible_card notification.subject elem_id accordion_id delete_button add_select_button|ifthen:select_button notification_details_button date button_class=notification.unread|ifthen:"fw-bold" buttons_class="col-md-auto text-secondary px-1 px-md-3" button_row_class="row-cols-2 row-cols-md-4" %}
From: {% if sender.communitymember %} {{ sender }} {% else %} {{ sender }} {% endif %}
{% endwith %} {% endif %} {% if notification.encryption_key %}Encrypted message{% else %}{{ notification.body }}{% endif %}