Changeset View
Changeset View
Standalone View
Standalone View
users/templates/users/components/action.html
| {% url 'user-notification' as my_notifications_url %} | {% url 'user-notification' as my_notifications_url %} | ||||
| <div class="activity-list-item-wrapper"> | <div class="activity-list-item-wrapper"> | ||||
| {% include 'users/components/action_summary.html' %} | {% include 'users/components/action_summary.html' %} | ||||
| {% if not notification.date_read and request.path == my_notifications_url %} | {% if not notification.date_read and request.path == my_notifications_url %} | ||||
| <button class="btn btn-sm btn-secondary btn-icon markasread" data-toggle="tooltip" data-placement="top" | <button class="btn btn-sm btn-secondary btn-icon markasread" data-toggle="tooltip" data-placement="top" | ||||
| title="Mark as read" {% if notification %} data-mark-read-url="{{ notification.mark_read_url }}" | title="Mark as read" {% if notification %} data-mark-read-url="{{ notification.mark_read_url }}" | ||||
| data-is-read={% if notification.date_read %}"true"{% else %}"false"{% endif %} {% endif %}> | data-is-read={% if notification.date_read %}"true"{% else %}"false"{% endif %} {% endif %}> | ||||
| <i class="material-icons">markunread_mailbox</i> | <i class="material-icons">markunread_mailbox</i> | ||||
| </button> | </button> | ||||
| {% endif %} | {% endif %} | ||||
| </div> | </div> | ||||