diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-01-09 17:44:57 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-01-09 17:44:57 -0300 |
commit | b3232ae7e075e551145017b6a698968124003f8e (patch) | |
tree | 526c25edaa31836de64754d2bfd8ffabfb9a01a3 /templates | |
parent | cb9c16e856abd32ab35ee64dd92be6e0a19f97e1 (diff) | |
parent | 2cc75b6939b43162a9c60f7d12159c7a1c9a707e (diff) |
Merge https://projects.archlinux.org/git/archweb
Conflicts:
templates/base.html
Diffstat (limited to 'templates')
-rw-r--r-- | templates/devel/clock.html | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/templates/devel/clock.html b/templates/devel/clock.html new file mode 100644 index 00000000..60a365cd --- /dev/null +++ b/templates/devel/clock.html @@ -0,0 +1,49 @@ +{% extends "base.html" %} + +{% block title %}Parabola GNU/Linux-libre - Hackers World Clocks{% endblock %} + +{% block content %} +<div id="dev-clocks-box" class="box"> + <h2>Hackers World Clocks</h2> + + <p>This page helps prevent you from waking a sleeping hacker. It also + depends on hackers keeping the time zone information up to date, so if + you see 'UTC' listed, pester them to update their settings.</p> + <p> + Parbola Server Time: {{ now|date:"Y-m-d H:i T" }}<br/> + UTC Time: {{ utc_now|date:"Y-m-d H:i T" }} + </p> + + <table id="clocks-table" class="results dash-stats"> + <thead> + <tr> + <th>Hacker</th> + <th>Username</th> + <th>Location</th> + <th>Time Zone</th> + <th>Current Time</th> + </tr> + </thead> + <tbody> + {% for dev in developers %} + <tr class="{% cycle 'odd' 'even' %}"> + <td>{{ dev.get_full_name }}</td> + <td>{{ dev.username }}</td> + <td>{{ dev.userprofile.location }}</td> + <td>{{ dev.userprofile.time_zone }}</td> + <td>{{ dev.current_time|date:"Y-m-d H:i T" }}</td> + </tr> + {% endfor %} + </tbody> + </table> +</div> +{% load cdn %}{% jquery %} +<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script> +<script type="text/javascript" src="/media/archweb.js"></script> +<script type="text/javascript"> +$(document).ready(function() { + $("#clocks-table:has(tbody tr)").tablesorter( + {widgets: ['zebra'], sortList: [[1,0]]}); +}); +</script> +{% endblock %} |