BAPSicle/ui-templates/status.html

54 lines
1.8 KiB
HTML
Raw Normal View History

2020-10-24 02:13:02 +00:00
{% extends 'base.html' %}
{% block head %}
<meta http-equiv="refresh" content="2;url=/status" />
{% endblock %}
{% block content_inner %}
{% if data %}
<div class="row">
{% for player in data.channels %}
<div class="col-4">
{% if player %}
<h3 class="h5">Player {{player.channel}}</h3>
2021-06-20 23:22:29 +00:00
<p>
Initialised: {{player.initialised}}<br/>
2021-09-25 17:51:30 +00:00
Successful Load: {{player.loaded}}<br/>
2021-09-01 20:27:25 +00:00
Fader Live: {{player.live}}<br/>
Current Tracklist: {{player.tracklist_id}}
2021-06-20 23:22:29 +00:00
</p>
<a href="/player/{{player.channel}}/play">Play</a>
{% if player.paused %}
<a href="/player/{{player.channel}}/unpause">UnPause</a>
{% else %}
<a href="/player/{{player.channel}}/pause">Pause</a>
{% endif %}
<a href="/player/{{player.channel}}/stop">Stop</a>
<a href="/player/{{player.channel}}/seek/50.0">Seek 50</a>
<br>
<label for="file">{{ player.pos_true | int }} / {{ player.length | int }}s ({{ player.remaining | int }}s)</label>
<br>
<progress id="file" value="{% if player.length > 0 %}{{player.pos_true / player.length * 100}}{% else %}0{% endif %}" max="100" style="width: 100%"></progress>
<hr />
<h4 class="h6">Loaded Item</h3>
{{ player.loaded_item }}
<hr />
<h4 class="h6">Plan Items</h3>
{% for planitem in player.show_plan %}
<small>
<a href="/player/{{player.channel}}/load/{{planitem.weight}}">Load</a> {{ planitem }}
</small>
<hr />
{% endfor %}
<br>
{% else %}
2021-09-08 22:36:59 +00:00
<p>Failed to get status from Player Channel. Channel may be busy or has failed.</p>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
2020-12-19 14:57:37 +00:00
{% endblock %}