From ac2278423a3d449fdfe8c813f1f2d391ef9aff08 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 3 Nov 2011 14:59:00 -0500 Subject: Many signoff page improvements Add a new 'SignoffSpecification' model which will capture metadata regarding a specific package if it differs from the norm- e.g. more or less than 2 required signoffs, is known to be bad, a comment from the maintainer, etc. The groundwork is laid here; much of this will still need to be wired up in the future. Enhance the view with a lot more JS prettiness and add revoking of signoffs. The signoff page can be filtered and the links and all the fun stuff are totally dynamic now. Signed-off-by: Dan McGee --- templates/packages/differences.html | 2 +- templates/packages/signoff_cell.html | 12 +++++++++ templates/packages/signoffs.html | 50 +++++++++++++++++++++--------------- 3 files changed, 42 insertions(+), 22 deletions(-) create mode 100644 templates/packages/signoff_cell.html (limited to 'templates') diff --git a/templates/packages/differences.html b/templates/packages/differences.html index dd1046b..0400ea3 100644 --- a/templates/packages/differences.html +++ b/templates/packages/differences.html @@ -65,7 +65,7 @@ $(document).ready(function() { $('.results').tablesorter({widgets: ['zebra'], sortList: [[1,0], [0,0]]}); $('#diff_filter select').change(filter_packages); $('#diff_filter input').change(filter_packages); - $('#criteria_reset').click(filter_reset); + $('#criteria_reset').click(filter_differences_reset); // fire function on page load to ensure the current form selections take effect filter_packages(); }); diff --git a/templates/packages/signoff_cell.html b/templates/packages/signoff_cell.html new file mode 100644 index 0000000..fce5d55 --- /dev/null +++ b/templates/packages/signoff_cell.html @@ -0,0 +1,12 @@ + +{% if group.user_signed_off %} +
Revoke Signoff
+{% else %} +
Signoff
+{% endif %} diff --git a/templates/packages/signoffs.html b/templates/packages/signoffs.html index a8aa4de..4a2f6c9 100644 --- a/templates/packages/signoffs.html +++ b/templates/packages/signoffs.html @@ -12,42 +12,46 @@

{{ signoff_groups|length }} signoff group{{ signoff_groups|pluralize }} found. A "signoff group" consists of packages grouped by pkgbase, architecture, and repository.

+
+

Filter Displayed Signoffs

+
+
+ Select filter criteria + {% for arch in arches %} +
+
+ {% endfor %} +
+
+
+
+
+
+ + - + - - - + - + {% for group in signoff_groups %} {% with group.package as pkg %} - + + - + - - - + {% endwith %} {% endfor %} @@ -60,8 +64,12 @@ {% endblock %} -- cgit v1.2.3-24-g4f1b
Package Base/Version ArchPackage BaseTarget Repo # of PackagesVersion Last UpdatedTarget Repo ApprovedSignoffSignoffs
{% pkg_details_link pkg %} {{ pkg.full_version }} {{ pkg.arch.name }}{% pkg_details_link pkg %}{{ group.target_repo }} {{ group.packages|length }}{{ pkg.full_version }} {{ pkg.last_update|date }}{{ group.target_repo }} {{ group.approved|yesno|capfirst }} -
    -
  • Signoff -
  • - {% for signoff in group.signoffs %} -
  • - {{ signoff.user }}{% if signoff.revoked %} (revoked){% endif %}
  • - {% endfor %} -
-
{% include "packages/signoff_cell.html" %}