summaryrefslogtreecommitdiff
path: root/templates/devel
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-10 18:27:18 -0500
committerDan McGee <dan@archlinux.org>2010-09-10 18:27:18 -0500
commitfa4f5c15c886be04687764877a9e8f9e296143c1 (patch)
tree0786e602bf0cafd980365abdf6e26cfe220fdccb /templates/devel
parentd6f29d503180054a3ee8af2beeebcd5da9115ec8 (diff)
Restore flagged package count by maintainer in dashboard
We need to do a little dropping into SQL to accomplish this, but it isn't all that bad to actually do and we can do the whole thing in one query. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/devel')
-rw-r--r--templates/devel/index.html14
1 files changed, 4 insertions, 10 deletions
diff --git a/templates/devel/index.html b/templates/devel/index.html
index eccfbe3d..f285f7f6 100644
--- a/templates/devel/index.html
+++ b/templates/devel/index.html
@@ -168,7 +168,7 @@
<thead>
<tr>
<th class="key">Maintainer</th>
- <th># Base Packages</th>
+ <th># Packages</th>
<th># Flagged</th>
</tr>
</thead>
@@ -178,10 +178,10 @@
<td>{{ maint.get_full_name }}</td>
<td><a href="/packages/?maintainer={{ maint.username }}"
title="View all packages maintained by {{ maint.get_full_name }}">
- <strong>{{ maint.package_relations.count }}</strong> base packages</a></td>
+ <strong>{{ maint.package_count }}</strong> packages</a></td>
<td><a href="/packages/?maintainer={{ maint.username }}&amp;flagged=Flagged"
title="View all flagged packages maintained by {{ maint.get_full_name }}">
- Flagged packages</a></td>
+ <strong>{{ maint.flagged_count }}</strong> packages</a></td>
</tr>
{% endfor %}
</tbody>
@@ -207,15 +207,9 @@ $(document).ready(function() {
{widgets: ['zebra'], sortList: [[0,0], [1,0]]});
$("#dash-todo:not(:has(tbody tr.empty))").tablesorter(
{widgets: ['zebra'], sortList: [[1,1]]});
- $("#stats-by-arch").tablesorter(
- {widgets: ['zebra'], sortList: [[0,0]],
- headers: { 1: { sorter: 'pkgcount' }, 2: { sorter: 'pkgcount' } } });
- $("#stats-by-repo").tablesorter(
+ $("#stats-by-arch").add("#stats-by-repo").add("#stats-by-maintainer").tablesorter(
{widgets: ['zebra'], sortList: [[0,0]],
headers: { 1: { sorter: 'pkgcount' }, 2: { sorter: 'pkgcount' } } });
- $("#stats-by-maintainer").tablesorter(
- {widgets: ['zebra'], sortList: [[0,0]],
- headers: { 1: { sorter: 'pkgcount' } } });
$("h3.dash-stats").click(
function(e) { $(this).next().toggle(); }
);