birzha/plugins/rainlab/userplus/components/notifications/notifications-list.htm

21 lines
758 B
HTML

{% if notifications.total %}
{% for notification in notifications %}
<a
href="#"
data-request="onMarkNotificationAsRead"
data-request-data="redirect_link: '{{notification.link}}', notification_id: '{{notification.id}}'"
class="notification_area-item"
>
<h4 class="notification_are-title">
{{ notification.description }}
</h4>
<p class="notification_area-time">
{{ notification.created_at|date('H:s - d.m.Y') }}
</p>
</a>
{% endfor %}
{% else %}
<p class="text-muted no-notifications">{{ 'auth.no_notifications'|_ }}</p>
{% endif %}