mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-08 21:02:18 -06:00
* Initial work on #15621 * Signal receiver should ignore models which don't support notifications * Flesh out NotificationGroup functionality * Add NotificationGroup filters for users & groups * Separate read & dimiss actions * Enable one-click dismissals from notifications list * Include total notification count in dropdown * Drop 'kind' field from Notification model * Register event types in the registry; add colors & icons * Enable event rules to target notification groups * Define dynamic choices for Notification.event_name * Move event registration to core * Add more job events * Misc cleanup * Misc cleanup * Correct absolute URLs for notifications & subscriptions * Optimize subscriber notifications * Use core event types when queuing events * Standardize queued event attribute to event_type; change content_type to object_type * Rename Notification.event_name to event_type * Restore NotificationGroupBulkEditView * Add API tests * Add view & filterset tests * Add model documentation * Fix tests * Update notification bell when notifications have been cleared * Ensure subscribe button appears only on relevant models * Notifications/subscriptions cannot be ordered by object * Misc cleanup * Add event icon & type to notifications table * Adjust icon sizing * Mute color of read notifications * Misc cleanup
33 lines
874 B
HTML
33 lines
874 B
HTML
{% extends 'account/base.html' %}
|
|
{% load buttons %}
|
|
{% load helpers %}
|
|
{% load render_table from django_tables2 %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans "Subscriptions" %}{% endblock %}
|
|
|
|
{% block content %}
|
|
<form method="post" class="form form-horizontal">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="return_url" value="{% url 'account:subscriptions' %}" />
|
|
|
|
{# Table #}
|
|
<div class="row">
|
|
<div class="col col-md-12">
|
|
<div class="card">
|
|
<div class="htmx-container table-responsive" id="object_list">
|
|
{% include 'htmx/table.html' %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{# Form buttons #}
|
|
<div class="btn-list d-print-none mt-2">
|
|
{% if 'bulk_delete' in actions %}
|
|
{% bulk_delete_button model query_params=request.GET %}
|
|
{% endif %}
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|