blob: 95956f5719782f3c1da54b5c23910cd8848bac46 (
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
28
29
30
31
32
33
34
|
{% extends "layout.html" %}
{% load staticfiles %}
{% block content %}
<div class="container">
<div class="row">
{% include "account/sub_nav.html" %}
<div class="span12">
{% include "admin/sub_nav.html" %}
<h4>MID allotment mode is {{ allotment_mode }}. <small>Change to <a href="{% url 'admin_toggle_allotment_mode' %}">{% if allotment_mode == 'Random' %}Workshop mode{% else %}Random mode{% endif %}</a></small></h4>
<h1>Board status</h1>
<table class="table table-bordered">
<thead>
<tr>
<th>Board MID</th>
<th>Status</th>
<th>Webcam</th>
</tr>
</thead>
<tbody>
{% for b in boards %}
<tr>
<td>{{ b.mid }}</td>
<td><span class="label label-{% if b.online %}success{% else %}important{% endif %}">{% if b.online %}Online{% else %}Offline{% endif %}</span></td>
<td><a href="{% url 'webcam_show_video_to_admin' b.mid %}" target="_blank">View image</a></td>
<td><a href="{% url 'admin_profile' b.mid %}">View temperature profile</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}
|