[lintian] 06/13: Make graphs clickable links
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 8d91ba5dfca6cccdb2fd83d29e9048386fc1b478
Author: Niels Thykier <niels@thykier.net>
Date: Sat Feb 21 18:19:58 2015 +0100
Make graphs clickable links
Signed-off-by: Niels Thykier <niels@thykier.net>
---
reporting/templates/index.tmpl | 7 ++++---
reporting/templates/tag.tmpl | 7 ++++---
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/reporting/templates/index.tmpl b/reporting/templates/index.tmpl
index fb5182b..f0087f6 100644
--- a/reporting/templates/index.tmpl
+++ b/reporting/templates/index.tmpl
@@ -96,12 +96,13 @@
{
if ($graphs) {
+ my $graph_link = "${path_prefix}graphs/statistics.svg";
$OUT .= qq( <p>\n);
$OUT .= qq( Evolution of Lintian tags over the past\n);
$OUT .= qq( $graphs_days days:</p>\n);
- $OUT .= qq( <div class="graph"><img class="graph"\n);
- $OUT .= qq( src="${path_prefix}graphs/statistics.svg" alt="History of Lintian\n);
- $OUT .= qq( tags" /></div>\n);
+ $OUT .= qq( <div class="graph"><a href="${graph_link}"><img class="graph"\n);
+ $OUT .= qq( src="${graph_link}" alt="History of Lintian\n);
+ $OUT .= qq( tags" /></a></div>\n);
}
'';
}
diff --git a/reporting/templates/tag.tmpl b/reporting/templates/tag.tmpl
index 36ad00b..58df569 100644
--- a/reporting/templates/tag.tmpl
+++ b/reporting/templates/tag.tmpl
@@ -12,12 +12,13 @@
{
if ($graphs) {
+ my $graph_link = "${path_prefix}graphs/tags/$tag.svg";
$OUT .= qq( <p>\n);
$OUT .= qq( Evolution of the $tag Lintian tag over the past\n);
$OUT .= qq( $graphs_days days:</p>\n);
- $OUT .= qq( <div class="graph"><img class="graph"\n);
- $OUT .= qq( src="${path_prefix}graphs/tags/$tag.svg" alt="History of $tag"\n);
- $OUT .= qq( /></div>\n);
+ $OUT .= qq( <div class="graph"><a href="${graph_link}"><img class="graph"\n);
+ $OUT .= qq( src="${graph_link}" alt="History of $tag"\n);
+ $OUT .= qq( /></a></div>\n);
}
$OUT .= qq(<p>Emitted (non-overridden): $statistics{count}, );
$OUT .= qq(overridden: $statistics{overrides}, );
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: