summaryrefslogtreecommitdiff
path: root/templates/todolists/view.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/todolists/view.html')
-rw-r--r--templates/todolists/view.html96
1 files changed, 49 insertions, 47 deletions
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
index c0c0dc90..1ebf810c 100644
--- a/templates/todolists/view.html
+++ b/templates/todolists/view.html
@@ -4,62 +4,64 @@
<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(
- function(){
+ function(){
$("#todotable").tablesorter({widgets: ['zebra']});
- }
+ }
);
</script>
<style type="text/css">
-table#todotable thead tr .header {
- background-image: url('/media/bg.gif');
- background-repeat: no-repeat;
- background-position: center right;
- cursor: pointer;
-}
-table#todotable thead tr .headerSortUp {
- background-image: url('/media/asc.gif');
-}
-table#todotable thead tr .headerSortDown {
- background-image: url('/media/desc.gif');
-}
-table#todotable thead tr .headerSortDown, table#todotable thead tr .headerSortUp {
- background-color: #8dbdd8;
-}
-table#todotable tbody tr.odd {
- background-color: #eee4cb;
-}
+ table#todotable thead tr .header {
+ background-image: url('/media/bg.gif');
+ background-repeat: no-repeat;
+ background-position: center right;
+ cursor: pointer;
+ }
+ table#todotable thead tr .headerSortUp {
+ background-image: url('/media/asc.gif');
+ }
+ table#todotable thead tr .headerSortDown {
+ background-image: url('/media/desc.gif');
+ }
+ table#todotable thead tr .headerSortDown, table.todotable thead tr .headerSortUp {
+ background-color: #8dbdd8;
+ }
+ table#todotable tbody tr.odd {
+ background-color: #eee4cb;
+ }
</style>
{% endblock %}
{% block content %}
<div class="greybox">
- <h3 class="title">ToDo List: {{ list.name }}</h2>
+ <h2 class="title">ToDo List: {{ list.name }}</h2>
<table id="todotable" class="results" width="100%">
- <thead>
- <tr>
- <th>ID</th>
- <th>Repo</th>
- <th>Name</th>
- <th>Maintainer</th>
- <th>Status</th>
- </tr>
- </thead>
- <tbody>
- {% for pkg in pkgs %}
- <tr class="{% cycle even,odd %}">
- <td><a href="/packages/{{ pkg.pkg.id }}/">{{ pkg.pkg.id }}</a></td>
- <td>{{ pkg.pkg.repo.name }}</td>
- <td>{{ pkg.pkg.pkgname }}</td>
- <td>{{ pkg.pkg.maintainer.get_full_name }}</td>
- <td>
- {% if pkg.complete %}
- <a href="/todo/flag/{{ list.id }}/{{ pkg.id }}/"><span style="color:blue">Complete</span></a>
- {% else %}
- <a href="/todo/flag/{{ list.id }}/{{ pkg.id }}/"><span style="color:red">Incomplete</span></a>
- {% endif %}
- </td>
- </tr>
- {% endfor %}
- </tbody>
+ <thead>
+ <tr>
+ <th>ID</th>
+ <th>Arch</th>
+ <th>Repo</th>
+ <th>Name</th>
+ <th>Maintainer</th>
+ <th>Status</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for pkg in pkgs %}
+ <tr class="{% cycle even,odd %}">
+ <td><a href="/packages/{{ pkg.pkg.id }}/">{{ pkg.pkg.id }}</a></td>
+ <td>{{ pkg.pkg.arch.name }}</td>
+ <td>{{ pkg.pkg.repo.name|capfirst }}</td>
+ <td>{{ pkg.pkg.pkgname }}</td>
+ <td>{{ pkg.pkg.maintainer.get_full_name|default:"Orphan" }}</td>
+ <td>
+ {% if pkg.complete %}
+ <a href="/todo/flag/{{ list.id }}/{{ pkg.id }}/"><span style="color:blue">Complete</span></a>
+ {% else %}
+ <a href="/todo/flag/{{ list.id }}/{{ pkg.id }}/"><span style="color:red">Incomplete</span></a>
+ {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
</table>
</div>
{% endblock %}