Changeset - 856b2284df1c
[Not reviewed]
default
0 1 0
Dennis Fink - 9 years ago 2016-03-22 12:43:46
dennis.fink@c3l.lu
Added people_now_present into index.html
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
spaceapi/templates/index.html
Show inline comments
 
@@ -4,6 +4,12 @@
 
    {% if status['state']['open'] %}
 
      <img src="{{ url_for('static', filename='open.png') }}" class="center-block"></img>
 
      <p class="text-center">Yes, we're open!</p>
 
      {% if status['sensors']['people_now_present'][0]['value'] > 0 %}
 
        <p class="text-center">There are currently {{ status['sensors']['people_now_present'][0]['value'] }} people present!</p>
 
        {% if 'names' in status['sensors']['people_now_present'][0] %}
 
          <p class="text-center">Present members: {{ ','.join(status['sensors']['people_now_present'][0]['names']) }}</p>
 
        {% endif %}
 
      {% endif %}
 
    {% else %}
 
      <img src="{{ url_for('static', filename='closed.png') }}" class="center-block"></img>
 
      <p class="text-center">Sorry, we're closed!</p>
0 comments (0 inline, 0 general)