2007-11-03 00:45:10 -07:00
|
|
|
{% extends "base.html" %}
|
2012-03-24 10:37:19 -07:00
|
|
|
{% load static from staticfiles %}
|
2011-08-09 21:16:00 -07:00
|
|
|
{% load package_extras %}
|
|
|
|
|
2010-03-16 11:22:54 -07:00
|
|
|
{% block title %}Arch Linux - Todo: {{ list.name }}{% endblock %}
|
2010-02-07 07:38:48 -08:00
|
|
|
|
2007-11-03 00:45:10 -07:00
|
|
|
{% block content %}
|
2010-03-16 11:22:54 -07:00
|
|
|
<div id="dev-todo-details" class="box">
|
|
|
|
|
|
|
|
<h2>Todo List: {{ list.name }}</h2>
|
|
|
|
|
|
|
|
<ul class="admin-actions">
|
|
|
|
{% if perms.main.delete_todolist %}
|
|
|
|
<li><a href="/todo/delete/{{list.id}}/"
|
|
|
|
title="Delete this todo list">Delete Todo List</a></li>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.main.change_todolist %}
|
|
|
|
<li><a href="/todo/edit/{{list.id}}/"
|
|
|
|
title="Edit this todo list">Edit Todo List</a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
|
2011-03-07 19:23:42 -08:00
|
|
|
<p class="todo-info">{{ list.date_added|date }} - {{ list.creator.get_full_name }}</p>
|
|
|
|
|
|
|
|
<div>{{list.description|urlize|linebreaks}}</div>
|
2010-03-16 11:22:54 -07:00
|
|
|
|
2012-01-04 10:15:29 -08:00
|
|
|
<p>Link to lists of pkgbase values:</p>
|
|
|
|
<ul>{% for svn_root in svn_roots %}
|
|
|
|
<li><a href="pkgbases/{{ svn_root }}/">{{ svn_root }}</a></li>
|
|
|
|
{% endfor %}</ul>
|
|
|
|
|
2012-09-15 06:52:34 -07:00
|
|
|
<p>{{ list.packages|length }} total todo list package{{ list.packages|pluralize }} found.</p>
|
2012-07-24 22:45:36 -07:00
|
|
|
|
|
|
|
<div class="box filter-criteria">
|
2012-09-15 06:52:34 -07:00
|
|
|
<h3>Filter Todo List Packages</h3>
|
2012-07-23 20:22:49 -07:00
|
|
|
<form id="todolist_filter" method="post" action=".">
|
|
|
|
<fieldset>
|
|
|
|
<legend>Select filter criteria</legend>
|
2012-07-24 22:45:36 -07:00
|
|
|
{% for arch in arches %}
|
|
|
|
<div><label for="id_arch_{{ arch.name }}" title="Architecture {{ arch.name }}">Arch {{ arch.name }}</label>
|
|
|
|
<input type="checkbox" name="arch_{{ arch.name }}" id="id_arch_{{ arch.name }}" class="arch_filter" value="{{ arch.name }}" checked="checked"/></div>
|
|
|
|
{% endfor %}
|
|
|
|
{% for repo in repos %}
|
|
|
|
<div><label for="id_repo_{{ repo.name|lower }}" title="Target Repository {{ repo.name }}">[{{ repo.name|lower }}]</label>
|
|
|
|
<input type="checkbox" name="repo_{{ repo.name|lower }}" id="id_repo_{{ repo.name|lower }}" class="repo_filter" value="{{ repo.name|lower }}" checked="checked"/></div>
|
|
|
|
{% endfor %}
|
2012-07-23 20:22:49 -07:00
|
|
|
<div><label for="id_mine_only" title="Show only packages maintained by me">Only Mine</label>
|
|
|
|
<input type="checkbox" name="mine_only" id="id_mine_only" value="mine_only"/></div>
|
|
|
|
<div><label for="id_incomplete" title="Packages not yet completed">Only Incomplete</label>
|
|
|
|
<input type="checkbox" name="incomplete" id="id_incomplete" value="incomplete"/></div>
|
|
|
|
<div ><label> </label><input title="Reset search criteria" type="button" id="criteria_reset" value="Reset"/></div>
|
2012-07-24 22:45:36 -07:00
|
|
|
<div class="clear"></div>
|
2012-09-15 06:52:34 -07:00
|
|
|
<div id="filter-info"><span id="filter-count">{{ list.packages|length }}</span> todo list packages displayed.</div>
|
2012-07-23 20:22:49 -07:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2010-08-27 08:04:00 -07:00
|
|
|
<table id="dev-todo-pkglist" class="results todo-table">
|
2010-03-16 11:22:54 -07:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Arch</th>
|
2012-02-11 16:53:23 -08:00
|
|
|
<th>Repository</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Current Version</th>
|
2011-11-03 19:32:30 -07:00
|
|
|
<th>Maintainers</th>
|
2010-03-16 11:22:54 -07:00
|
|
|
<th>Status</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2008-06-27 17:10:28 -07:00
|
|
|
{% for pkg in list.packages %}
|
2012-07-24 22:45:36 -07:00
|
|
|
<tr class="{% cycle 'odd' 'even' %}{% if user in pkg.pkg.maintainers %} mine{% endif %} {{ pkg.pkg.arch.name }} {{ pkg.pkg.repo.name|lower }}">
|
2010-03-16 11:22:54 -07:00
|
|
|
<td>{{ pkg.pkg.arch.name }}</td>
|
|
|
|
<td>{{ pkg.pkg.repo.name|capfirst }}</td>
|
2012-02-11 16:53:23 -08:00
|
|
|
<td>{% pkg_details_link pkg.pkg %}</td>
|
|
|
|
{% if pkg.pkg.flag_date %}
|
|
|
|
<td><span class="flagged">{{ pkg.pkg.full_version }}</span></td>
|
|
|
|
{% else %}
|
|
|
|
<td>{{ pkg.pkg.full_version }}</td>
|
|
|
|
{% endif %}
|
2010-03-16 11:22:54 -07:00
|
|
|
<td>{{ pkg.pkg.maintainers|join:', ' }}</td>
|
|
|
|
<td>
|
2011-03-03 12:59:04 -08:00
|
|
|
{% if perms.main.change_todolistpkg %}
|
2008-04-05 13:26:48 -07:00
|
|
|
{% if pkg.complete %}
|
2010-03-16 11:22:54 -07:00
|
|
|
<a href="/todo/flag/{{ list.id }}/{{ pkg.id }}/"
|
2011-01-14 21:39:57 -08:00
|
|
|
class="status-link complete" title="Toggle completion status">Complete</a>
|
2008-04-05 13:26:48 -07:00
|
|
|
{% else %}
|
2010-03-16 11:22:54 -07:00
|
|
|
<a href="/todo/flag/{{ list.id }}/{{ pkg.id }}/"
|
2011-01-14 21:39:57 -08:00
|
|
|
class="status-link incomplete" title="Toggle completion status">Incomplete</a>
|
2008-04-05 13:26:48 -07:00
|
|
|
{% endif %}
|
2011-03-03 12:59:04 -08:00
|
|
|
{% else %}
|
|
|
|
{% if pkg.complete %}<span class="complete">Complete</span>{% else %}<span class="incomplete">Incomplete</span>{% endif %}
|
|
|
|
{% endif %}
|
2010-03-16 11:22:54 -07:00
|
|
|
</td>
|
|
|
|
</tr>
|
2008-04-05 13:26:48 -07:00
|
|
|
{% endfor %}
|
2010-03-16 11:22:54 -07:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2010-08-27 08:04:00 -07:00
|
|
|
</div>
|
2012-07-08 21:30:48 -07:00
|
|
|
{% load cdn %}{% jquery %}{% jquery_tablesorter %}
|
2012-03-24 10:37:19 -07:00
|
|
|
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
|
2010-03-16 11:22:54 -07:00
|
|
|
<script type="text/javascript">
|
2010-08-27 08:04:00 -07:00
|
|
|
$(document).ready(function() {
|
2010-09-01 05:39:57 -07:00
|
|
|
$(".results").tablesorter({
|
|
|
|
widgets: ['zebra'],
|
2012-02-11 16:53:23 -08:00
|
|
|
sortList: [[2,0], [0,0]],
|
2012-02-20 06:20:14 -08:00
|
|
|
headers: { 5: { sorter: 'todostatus' } }
|
2010-09-01 05:39:57 -07:00
|
|
|
});
|
2012-12-11 08:02:26 -08:00
|
|
|
});
|
|
|
|
$(document).ready(function() {
|
2012-07-23 20:22:49 -07:00
|
|
|
$('a.status-link').click(todolist_flag);
|
2012-12-11 08:02:26 -08:00
|
|
|
var filter_func = function() { filter_pkgs_list('#todolist_filter', '#dev-todo-pkglist tbody'); };
|
2012-09-15 07:13:58 -07:00
|
|
|
$('#todolist_filter input').change(filter_func);
|
|
|
|
$('#criteria_reset').click(function() { filter_pkgs_reset(filter_func); });
|
2012-07-23 20:22:49 -07:00
|
|
|
// fire function on page load to ensure the current form selections take effect
|
2012-09-15 07:13:58 -07:00
|
|
|
filter_func();
|
2010-08-27 08:04:00 -07:00
|
|
|
});
|
2010-03-16 11:22:54 -07:00
|
|
|
</script>
|
2007-11-03 00:45:10 -07:00
|
|
|
{% endblock %}
|