]> git.donarmstrong.com Git - debbugs.git/commitdiff
Indiciate what machine has built webpages (closes: #507022)
authorDon Armstrong <don@donarmstrong.com>
Wed, 3 Dec 2008 19:09:06 +0000 (11:09 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 3 Dec 2008 19:09:06 +0000 (11:09 -0800)
Debbugs/Config.pm
cgi/pkgreport.cgi
debian/changelog
templates/en_US/html/html_tail.tmpl

index 0db11e6b486e04cefefcb0562ac72165199904b7..f4f0471ab81875e251a39286c41312e6c46784ab 100644 (file)
@@ -68,6 +68,7 @@ BEGIN {
                                 qw(@gPostProcessall @gRemovalDefaultDistributionTags @gRemovalDistributionTags @gRemovalArchitectures),
                                 qw(@gRemovalStrongSeverityDefaultDistributionTags),
                                 qw(@gDefaultArchitectures),
+                                qw($gMachineName),
                                 qw($gTemplateDir),
                                 qw($gDefaultPackage),
                                 qw($gSpamMaxThreads $gSpamSpamsPerThread $gSpamKeepRunning $gSpamScan $gSpamCrossassassinDb),
@@ -276,6 +277,20 @@ Default: $config{maintainer_email}
 
 set_default(\%config,'unknown_maintainer_email',$config{maintainer_email});
 
+=item machine_name
+
+The name of the machine that this instance of debbugs is running on
+(currently used for debbuging purposes and web page output.)
+
+Default: qx(hostname --fqdn)
+
+=back
+
+=cut
+
+set_default(\%config,'machine_name',qx(hostname --fqdn));
+
+
 =head2 BTS Mailing Lists
 
 
index f4ad4490644ff96c4a16a52a69a4d98b8df9d3ed..78a7e884b227a04d0bef96cd08a88cc1f9b70fa8 100755 (executable)
@@ -270,12 +270,6 @@ my $this = munge_url('pkgreport.cgi?',
 my %indexentry;
 my %strings = ();
 
-my $dtime = strftime "%a, %e %b %Y %T UTC", gmtime;
-my $tail_html = $gHTMLTail;
-$tail_html = $gHTMLTail;
-$tail_html =~ s/SUBSTITUTE_DTIME/$dtime/;
-
-
 my @bugs;
 
 # addusers for source and binary packages being searched for
@@ -597,7 +591,9 @@ print option_form(template => 'cgi/pkgreport_options',
 # print "</table></form></div>\n";
 
 print "<hr>\n";
-print "<p>$tail_html";
-
+print fill_in_template(template=>'html/html_tail',
+                      hole_var => {'&strftime' => \&POSIX::strftime,
+                                  },
+                     );
 print "</body></html>\n";
 
index dd73da4b1e097cac08c6670aa448b9e1cf91a831..09f23e173e9804662073f1a4ad41eebf9a7ee0a4 100644 (file)
@@ -237,6 +237,7 @@ debbugs (2.4.2) UNRELEASED; urgency=low
   * Display link to full log again (closes: #507506)
   * Add Last-Modified: header support to mbox download (closes: #456786)
   * Add Date headers if missing (closes: #458757)
+  * Indiciate what machine has built webpages (closes: #507022)
 
   
  -- Colin Watson <cjwatson@debian.org>  Fri, 20 Jun 2003 18:57:25 +0100
index d7eb979e82d5c1cc031cc89aac6bb056717ba522..59e671f73c4e85ac02c1a49ba0af0b294ffecbe0 100644 (file)
@@ -3,6 +3,10 @@ Last modified:
 <!--timestamp-->
 {$last_modified||strftime('%c',gmtime)}
 <!--timestamp-->
+Machine Name:
+<!--machinename-->
+{$config{machine_name}||'Unknown'}
+<!--machinename-->
 <P>
 <A HREF="http://{$config{web_domain}}/">{$config{project}} {$config{bug}} tracking system</A><BR>
 Copyright (C) 1999 Darren O. Benham,