vuko | 3cd087d | 2021-12-28 13:19:40 +0100 | [diff] [blame] | 1 | {% extends "basic.html" %} |
| 2 | {% block title %} |
| 3 | Now 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 }}"> |
vuko | 4306994 | 2021-12-28 21:39:28 +0100 | [diff] [blame^] | 12 | {{ user }} (<span class="timestamp" data-datetime="{{ timestamp|utcisoformat }}">{{ timestamp|strfts() }} UTC</span>) |
vuko | 3cd087d | 2021-12-28 13:19:40 +0100 | [diff] [blame] | 13 | </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> |
vuko | 4306994 | 2021-12-28 21:39:28 +0100 | [diff] [blame^] | 34 | <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> |
vuko | 3cd087d | 2021-12-28 13:19:40 +0100 | [diff] [blame] | 49 | {% endblock %} |