summaryrefslogtreecommitdiff
path: root/templates/todolists/view.html
blob: 692999db620d93983b9be8bce58260e82479571f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{% 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(); 
        } 
    );
</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;
}
</style>
{% endblock %}
{% block content %}
	<div class="greybox">
		<h3 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 pkgr1,pkgr2 %}">
				<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>
		</table>
	</div>
{% endblock %}