Bug#756397: www.debian.org: packages.debian.org should have link to the new PTS (tracker)
Package: www.debian.org
Severity: wishlist
Hello,
The attached patch adds a link to the Debian Package Tracker (new gen PTS).
Could you apply it ?
Thanks,
Sylvestre
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (900, 'testing'), (600, 'unstable'), (500, 'testing-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
>From 87a29d053d9b0c262709ae8e49e8e7aea3450895 Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <sylvestre@debian.org>
Date: Tue, 29 Jul 2014 16:03:32 +0200
Subject: [PATCH] Add a link to the Debian Package Tracker
---
templates/config.tmpl | 1 +
templates/html/show.tmpl | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/templates/config.tmpl b/templates/config.tmpl
index ffdf95e..3bc49f6 100644
--- a/templates/config.tmpl
+++ b/templates/config.tmpl
@@ -13,6 +13,7 @@
tags_url = 'http://debtags.alioth.debian.org/'
bugs_url = 'http://bugs.debian.org/'
pts_url = 'http://packages.qa.debian.org/'
+ tracker_url = 'https://tracker.debian.org/'
ddpo_url = 'http://qa.debian.org/developer.php?login='
src_bugs_url = bugs_url _ 'src:'
mirror_url = 'http://ftp.debian.org/'
diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl
index 59a3deb..9ce6d0a 100644
--- a/templates/html/show.tmpl
+++ b/templates/html/show.tmpl
@@ -76,6 +76,12 @@
<li><a href="[% pts_url _ pkg %]">[% g('Developer Information (PTS)') %]</a></li>
[%- END %]
+[% IF src.pkg -%]
+<li><a href="[% tracker_url _ src.pkg %]">[% g('Package tracker') %]</a></li>
+[% ELSIF is_source %]
+<li><a href="[% tracker_url _ pkg %]">[% g('Package tracker') %]</a></li>
+[%- END %]
+
[% IF files && (!archive or archive == main_archive or archive == 'security') %]
<li><a href="[% changelogs_url _ files.changelog.path %]">[% g('%s Changelog', organisation) %]</a></li>
<li><a href="[% changelogs_url _ files.copyright.path %]">[% g('Copyright File') %]</a></li>
--
2.0.1
Reply to: