{% if has_previous %}
Back
{% endif %}
{% for num in range(1, total_pages + 1) %}
{% if num == 1 or num == total_pages or num >= page - 3 and num <= page + 3 %}
{% if page == num %}
{{ num }}
{% else %}
{{ num }}
{% endif %}
{% elif num == 2 or num == total_pages - 1 %}
...
{% endif %}
{% endfor %}
{% if has_next %}
Next
{% endif %}
{% endif %}
Alarmer Name
Alarmer Type
Actions
{% if alarms %}
{% for alarm in alarms %}
{{ alarm.alarmer_name }}
{{ alarm.backend_type }}
{% endfor %}
{% else %}
No created alarms
{% endif %}
Project Name
Alarm Working
Heartbeat
Connected Alarms
Actions
{% if projects %}
{% for project in projects %}
{{ project.project_name }}
{% if project.id in working_alarms %}
{% else %}
{% endif %}