Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

nicer interface

  • Loading branch information...
commit 4b94cbf5921971d5978ab862f8331b085670e2f8 1 parent ed8740f
Sebastian Steuer authored
View
25 kiosk/templates/kiosk.html
@@ -31,5 +31,30 @@
width: 100%;
height: 200px;
background-color: grey;
+ font-size: 200%;
}
+
+ #kioskbox button {
+ padding:0;
+ margin:0;
+ width:50%;
+ font-size:100%;
+ height: 60px;
+ border: 0px solid #333333;
+ color:#000000;
+ background-color: green;
+ }
+
+ #kioskbox button.red {
+ background-color: red;
+ }
+
+ #kioskbox button.grey {
+ background-color: gray;
+ }
+ #kioskbox table {
+ width: 100%;
+ text-align: left;
+ }
+
</style>
View
52 kiosk/templates/kiosk_live.html
@@ -1,20 +1,46 @@
-<h1>Playing: {{now}}</h1>
- {% if now.type == "l" or now.type == 'e' %}
- SR:{{now.streamRequest.id}}
- <button id = "button_abort" onclick = "setState({{now.streamRequest.id}},'x');">Abort</button>
- {% endif %}
-{% if request %}
- <h1>Request: {{request}}</h1>
- <button id = "button_allow" onclick = "setState({{request.id}},'a');">Allow</button>
- <button id = "button_deny" onclick = "setState({{request.id}}, 'd');">Deny</button>
-{% endif %}
+<table>
+ <tr>
+ <th></th>
+ <th>{% if now.type == 'e' %}Streaming{%else%}Playing{%endif%}</th>
+ <th>{% if request %}Request{% endif %}</th>
+ </tr>
+ <tr>
+ <th>Title</th>
+ <td>{{now.title}}</td>
+ <td>{{request.title}}</td>
+ </tr>
+ <tr>
+ <th>Author</th>
+ <td>{{now.author}}</td>
+ <td>{{request.author}}</td>
+ </tr>
+ <tr>
+ <th>since</th>
+ <td>{{now.played|timesince}}</td>
+ <td>{{request.request_date|timesince}}</td>
+ </tr>
+ <tr>
+ <th></th>
+ <td>
+ {% if now.type == 'e' %}
+ <button class = "red" id = "button_abort" onclick = "setState({{now.streamRequest.id}},'x');">Abort</button>
+ {%endif%}
+
+ </td>
+ {% if request %}
+ <td>
+ <button id = "button_allow" onclick = "setState({{request.id}},'a');">Allow</button>
+ <button class = "red" id = "button_deny" onclick = "setState({{request.id}}, 'd');">Deny</button>
+ </td>
+ {% endif %}
+</table>
+
+
<script type='text/javascript'>
-
-
function setState(id, state) {
bla = new Request.HTML({url:'{% url kiosk_set %}'}).post({'id': id, 'state': state});
}
- //$('button_allow').addEvent('onclick', setState({{request.id}},'a'));
+ //$('button_abort').addEvent('click', setState({{request.id}},'a'));
</script>
View
2  templates/index.html
@@ -62,7 +62,7 @@
</a>
<!-- no login in kiosk mode -->
- <div id="login-widget"></div>
+ <div style="visibility: hidden;" id="login-widget"></div>
<div id="content">
{% block content %}{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.