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>
|
|
|
|
|
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 %}
|
2010-03-16 11:22:54 -07:00
|
|
|
<tr class="{% cycle 'odd' 'even' %}">
|
|
|
|
<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>
|
2010-03-16 11:22:54 -07:00
|
|
|
{% load cdn %}{% jquery %}
|
2012-03-24 10:37:19 -07:00
|
|
|
<script type="text/javascript" src="{% static "jquery.tablesorter.min.js" %}"></script>
|
|
|
|
<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() {
|
2011-01-14 21:39:57 -08:00
|
|
|
$('a.status-link').click(todolist_flag);
|
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
|
|
|
});
|
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 %}
|