+++ /dev/null
-#------------------------------------------------------------------------
-# Compiled template generated by the Template Toolkit version 2.14
-#------------------------------------------------------------------------
-
-Template::Document->new({
- METADATA => {
- 'modtime' => '1127835909',
- 'name' => 'dashboard.tt',
- },
- BLOCK => sub {
- my $context = shift || die "template sub called without context\n";
- my $stash = $context->stash;
- my $output = '';
- my $error;
-
- eval { BLOCK: {
- #line 1 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $stash->set('flag_imgs', { 'perl' => '/img/camel.png', 'python' => '/img/python.png', 'debug' => '/img/bug.png', 'pam' => '/img/pam.png', 'cassert' => '/img/cassert.png', 'openssl' => '/img/ssl_icon.gif', 'nls' => '/img/translateicon.gif', 'krb5' => '/img/krb.gif', 'tcl' => '/img/tcl.png', 'thread-safety' => '/img/threads.gif', 'integer-datetimes' => '/img/days.png' });
-
-
- $output .= "\n<div id=\"main\">\n <h1>PostgreSQL BuildFarm Status</h1>\n <p>\n Shown here is the latest status of each farm member \n for each branch it has reported on in the last 30 days.\n </p>\n <p>\n Use the farm member link for history of that member \n on the relevant branch.\n </p>\n<table><tr><th class=\"head\" rowspan=\"2\">Legend</th>\n";
- #line 45 "/home/community/pgbuildfarm/templates/dashboard.tt"
-
- # FOREACH
- do {
- my ($value, $error, $oldloop);
- my $list = $stash->get('flag_imgs');
-
- unless (UNIVERSAL::isa($list, 'Template::Iterator')) {
- $list = Template::Config->iterator($list)
- || die $Template::Config::ERROR, "\n";
- }
-
- ($value, $error) = $list->get_first();
- eval { $oldloop = $stash->get('loop') };
- $stash->set('loop', $list);
- eval {
- LOOP: while (! $error) {
- $stash->{'flagset'} = $value;
- $output .= "\n<td><img src=\"";
- #line 43 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['flagset', 0, 'value', 0]);
- $output .= "\" title=\"";
- #line 43 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['flagset', 0, 'key', 0]);
- $output .= "\" alt=\"";
- #line 43 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['flagset', 0, 'key', 0]);
- $output .= "\" height=\"16\" width=\"16\" class=\"inline\" align=\"center\"/> = ";
- #line 43 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['flagset', 0, 'key', 0]);
- $output .= "</td>\n";
- #line 44 "/home/community/pgbuildfarm/templates/dashboard.tt"
- if ($stash->get(['loop', 0, 'count', 0]) eq 5) {
- $output .= "</tr><tr>";
- }
-
- $output .= "\n";;
- ($value, $error) = $list->get_next();
- }
- };
- $stash->set('loop', $oldloop);
- die $@ if $@;
- $error = 0 if $error && $error eq Template::Constants::STATUS_DONE;
- die $error if $error;
- };
-
- $output .= "\n</tr></table>\n<br />\n <table cellspacing=\"0\">\n";
- #line 49 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $stash->set('brch', '');
- $output .= "\n";
- #line 81 "/home/community/pgbuildfarm/templates/dashboard.tt"
-
- # FOREACH
- do {
- my ($value, $error, $oldloop);
- my $list = $stash->get('statrows');
-
- unless (UNIVERSAL::isa($list, 'Template::Iterator')) {
- $list = Template::Config->iterator($list)
- || die $Template::Config::ERROR, "\n";
- }
-
- ($value, $error) = $list->get_first();
- eval { $oldloop = $stash->get('loop') };
- $stash->set('loop', $list);
- eval {
- LOOP: while (! $error) {
- $stash->{'row'} = $value;
- $output .= "\n";
- #line 54 "/home/community/pgbuildfarm/templates/dashboard.tt"
- if ($stash->get(['row', 0, 'branch', 0]) ne $stash->get('brch')) {
- #line 51 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $stash->set('brch', $stash->get(['row', 0, 'branch', 0]));
- $output .= "\n<tr><th class=\"head\" colspan=\"4\">Branch: ";
- #line 52 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get('brch');
- $output .= "</th></tr>\n<tr><th>Alias</th><th>System</th><th>Status</th><th>Flags</th></tr>\n";
- }
-
- $output .= "\n<tr ";
- #line 55 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $context->process('cl', { 'bgfor' => $stash->get(['row', 0, 'stage', 0]) });
- $output .= ">\n <td><a \n href=\"show_history.pl?nm=";
- #line 57 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['row', 0, 'sysname', 0]);
- $output .= "&br=";
- #line 57 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['row', 0, 'branch', 0]);
- $output .= "\"\n title=\"History\"\n >";
- #line 59 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['row', 0, 'sysname', 0]);
- $output .= "</a></td>\n <td><span class=\"opsys\">";
- #line 60 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['row', 0, 'operating_system', 0]);
- $output .= "\n ";
- #line 61 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['row', 0, 'os_version', 0]);
- $output .= "</span> <span class=\"compiler\">";
- #line 63 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['row', 0, 'compiler', 0]);
- $output .= "\n ";
- #line 64 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['row', 0, 'compiler_version', 0]);
- $output .= "</span> <span class=\"arch\">";
- #line 66 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['row', 0, 'architecture', 0]);
- $output .= "</span></td>\n <td class=\"status\">";
- #line 69 "/home/community/pgbuildfarm/templates/dashboard.tt"
-
- # FILTER
- $output .= do {
- my $output = '';
- my $filter = $context->filter('replace', [ '\s', ' ' ])
- || $context->throw($context->error);
-
- $output .= $stash->get(['row', 0, 'when_ago', 0]);
-
- &$filter($output);
- };
-
- $output .= " ago \n ";
- #line 70 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['row', 0, 'stage', 0]);
- $output .= " <a href=\"show_log.pl?nm=";
- #line 73 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['row', 0, 'sysname', 0]);
- $output .= "&dt=";
- #line 75 "/home/community/pgbuildfarm/templates/dashboard.tt"
-
- # FILTER
- $output .= do {
- my $output = '';
- my $filter = $context->filter('uri')
- || $context->throw($context->error);
-
- $output .= $stash->get(['row', 0, 'snapshot', 0]);
-
- &$filter($output);
- };
-
- $output .= "\">";
- #line 77 "/home/community/pgbuildfarm/templates/dashboard.tt"
- if ($stash->get(['row', 0, 'stage', 0]) ne 'OK') {
- $output .= "Details";
- }
- else {
- $output .= "Config";
- }
-
- $output .= "</a></td>\n\n <td class=\"flags\">";
- #line 79 "/home/community/pgbuildfarm/templates/dashboard.tt"
-
- # FOREACH
- do {
- my ($value, $error, $oldloop);
- my $list = $stash->get(['row', 0, 'build_flags', 0, 'split', 0, 'sort', 0]);
-
- unless (UNIVERSAL::isa($list, 'Template::Iterator')) {
- $list = Template::Config->iterator($list)
- || die $Template::Config::ERROR, "\n";
- }
-
- ($value, $error) = $list->get_first();
- eval { $oldloop = $stash->get('loop') };
- $stash->set('loop', $list);
- eval {
- LOOP: while (! $error) {
- $stash->{'flag'} = $value;
- #line 79 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $context->process('img');;
- ($value, $error) = $list->get_next();
- }
- };
- $stash->set('loop', $oldloop);
- die $@ if $@;
- $error = 0 if $error && $error eq Template::Constants::STATUS_DONE;
- die $error if $error;
- };
-
- $output .= "</td>\n</tr>\n";;
- ($value, $error) = $list->get_next();
- }
- };
- $stash->set('loop', $oldloop);
- die $@ if $@;
- $error = 0 if $error && $error eq Template::Constants::STATUS_DONE;
- die $error if $error;
- };
-
- $output .= "\n </table>\n</div>\n\n";
- } };
- if ($@) {
- $error = $context->catch($@, \$output);
- die $error unless $error->type eq 'return';
- }
-
- return $output;
- },
- DEFBLOCKS => {
- 'cl' => sub {
- my $context = shift || die "template sub called without context\n";
- my $stash = $context->stash;
- my $output = '';
- my $error;
-
- eval { BLOCK: {
- $output .= " class=\"";
- #line 27 "/home/community/pgbuildfarm/templates/dashboard.tt"
-
- # SWITCH
- do {
- my $result = $stash->get('bgfor');
- my $match;
- SWITCH: {
- $match = 'OK';
- $match = [ $match ] unless ref $match eq 'ARRAY';
- if (grep(/^$result$/, @$match)) {
- $output .= "pass";
- last SWITCH;
- }
- $match = 'ContribCheck';
- $match = [ $match ] unless ref $match eq 'ARRAY';
- if (grep(/^$result$/, @$match)) {
- $output .= "warn";
- last SWITCH;
- }
- $match = [ 'Check', 'InstallCheck' ];
- $match = [ $match ] unless ref $match eq 'ARRAY';
- if (grep(/^$result$/, @$match)) {
- $output .= "warnx";
- last SWITCH;
- }
- $output .= "fail";
- }
- };
-
- $output .= "\"";
- } };
- if ($@) {
- $error = $context->catch($@, \$output);
- die $error unless $error->type eq 'return';
- }
-
- return $output;
- },
- 'img' => sub {
- my $context = shift || die "template sub called without context\n";
- my $stash = $context->stash;
- my $output = '';
- my $error;
-
- eval { BLOCK: {
- #line 22 "/home/community/pgbuildfarm/templates/dashboard.tt"
- if ($stash->get('flag') eq 'depend' || $stash->get('flag') eq 'gnu-ld') {
-
- }
- elsif ($stash->get(['flag_imgs', 0, $stash->get('flag'), 0])) {
- #line 22 "/home/community/pgbuildfarm/templates/dashboard.tt"
-
- # FILTER
- $output .= do {
- my $output = '';
- my $filter = $context->filter('collapse')
- || $context->throw($context->error);
-
- $output .= "<img src=\"";
- #line 19 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get(['flag_imgs', 0, $stash->get('flag'), 0]);
- $output .= "\" \n title=\"";
- #line 20 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get('flag');
- $output .= "\" alt=\"";
- #line 20 "/home/community/pgbuildfarm/templates/dashboard.tt"
- $output .= $stash->get('flag');
- $output .= "\" \n height=\"16\" width=\"16\" class=\"inline\" align=\"bottom\" /> \n ";
-
- &$filter($output);
- };
-
- }
-
- } };
- if ($@) {
- $error = $context->catch($@, \$output);
- die $error unless $error->type eq 'return';
- }
-
- return $output;
- },
- },
-});
+++ /dev/null
-[%- BLOCK cl %] class="[% SWITCH bgfor -%]
- [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]"
-[%- END -%]
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <title>PostgreSQL BuildFarm History</title>
- <link rel="stylesheet" rev="stylesheet" href="/inc/pgbf.css" charset="utf-8" />
- <style type="text/css"><!--
- li#status a { color:rgb(17,45,137); background: url(/inc/b/r.png) no-repeat 100% -20px; }
- li#status { background: url(/inc/b/l.png) no-repeat 0% -20px; }
- --></style>
-</head>
-<body class="history">
-<div id="wrapper">
-<div id="banner">
-<a href="/index.html"><img src="/inc/pgbuildfarm-banner.png" alt="PostgreSQL BuildFarm" width="800" height="73" /></a>
-<div id="nav">
-<ul>
- <li id="home"><a href="/index.html" title="PostgreSQL BuildFarm Home">Home</a></li>
- <li id="status"><a href="/cgi-bin/show_status.pl" title="Current results">Status</a></li>
- <li id="members"><a href="/cgi-bin/show_members.pl" title="Platforms tested">Members</a></li>
- <li id="register"><a href="/cgi-bin/register-form.pl" title="Join PostgreSQL BuildFarm">Register</a></li>
- <li id="pgfoundry"><a href="http://pgfoundry.org/projects/pgbuildfarm/">PGFoundry</a></li>
-</ul>
-</div><!-- nav -->
-</div><!-- banner -->
-<div id="main">
-<h1>PostgreSQL BuildFarm Status History</h1>
-<table cellspacing="0">
- <tr><th class="head" colspan="3">System Detail</th></tr>
- <tr class="member"><th>Farm member</th><td>[% member %]</td></tr>
- <tr><th>OS</th><td>[% statrows.0.operating_system %] [% statrows.0.os_version %]</td></tr>
-<!-- <tr><th>OS Version</th><td>[% statrows.0.os_version %]</td></tr> -->
- <tr><th>Compiler</th><td>[% statrows.0.compiler %] [% statrows.0.compiler_version %]</td></tr>
-<!-- <tr><th>Compiler Version</th><td>[% statrows.0.compiler_version %]</td></tr> -->
- <tr><th>Architecture</th><td>[% statrows.0.architecture %]</td></tr>
- </table>
- <h3>Branch: [% branch %][% IF statrows.size >= 240 %] (last 240 entries shown)[% END %]</h3>
-[% BLOCK stdet %]
-<tr [% PROCESS cl bgfor=row.stage %]>
- <td>[%- row.when_ago | replace('\s',' ') %] ago </td>
- <td class="status">[% row.stage -%]</td>
- <td class="status"><a href="show_log.pl?nm=
- [%- row.sysname %]&dt=
- [%- row.snapshot | uri %]">
- [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%]</a></td>
-
-</tr>
-[% END %]
-<table border="0"> <tr>
-[% FOREACH offset IN [0,1,2] %][% low = offset * statrows.size / 3 ; high = -1 + (offset + 1) * statrows.size / 3 %]
-[% TRY %][% PERL %]
- use POSIX qw(floor);
- $stash->set(low => floor($stash->get('low')));
- $stash->set(high => floor($stash->get('high')));
-[% END %][% CATCH %]<!-- [% error.info %] --> [% END %]
- <td><table cellspacing="0">
-<!-- <tr><th colspan=3>low = [% low %], high = [% high %]</th></tr> -->
- [% FOREACH xrow IN statrows.slice(low,high) %][% PROCESS stdet row=xrow %][% END %]
- </table></td>
-[% END %]
-</table>
- </div><!-- main -->
- </div><!-- wrapper -->
- </body>
-</html>
+++ /dev/null
-[%- BLOCK cl %] class=" [% SWITCH bgfor -%]
- [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]"
-[%- END -%]
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <title>PostgreSQL BuildFarm Status</title>
- <link rel="stylesheet" rev="stylesheet" href="/inc/pgbf.css" charset="utf-8" />
- <style type="text/css"><!--
- li#status a { color:rgb(17,45,137); background: url(/inc/b/r.png) no-repeat 100% -20px; }
- li#status { background: url(/inc/b/l.png) no-repeat 0% -20px; }
- --></style>
-</head>
-<body>
-<div id="wrapper">
-<div id="banner">
-<a href="/index.html"><img src="/inc/pgbuildfarm-banner.png" alt="PostgreSQL BuildFarm" width="800" height="73" /></a>
-<div id="nav">
-<ul>
- <li id="home"><a href="/index.html" title="PostgreSQL BuildFarm Home">Home</a></li>
- <li id="status"><a href="/cgi-bin/show_status.pl" title="Current results">Status</a></li>
- <li id="members"><a href="/cgi-bin/show_members.pl" title="Platforms tested">Members</a></li>
- <li id="register"><a href="/cgi-bin/register-form.pl" title="Join PostgreSQL BuildFarm">Register</a></li>
- <li id="pgfoundry"><a href="http://pgfoundry.org/projects/pgbuildfarm/">PGFoundry</a></li>
- <li id="postgresql.org"><a href="http://www.postgresql.org">PostgreSQL.org</a></li>
-</ul>
-</div><!-- nav -->
-</div><!-- banner -->
-<div id="main">
- <h1>PostgreSQL BuildFarm Status</h1>
- <p>
- Shown here is the latest status of each farm member
- for each branch it has reported on in the last 30 days.
- </p>
- <p>
- Use the farm member link for history of that member
- on the relevant branch.
- </p>
- <table cellspacing="0">
-[% brch = "" %]
-[% FOREACH row IN statrows %]
-[% IF row.branch != brch ; brch = row.branch %]
-<tr><th class="head" colspan="3">Branch: [% brch %]</th></tr>
-<tr><th>Alias</th><th>System</th><th>Status</th></tr>
-[% END %]
-<tr [% PROCESS cl bgfor=row.stage %]>
- <td><a
- href="show_history.pl?nm=[% row.sysname %]&br=[% row.branch %]"
- title="History"
- >[% row.sysname %]</a></td>
- <td><span class="opsys">[% row.operating_system %]
- [% row.os_version %]</span> <span class="compiler">
- [%- row.compiler %]
- [% row.compiler_version %]</span> <span class="arch">
- [%- row.architecture %]</span></td>
- <td class="status">
- [%- row.when_ago | replace('\s',' ') %] ago
- [% row.stage -%]
- <a href="show_log.pl?nm=
- [%- row.sysname %]&dt=
- [%- row.snapshot | uri %]">
- [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%]</a></td>
-
-</tr>
-[% END %]
- </table>
-</div><!-- main -->
-</div><!-- wrapper -->
- </body>
-</html>
-
-
-
-
-
-
-
-