diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-08 11:49:41 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-08 11:49:41 -0600 |
commit | e927df1a643e2c0df103ca0fe027ef295e3975e9 (patch) | |
tree | 7cc4405aa56f67b9b5da8786506186cab68bb61d /templates | |
parent | c18cd21e536592b6ed482126ee423f38b9ac9257 (diff) | |
parent | c04d4abc88cdf0891bff2b1ce6d1d746c5b9b3c9 (diff) |
Merge branch 'dev-timezones'
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..ec567c2d --- /dev/null +++ b/templates/devel/clock.html @@ -0,0 +1,49 @@ +{% extends "base.html" %} + +{% block title %}Arch Linux - Developer World Clocks{% endblock %} + +{% block content %} +<div id="dev-clocks-box" class="box"> + <h2>Developer World Clocks</h2> + + <p>This page helps prevent you from waking a sleeping developer. It also + depends on developers keeping the time zone information up to date, so if + you see 'UTC' listed, pester them to update their settings.</p> + <p> + Arch Server Time: {{ now|date:"Y-m-d H:i" }}<br/> + UTC Time: {{ utc_now|date:"Y-m-d H:i" }} + </p> + + <table id="clocks-table" class="results dash-stats"> + <thead> + <tr> + <th>Developer</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" }}</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 %} |