~xibo-maintainers/xibo/tempel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% for region in regions %}
    {{ region.name }} - {{ region.width }} x {{ region.height }} [{{ region.top }},{{ region.left }}]

    <table class="table table-bordered">
        <thead>
            <th>{% trans "Playlist" %}</th>
            <th>{% trans "Name" %}</th>
            <th>{% trans "Type" %}</th>
            <th>{% trans "Duration" %}</th>
        </thead>
        <tbody>
        {% for playlist in region.playlists %}
            {% for widget in playlist.widgets %}
                <tr>
                    <td>{{ playlist.name }}</td>
                    <td>{{ widget.module.getName() }}</td>
                    <td>{{ widget.module.getModuleName() }}</td>
                    <td>{{ widget.calculatedDuration }}</td>
                </tr>
            {% endfor %}
        {% endfor %}
        </tbody>
    </table>
{% endfor %}