From 66412aa1037befef0b579c7df73656dc3b8b9804 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 21 Apr 2013 20:29:17 -0500 Subject: Move stats portion of developer dashboard to separate view This stuff is all below the fold when the page first loads, and adds a good amount of loading time to the developer dashboard. Split it out, where it will be wired back and hooked up via an AJAX insertion in a future commit. Both parts work standalone as is in this commit. Signed-off-by: Dan McGee --- templates/devel/stats.html | 120 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 templates/devel/stats.html (limited to 'templates/devel/stats.html') diff --git a/templates/devel/stats.html b/templates/devel/stats.html new file mode 100644 index 00000000..2dbe4755 --- /dev/null +++ b/templates/devel/stats.html @@ -0,0 +1,120 @@ +{% load cache %} + +{% cache 60 dev-dash-by-arch %} +
+ +

Stats by Architecture

+ + + + + + + + + + + {% for arch in arches %} + + + + + + {% endfor %} + +
Arch# Packages# Flagged
{{ arch.name }} + {{ arch.total_ct }} packages + {{ arch.flagged_ct }} packages
+
{# #dash-by-arch #} +{% endcache %} + +{% cache 60 dev-dash-by-repo %} +
+ +

Stats by Repository

+ + + + + + + + + + + + {% for repo in repos %} + + + + + + + + {% endfor %} + +
Repository# Packages# Flagged# Maintainers
{{ repo.name }} + {{ repo.total_ct }} packages + {{ repo.flagged_ct }} packages{{ repo.maintainer_ct }} maintainers
+
{# dash-by-arch #} +{% endcache %} + +{% cache 60 dev-dash-by-developer %} +
+ +

Stats by Developer

+ + {% if perms.main.change_package %} +

Look for stale relations

+ {% endif %} + + + + + + + + + + + + + + + + + + {% for maint in maintainers %} + + + + + + + {% endfor %} + +
Maintainer# Maintained# Flagged# Last Packager
Orphan/Unknown + {{ orphan.package_count }} packages + + {{ orphan.flagged_count }} packages + + {{ orphan.updated_count }} packages +
{{ maint.get_full_name }} + {{ maint.package_count }} packages + + {{ maint.flagged_count }} packages + + {{ maint.updated_count }} packages +
+
{# #dash-by-developer #} +{% endcache %} -- cgit v1.2.3-2-g168b