diff options
author | ttt | 2017-05-13 00:29:47 +0530 |
---|---|---|
committer | ttt | 2017-05-13 00:29:47 +0530 |
commit | 4336f5f06f61de30ae3fa54650fce63a9d5ef5be (patch) | |
tree | 23b4ee9b8e8f24bf732acf2f7ad22ed50cdd5670 /templates/admin/index.html | |
download | SBHS-2018-Rpi-4336f5f06f61de30ae3fa54650fce63a9d5ef5be.tar.gz SBHS-2018-Rpi-4336f5f06f61de30ae3fa54650fce63a9d5ef5be.tar.bz2 SBHS-2018-Rpi-4336f5f06f61de30ae3fa54650fce63a9d5ef5be.zip |
added all server files
Diffstat (limited to 'templates/admin/index.html')
-rw-r--r-- | templates/admin/index.html | 34 |
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 |