clock.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {% extends "base.html" %}
  2. {% load cycle from future %}
  3. {% load static from staticfiles %}
  4. {% load flags %}
  5. {% load tz %}
  6. {% block title %}{{ BRANDING_DISTRONAME }} - Hacker World Clocks{% endblock %}
  7. {% block head %}<link rel="stylesheet" type="text/css" href="{% static "flags/fam.css" %}" media="screen, projection" />{% endblock %}
  8. {% block content %}
  9. <div id="dev-clocks-box" class="box">
  10. <h2>Hacker World Clocks</h2>
  11. <p>This page helps prevent you from waking a sleeping hacker. It also
  12. depends on hackers keeping the time zone information up to date, so if
  13. you see 'UTC' listed, pester them to update their settings.</p>
  14. <p>The "Last Action" column shows the last time this developer has done
  15. something we know about. Considered dates for each developer include:</p>
  16. <ul>
  17. <li>Build date of a package in the repositories</li>
  18. <li>Last login to the developer side of this site</li>
  19. <li>Admin log entry on this site (e.g., adding a donor, modifying a
  20. mirror)</li>
  21. <li>Post date of a news item</li>
  22. <li>Signing off on a package</li>
  23. <li>Flagging a package out-of-date</li>
  24. </ul>
  25. <p>
  26. Current UTC Time: {{ utc_now|date:"Y-m-d H:i T" }}
  27. </p>
  28. <table id="clocks-table" class="results">
  29. <thead>
  30. <tr>
  31. <th>Hacker</th>
  32. <th>Username</th>
  33. <th>Alias</th>
  34. <th>Last Action</th>
  35. <th>Location</th>
  36. <th>Time Zone</th>
  37. <th>Current Time</th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. {% for dev in developers %}
  42. <tr class="{% cycle 'odd' 'even' %}">
  43. <td><a href="mailto:{{ dev.email }}">{{ dev.get_full_name }}</a></td>
  44. <td>{{ dev.username }}</td>
  45. <td>{{ dev.userprofile.alias }}</td>
  46. <td>{{ dev.last_action }}</td>
  47. <td>{% country_flag dev.userprofile.country %}{{ dev.userprofile.location }}</td>
  48. <td>{{ dev.userprofile.time_zone }}</td>
  49. <td>{{ utc_now|timezone:dev.userprofile.time_zone|date:"Y-m-d H:i T" }}<span class="hide"> {{ dev.userprofile.time_zone }}</span></td>
  50. </tr>
  51. {% endfor %}
  52. </tbody>
  53. </table>
  54. </div>
  55. {% endblock %}
  56. {% block script_block %}
  57. {% load cdn %}{% jquery %}{% jquery_tablesorter %}
  58. <script type="text/javascript" src="{% static "archweb.js" %}"></script>
  59. <script type="text/javascript">
  60. $(document).ready(function() {
  61. $("#clocks-table:has(tbody tr)").tablesorter({
  62. widgets: ['zebra'],
  63. sortLocaleCompare: true,
  64. sortList: [[0,0]],
  65. headers: { 4: { sorter: false } }
  66. });
  67. });
  68. </script>
  69. {% endblock %}