evorepo/templates/todolists/view.html

66 lines
2.3 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block head %}
<script type="text/javascript" src="/media/jquery-1.2.3.min.js"></script>
<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(
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;
}
</style>
{% endblock %}
{% block content %}
<div class="greybox">
2008-04-05 13:42:01 -07:00
<h2 class="title">ToDo List: {{ list.name }}</h2>
<table id="todotable" class="results" width="100%">
<thead>
<tr>
2008-06-27 16:25:18 -07:00
<th>Name</th>
<th>Arch</th>
<th>Repo</th>
<th>Maintainer</th>
<th>Status</th>
</tr>
</thead>
<tbody>
{% for pkg in pkgs %}
<tr class="{% cycle even,odd %}">
2008-06-27 16:25:18 -07:00
<td><a href="/packages/{{ pkg.pkg.id }}/">{{ pkg.pkg.pkgname }}</a></td>
<td>{{ pkg.pkg.arch.name }}</td>
<td>{{ pkg.pkg.repo.name|capfirst }}</td>
2008-04-05 13:42:01 -07:00
<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 %}