{% extends "base.html" %} {% import "_icons.html" as ic %} {% block content %} {% set limited = me_user and me_user.role != 'admin' %} {% set nvrs = devices|selectattr('type','equalto','nvr')|list %} {% set cams = devices|selectattr('type','equalto','camera')|list %}
{{ ic.i('devices') }}
{{ devices|length }}
სულ მოწყობილობა
{{ ic.i('nvr') }}
{{ nvrs|length }}
NVR
{{ ic.i('camera') }}
{{ cams|length }}
კამერა
{{ ic.i('pulse') }}
…
ონლაინ
{% if not limited %}{{ ic.i('play') }}
Live ტესტი
ნებისმიერი IP
{% endif %}
{% if devices %}
{% for d in devices %}
{{ ic.i('camera' if d.type == 'camera' else 'nvr', 'lg') }} {{ ic.kind(d.type) }} {% if d.ip %}{% endif %}
{{ d.name or d.ip or ('#' ~ d.id) }}
{{ d.brand or '—' }}{% if d.model %} · {{ d.model }}{% endif %}
{{ d.ip or '—' }}{% if d.location %} · {{ d.location }}{% endif %}
მართვა ტესტი {% if d.ip %}▶ Play{% endif %}
{% endfor %}
{% else %} {% if limited %}
შენთვის ჯერ არცერთი ობიექტი არ არის მინიჭებული — მიმართე ადმინისტრატორს.
{% else %}
ბაზა ცარიელია — დაამატე მოწყობილობა ინვენტარში ან ქსელის ძებნით.
{% endif %} {% endif %} {% include "_live.html" %} {% endblock %}