summaryrefslogtreecommitdiff
path: root/web/kbn_templates/cams.j2
blob: 361b86a5c4b50d76f57abb4bb62122ecc35b30de (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 %}