r9005 - in /scripts/qa: DebianQA.conf-sample DebianQA/Config.pm qareport.cgi templates/by_category

tincho-guest at users.alioth.debian.org tincho-guest at users.alioth.debian.org
Wed Nov 7 23:14:10 UTC 2007


Author: tincho-guest
Date: Wed Nov  7 23:14:10 2007
New Revision: 9005

URL: http://svn.debian.org/wsvn/?sc=1&rev=9005
Log:
Move out of the template and into the config the group's stuff

Modified:
    scripts/qa/DebianQA.conf-sample
    scripts/qa/DebianQA/Config.pm
    scripts/qa/qareport.cgi
    scripts/qa/templates/by_category

Modified: scripts/qa/DebianQA.conf-sample
URL: http://svn.debian.org/wsvn/scripts/qa/DebianQA.conf-sample?rev=9005&op=diff
==============================================================================
--- scripts/qa/DebianQA.conf-sample (original)
+++ scripts/qa/DebianQA.conf-sample Wed Nov  7 23:14:10 2007
@@ -7,6 +7,9 @@
 [qareport_cgi]
 templates_path = templates
 default_template = by_category
+group_name = Debian Perl Group
+group_url = http://pkg-perl.alioth.debian.org/
+wsvn_url = http://svn.debian.org/wsvn/pkg-perl/trunk
 
 [svn]
 repository = svn://svn.debian.org/svn/pkg-perl

Modified: scripts/qa/DebianQA/Config.pm
URL: http://svn.debian.org/wsvn/scripts/qa/DebianQA/Config.pm?rev=9005&op=diff
==============================================================================
--- scripts/qa/DebianQA/Config.pm (original)
+++ scripts/qa/DebianQA/Config.pm Wed Nov  7 23:14:10 2007
@@ -21,7 +21,10 @@
 my %defaults = (
     qareport_cgi => {
         templates_path => "templates",
-        default_template => "by_category"
+        default_template => "by_category",
+        group_name => "Debian Perl Group",
+        group_url => "http://pkg-perl.alioth.debian.org/",
+        wsvn_url => "http://svn.debian.org/wsvn/pkg-perl/trunk"
     },
     svn => {
         repository => "svn://svn.debian.org/svn/pkg-perl",

Modified: scripts/qa/qareport.cgi
URL: http://svn.debian.org/wsvn/scripts/qa/qareport.cgi?rev=9005&op=diff
==============================================================================
--- scripts/qa/qareport.cgi (original)
+++ scripts/qa/qareport.cgi Wed Nov  7 23:14:10 2007
@@ -132,6 +132,9 @@
     $template,
     {
         data        => $data,
+        group_name  => $CFG{qareport_cgi}{group_name},
+        group_url   => $CFG{qareport_cgi}{group_url},
+        wsvn_url    => $CFG{qareport_cgi}{wsvn_url},
         for_upgrade => \@for_upgrade,
         weird       => \@weird,
         for_upload  => \@for_upload,

Modified: scripts/qa/templates/by_category
URL: http://svn.debian.org/wsvn/scripts/qa/templates/by_category?rev=9005&op=diff
==============================================================================
--- scripts/qa/templates/by_category (original)
+++ scripts/qa/templates/by_category Wed Nov  7 23:14:10 2007
@@ -39,7 +39,7 @@
     <tr>
         <td>$pkg</td>
         <td><a
-        href="http://svn.debian.org/wsvn/pkg-perl/trunk/$pkg/debian/changelog?op=file&amp;rev=0&amp;sc=0"
+        href="${wsvn_url}/$pkg/debian/changelog?op=file&amp;rev=0&amp;sc=0"
         ><span class="popup">$svn_ver<span class="balloon"
         >[% data.svn.$pkg.changer | html %] &mdash; [% data.svn.$pkg.date | html %]</span></span>
         [% IF svn_un_ver AND (svn_un_ver != svn_ver) %]<span
@@ -75,7 +75,7 @@
 [% END #BLOCK section %]
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
-    <title>pkg-perl packages overview</title>
+    <title>${group_name} packages overview</title>
     <style type="text/css">
         body {
             background: Window;
@@ -189,7 +189,7 @@
     </script>
 </head>
 <body>
-<h1><a href="http://pkg-perl.alioth.debian.org/">Debian Perl Group</a></h1>
+<h1><a href="${group_url}">${group_name}</a></h1>
 <table>
     [% INCLUDE section data=data list=for_upgrade name="for_upgrade" title="Newer upstream available" %]
     [% INCLUDE section data=data list=for_upload name="for_upload" title="Ready for upload" %]




More information about the Pkg-perl-cvs-commits mailing list