Commit 77f51431 authored by eliott's avatar eliott
Browse files

Feature for FS#8988

parent ef8c17e0
......@@ -31,8 +31,20 @@ def index(request):
pkgs = None
repo_stats = []
for repo in Repo.objects.all():
'count': Package.objects.filter(repo__exact = repo).count(),
'flagged': Package.objects.filter(repo__exact = repo).filter(needupdate=True).count()
return render_response(request, 'devel/index.html',
{'stats':stats, 'pkgs':pkgs, 'todos':todos, 'maint':thismaint})
'repos': repo_stats})
......@@ -21,9 +21,28 @@ <h3 class="title">Package ToDo Lists</h3>
<br /><br />
{% endif %}
<div class="greybox">
<h3 class="title">Repository Package Stats</h3>
<table class="results" width="100%">
<th># Package</th>
<th># Flagged</th>
{% for repo in repos %}
<td><a href="/packages/?repo={{ }}">{{ }}</a></td>
<td><strong>{{ repo.count }}</strong> packages</td>
<td><strong>{{ repo.flagged }}</strong> packages</td>
{% endfor %}
<br /><br />
<div class="greybox">
<h3 class="title">Flagged Package Stats</h3>
<h3 class="title">Maintainer Package Stats</h3>
<table class="results" width="100%">
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment