evorepo/templates/devel/clock.html
Dan McGee 943ef2e8e4 Convert to and enable staticfiles contrib application
This moves our site static files into the sitestatic directory if they
are shared resources, and also moves a handful of things (such as the
artwork logos) into application-specific static/ directories. This
allows the staticfiles contrib app to work after a few settings tweaks,
a run of collectstatic, and massaging the hardcoded '/media/' prefix out
of our templates.

Django 1.4 is going to make this a lot easier to move things to a CDN
and provides better template tags; for now this is setting the stage
before we can move to that.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-05 23:06:10 -06:00

52 lines
1.7 KiB
HTML

{% 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 T" }}<br/>
UTC Time: {{ utc_now|date:"Y-m-d H:i T" }}
</p>
<table id="clocks-table" class="results">
<thead>
<tr>
<th>Developer</th>
<th>Username</th>
<th>Alias</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><a href="mailto:{{ dev.email }}">{{ dev.get_full_name }}</a></td>
<td>{{ dev.username }}</td>
<td>{{ dev.userprofile.alias }}</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="{{ STATIC_URL }}jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}archweb.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#clocks-table:has(tbody tr)").tablesorter(
{widgets: ['zebra'], sortList: [[0,0]]});
});
</script>
{% endblock %}