diff --git a/spaceapi/templates/index.html b/spaceapi/templates/index.html --- a/spaceapi/templates/index.html +++ b/spaceapi/templates/index.html @@ -4,6 +4,12 @@ {% if status['state']['open'] %}

Yes, we're open!

+ {% if status['sensors']['people_now_present'][0]['value'] > 0 %} +

There are currently {{ status['sensors']['people_now_present'][0]['value'] }} people present!

+ {% if 'names' in status['sensors']['people_now_present'][0] %} +

Present members: {{ ','.join(status['sensors']['people_now_present'][0]['names']) }}

+ {% endif %} + {% endif %} {% else %}

Sorry, we're closed!