summaryrefslogtreecommitdiffstats
path: root/templates/devel/index.html
blob: 2617de9f30a60994f241e3dec82f3f95aa5a0282 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
{% extends "base.html" %}

{% block content %}
	{% if todos %}
	<div class="greybox">
		<h3 class="title">Package ToDo Lists</h3>
		<table class="results" width="100%">
			<tr>
				<th>Name</th>
				<th>Creation Date</th>
				<th>Description</th>
			</tr>
		{% for todo in todos %}
			<tr>
				<td style="white-space:nowrap"><a href="/todo/{{ todo.id }}/">{{ todo.name }}</a></td>
				<td>{{ todo.date_added }}</td>
				<td>{{ todo.description }}</td>
			</tr>
		{% endfor %}
		</table>
	</div>
	<br /><br />
	{% endif %}

	<div class="greybox">
		<h3 class="title">Flagged Package Stats</h3>
		<table class="results" width="100%">
			<tr>
				<th>Maintainer</th>
				<th># Package</th>
				<th># Flagged</th>
			</tr>
		{% for maint in stats %}
			<tr>
				<td><a href="/packages/?maint={{ maint.0.id }}">{{ maint.0.get_full_name }}</a></td>
				<td><strong>{{ maint.1 }}</strong> packages</td>
				<td><strong>{{ maint.2 }}</strong> packages</td>
			</tr>
		{% endfor %}
		</table>
	</div>
	<br /><br />

	<div class="box">
		<h3 class="title">Package Maintenance</h3>
		<br />
		<table width="100%">
			<tr>
				<td style="vertical-align: top">
				{% if maint %}
					<a href="/packages/?maint={{ maint.id }}">My Packages</a><br />
				{% endif %}
					<a href="/packages/?maint=0">Orphan Packages</a><br />
					<br />
					<a href="/devel/guide/">Package Maintainer's Guide</a><br />
				</td><td style="vertical-align: top">
				{% if pkgs %}
					<h4>My Flagged Packages:</h4>
					<ul class="small">
						<li><form method="post" action="/devel/notify/">
							<input name="notify" type="checkbox" value="yes"{% if maint.get_profile.notify %} checked{% endif %} /> Notify me when packages are flagged
							&nbsp; &nbsp;
							<input type="submit" value="Update" />
						</form></li>
					</ul>
					<ul class="small">
					{% for pkg in pkgs %}
						<li><a href="/packages/{{ pkg.id }}/">{{ pkg.repo.name }}::{{ pkg.pkgname }} {{ pkg.pkgver }}</a></li>
					{% endfor %}
					</ul>
				{% endif %}
				</td>	
			</tr>
		</table>
{% endblock %}