[Piuparts-commits] [piuparts] 02/02: piuparts-report.py: Link to counts.txt

Holger Levsen holger at moszumanska.debian.org
Sat Jun 21 16:59:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 7715b2ed405cf7c87cf2c7818999007e71bc69d6
Author: David Steele <dsteele at gmail.com>
Date:   Wed May 28 20:54:10 2014 -0400

    piuparts-report.py: Link to counts.txt
    
    Below the chart on each section page.
---
 debian/changelog   | 1 +
 piuparts-report.py | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 00d0fd2..e7b67f1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -44,6 +44,7 @@ piuparts (0.59) UNRELEASED; urgency=low
     - Refactor sections_by_precedence() out of generate_global_summary().
     - Restore (a copy of) the counts.txt file to the web view, in
       <section>/counts.txt.
+    - Also add a link to counts.txt to the section page.
 
  -- Holger Levsen <holger at debian.org>  Thu, 01 May 2014 00:42:23 +0200
 
diff --git a/piuparts-report.py b/piuparts-report.py
index 1cd5aed..d736a90 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -1229,7 +1229,9 @@ class Section:
                        % "states.png" \
                      + "<img src=\"%s\" height=\"450\" width=\"800\" alt=\"Binary package states in %s\">" \
                        % ("states.png", self._config.section) \
-                     + "</a></td></tr>\n"
+                     + "</a>" \
+                     + "<br>(<a href=\"counts.txt\">Source</a>)\n" \
+                     + "</td></tr>\n"
 
         return stats_html
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list