2007-11-03 00:45:10 -07:00
|
|
|
{% extends "base.html" %}
|
2010-08-27 07:50:55 -07:00
|
|
|
|
2010-03-01 19:43:52 -08:00
|
|
|
{% block title %}Arch Linux - Todo Lists{% endblock %}
|
2007-11-03 00:45:10 -07:00
|
|
|
|
|
|
|
{% block content %}
|
2010-03-16 11:22:54 -07:00
|
|
|
<div id="dev-todo" class="box">
|
|
|
|
|
|
|
|
<h2>Package Todo Lists</h2>
|
|
|
|
|
|
|
|
{% if perms.main.add_todolist %}
|
|
|
|
<ul class="admin-actions">
|
|
|
|
<li><a href="/todo/add/" title="Add new todo list">Add Todo List</a></li>
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
|
2010-08-27 08:04:00 -07:00
|
|
|
<table id="dev-todo-lists" class="results todo-table">
|
2010-03-16 11:22:54 -07:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Creation Date</th>
|
|
|
|
<th>Creator</th>
|
|
|
|
<th>Description</th>
|
2010-09-09 11:36:41 -07:00
|
|
|
<th>Package Count</th>
|
|
|
|
<th>Incomplete Count</th>
|
2010-03-16 11:22:54 -07:00
|
|
|
<th>Status</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2008-04-05 13:26:48 -07:00
|
|
|
{% for list in lists %}
|
2010-03-16 11:22:54 -07:00
|
|
|
<tr class="{% cycle 'odd' 'even' %}">
|
2010-07-22 12:59:34 -07:00
|
|
|
<td><a href="{{ list.get_absolute_url }}"
|
2010-03-16 11:22:54 -07:00
|
|
|
title="View todo list: {{ list.name }}">{{ list.name }}</a></td>
|
2011-03-14 22:00:12 -07:00
|
|
|
<td>{{ list.date_added|date }}</td>
|
2010-03-16 11:22:54 -07:00
|
|
|
<td>{{ list.creator.get_full_name }}</td>
|
2011-03-07 19:23:42 -08:00
|
|
|
<td class="wrap">{{ list.description|urlize }}</td>
|
2010-09-09 11:36:41 -07:00
|
|
|
<td>{{ list.pkg_count }}</td>
|
|
|
|
<td>{{ list.incomplete_count }}</td>
|
|
|
|
<td>{% ifequal list.incomplete_count 0 %}<span class="complete">Complete</span>
|
|
|
|
{% else %}<span class="incomplete">Incomplete</span>{% endifequal %}</td>
|
2010-03-16 11:22:54 -07:00
|
|
|
</tr>
|
2008-04-05 13:26:48 -07:00
|
|
|
{% endfor %}
|
2010-03-16 11:22:54 -07:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2010-08-27 07:20:14 -07:00
|
|
|
</div>
|
|
|
|
{% load cdn %}{% jquery %}
|
2011-12-05 21:06:10 -08:00
|
|
|
<script type="text/javascript" src="{{ STATIC_URL }}jquery.tablesorter.min.js"></script>
|
|
|
|
<script type="text/javascript" src="{{ STATIC_URL }}archweb.js"></script>
|
2010-08-27 07:20:14 -07:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
2010-09-09 11:36:41 -07:00
|
|
|
// I'm not sure why it didn't autodetect digit, but it has to be explicit
|
|
|
|
// http://stackoverflow.com/questions/302749/jquery-tablesorter-problem
|
|
|
|
$(".results").tablesorter({widgets: ['zebra'], sortList: [[1,1]],
|
|
|
|
headers: { 4: { sorter: 'digit' }, 5: { sorter: 'digit' } } });
|
2010-08-27 07:20:14 -07:00
|
|
|
});
|
|
|
|
</script>
|
2007-11-03 00:45:10 -07:00
|
|
|
{% endblock %}
|