summaryrefslogtreecommitdiff
path: root/web/kbn_templates/cams.j2
blob: 5ec7279f02548b069ee6e37a15705f42d0527a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{% extends "base.j2" %}
{% block content %}

{% if mode.type == 'all' %}
    {{ breadcrumbs([{'text': "cams"|lang}]) }}
{% elif mode.type == 'zone' %}
    {{ breadcrumbs([
        {'link': 'cams.cgi', 'text': "cams"|lang},
        {'text': mode.zone|lang('ipcam_zones')}
    ]) }}
{% elif mode.type == 'single' %}
    {{ breadcrumbs([
        {'link': 'cams.cgi', 'text': "cams"|lang},
        {'text': mode.cam|lang('ipcam')}
    ]) }}
{% endif %}

<div id="videos" class="camfeeds"></div>

{% endblock %}

{% block js %}
if (isTouchDevice()) {
    addClass(ge('videos'), 'is_mobile');
}
Cameras.init({{ js_config|tojson }});
{% endblock %}