c8ece67cec
This is a rather widespread set of changes converting usage to the new todo list and todo list package model recently introduced. The data migration is not included in this commit. After this commit, the old model should no longer be referenced anywhere. Signed-off-by: Dan McGee <dan@archlinux.org>
57 lines
2.0 KiB
HTML
57 lines
2.0 KiB
HTML
{% extends "base.html" %}
|
|
{% load static from staticfiles %}
|
|
|
|
{% block title %}Arch Linux - Todo Lists{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id="dev-todo" class="box">
|
|
|
|
<h2>Package Todo Lists</h2>
|
|
|
|
{% if perms.todolists.add_todolist %}
|
|
<ul class="admin-actions">
|
|
<li><a href="/todo/add/" title="Add new todo list">Add Todo List</a></li>
|
|
</ul>
|
|
{% endif %}
|
|
|
|
<table id="dev-todo-lists" class="results todo-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Creation Date</th>
|
|
<th>Creator</th>
|
|
<th>Description</th>
|
|
<th>Package Count</th>
|
|
<th>Incomplete Count</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for list in lists %}
|
|
<tr class="{% cycle 'odd' 'even' %}">
|
|
<td><a href="{{ list.get_absolute_url }}"
|
|
title="View todo list: {{ list.name }}">{{ list.name }}</a></td>
|
|
<td>{{ list.created|date }}</td>
|
|
<td>{{ list.creator.get_full_name }}</td>
|
|
<td class="wrap">{{ list.description|urlize }}</td>
|
|
<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>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% load cdn %}{% jquery %}{% jquery_tablesorter %}
|
|
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
// 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' } } });
|
|
});
|
|
</script>
|
|
{% endblock %}
|