blob: 36ab1cd1555fc0b88c7c7fd83ffcd1ea7bc6f814 [file] [log] [blame]
vuko3cd087d2021-12-28 13:19:40 +01001{% extends "basic.html" %}
2{% block title %}
3Now at hackerspace
4{% endblock %}
5{% block content %}
6 <h2>Now at hackerspace!</h2>
7 Recently at <a href="http://www.hackerspace.pl">hackerspace</a>:
8 <ul>
9 {% for user, timestamp in users %}
10 <li>
11 <a href="{{ user | wikiurl }}">
vuko43069942021-12-28 21:39:28 +010012 {{ user }} (<span class="timestamp" data-datetime="{{ timestamp|utcisoformat }}">{{ timestamp|strfts() }} UTC</span>)
vuko3cd087d2021-12-28 13:19:40 +010013 </a>
14 </li>
15 {% endfor %}
16 </ul>
17 {% trans n_unk=unknown|length %}
18 <p>There is {{ n_unk }} unknown device operating. </p>
19 {% pluralize %}
20 <p>There are {{ n_unk }} unknown devices operating.</p>
21 {% endtrans %}
22 {% trans n_kek=kektops|length %}
23 <p>There is {{ n_kek }} unknown kektop operating.</p>
24 {% pluralize %}
25 <p>There are {{ n_kek }} unknown kektops operating.</p>
26 {% endtrans %}
27 {% trans n_esp=esps|length %}
28 <p>There is {{ n_esp }} unknown ESP operating.</p>
29 {% pluralize %}
30 <p>There are {{ n_esp }} unknown ESPs operating.</p>
31 {% endtrans %}
32 <hr>
33 <a href="claim">Claim this device!</a>
vuko43069942021-12-28 21:39:28 +010034 <script>
35 function formatDate(d) {
36 function pad(n) {return n<10 ? '0'+n : n};
37 return d.getFullYear()+'-'
38 + pad(d.getMonth()+1)+'-'
39 + pad(d.getDate())+' '
40 + pad(d.getHours())+':'
41 + pad(d.getMinutes());
42 }
43
44 for (const tstamp of document.getElementsByClassName('timestamp')) {
45 const dt = new Date(tstamp.getAttribute("data-datetime"));
46 tstamp.innerHTML = formatDate(dt);
47 }
48 </script>
vuko3cd087d2021-12-28 13:19:40 +010049{% endblock %}