69 lines
2.2 KiB
HTML
69 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport"
|
||
content="width=device-width, initial-scale=1.0">
|
||
<meta http-equiv="X-UA-Compatible"
|
||
content="ie=edge">
|
||
<title>ТВ</title>
|
||
<link rel="stylesheet"
|
||
href="/static/common/style.css?v={{version}}">
|
||
<link rel="stylesheet"
|
||
href="/static/schedule/style.css?v={{version}}">
|
||
<link rel="icon"
|
||
href="/static/schedule/favicon.ico?v={{version}}"
|
||
type="image/x-icon">
|
||
</head>
|
||
|
||
<body class="app-container">
|
||
<h3 class="app-header">
|
||
<a class="app-link-home"
|
||
href="/">
|
||
<div></div>
|
||
</a>
|
||
<div class="app-title">
|
||
<a class="button {{'disabled' if response.date == datetime.date.today() else ''}}"
|
||
href="../tag/{{tag_util.create_tag('day', response.date, -1)}}">⬅️</a>
|
||
<a class="button"
|
||
href="..">⬆️</a>
|
||
<span>{{'Прямые трансляции' if live else 'Программа'}} | {{response.date.strftime('%a, %d %B %Y')}}</span>
|
||
<a class="button"
|
||
href="../tag/{{tag_util.create_tag('day', response.date, 1)}}">➡️</a>
|
||
</div>
|
||
</h3>
|
||
|
||
<table class="{{'live' if live else ''}}">
|
||
<thead>
|
||
<tr>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{% for response in responses %}
|
||
{% set values = (response.values|selectattr('live') if live else response.values)|list %}
|
||
{% if values|length > 0 %}
|
||
<tr>
|
||
<td colspan="3">
|
||
<div class="title">{{response.channel.name}}</div>
|
||
</td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
{% for value in values %}
|
||
<tr class="{{'live' if not live and value.live else ''}}">
|
||
<td>{{value.start.strftime('%H:%M')}}</td>
|
||
<td>{{(value.end - value.start) | timedelta_format}}</td>
|
||
<td>{{value.label}}</td>
|
||
</tr>
|
||
{% endfor %}
|
||
{% endif %}
|
||
{% endfor %}
|
||
</tbody>
|
||
</table>
|
||
</body>
|
||
|
||
</html> |