summaryrefslogtreecommitdiff
path: root/templates/admin/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/admin/index.html')
-rw-r--r--templates/admin/index.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html
new file mode 100644
index 0000000..e954960
--- /dev/null
+++ b/templates/admin/index.html
@@ -0,0 +1,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 'sbhs_server.admin.views.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 'sbhs_server.webcam.views.show_video_to_admin' b.mid %}" target="_blank">View image</a></td>
+ <td><a href="{% url 'sbhs_server.admin.views.profile' b.mid %}">View temperature profile</a></td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+ </div>
+</div>
+{% endblock %} \ No newline at end of file