hswaw/site: add checkinator integration
Change-Id: I19a72da67410332d6d82d49e3a54f1dc0f81ff65
diff --git a/hswaw/site/templates/index.html b/hswaw/site/templates/index.html
index 48f0acd..058c162 100644
--- a/hswaw/site/templates/index.html
+++ b/hswaw/site/templates/index.html
@@ -36,6 +36,28 @@
<p>
<b>Hackerspace nie zna barier.</b> Jeśli masz ciekawy pomysł i szukasz ludzi chętnych do współpracy lub po prostu potrzebujesz miejsca i sprzętu - <a href="">zapraszamy</a>!
</p>
+ <h3>Kto jest teraz w spejsie?</h3>
+ <p>
+ {{ if ne .AtError nil }}
+ <i>Ups, nie udało się załadować stanu checkinatora.</i>
+ {{ else }}
+ {{ $count := len .AtStatus.Users }}
+ {{ if gt $count 4 }}
+ Według <a href="https://at.hackerspace.pl">naszych instrumentów</a> w spejsie obecnie znajduje się {{ $count }} osób:
+ {{ else if gt $count 1 }}
+ Według <a href="https://at.hackerspace.pl">naszych instrumentów</a> w spejsie obecnie znajdują się {{ $count }} osoby:
+ {{ else if gt $count 0 }}
+ Według <a href="https://at.hackerspace.pl">naszych instrumentów</a> w spejsie obecnie znajduje się jedna osoba:
+ {{ else }}
+ Według <a href="https://at.hackerspace.pl">naszych instrumentów</a> w spejsie obecnie nie ma nikogo.
+ {{ end }}
+ <ul class="atlist">
+ {{ range .AtStatus.Users }}
+ <li>{{ .Login }}</li>
+ {{ end }}
+ </ul>
+ {{ end }}
+ </p>
</div>
<div class="blog">
<h2>Blog</h2>