use Template;
use Captcha::reCAPTCHA;
-use vars qw( $captcha_pubkey );
+use vars qw( $template_dir $captcha_pubkey );
require "$ENV{BFConfDir}/BuildFarmWeb.pl";
my $captcha = $c->get_html($captcha_pubkey);
-
-my $template = new Template({INCLUDE_PATH => '/home/community/pgbuildfarm/templates' });
+my $template_opts = { INCLUDE_PATH => $template_dir };
+my $template = new Template($template_opts);
print "Content-Type: text/html\n\n";
use Template;
use CGI;
-use vars qw($dbhost $dbname $dbuser $dbpass $dbport);
+use vars qw($dbhost $dbname $dbuser $dbpass $dbport $template_dir);
require "$ENV{BFConfDir}/BuildFarmWeb.pl";
$db->disconnect;
-my $template = new Template({EVAL_PERL => 1});
+my $template_opts = { INCLUDE_PATH => $template_dir, EVAL_PERL => 1 };
+my $template = new Template($template_opts);
print "Content-Type: text/html\n\n";
-$template->process(\*DATA,
+$template->process('history.tt',
{statrows=>$statrows,
branch=>$branch,
member => $member,
});
exit;
-
-__DATA__
-[%- 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="icon" type="image/png" href="/elephant-icon.png" />
- <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>
- <tr><th>Owner</th><td>[% statrows.0.owner_email %]</td></tr>
- </table>
- <h3>Branch: [% branch %][% IF statrows.size >= hm %] (last [% hm %] 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 -->
-<hr />
-<p style="text-align: center;">
-Hosting for the PostgreSQL Buildfarm is generously
-provided by:
-<a href="http://www.commandprompt.com">CommandPrompt,
-The PostgreSQL Company</a>
-</p>
- </div><!-- wrapper -->
- </body>
-</html>
use CGI;
use URI::Escape;
-use vars qw($dbhost $dbname $dbuser $dbpass $dbport @log_file_names);
+use vars qw($dbhost $dbname $dbuser $dbpass $dbport $template_dir @log_file_names);
require "$ENV{BFConfDir}/BuildFarmWeb.pl";
#require "BuildFarmWeb.pl";
+my $template_opts = { INCLUDE_PATH => $template_dir};
+my $template = new Template($template_opts);
+
die "no dbname" unless $dbname;
die "no dbuser" unless $dbuser;
-use vars qw($dbhost $dbname $dbuser $dbpass $dbport $sort_by);
+use vars qw($dbhost $dbname $dbuser $dbpass $dbport $template_dir $sort_by);
require "$ENV{BFConfDir}/BuildFarmWeb.pl";
# use Data::Dumper; print "Content-Type: text/plain\n\n",Dumper($statrows),"VERSION: ",$DBD::Pg::VERSION,"\n"; exit;
-my $template = new Template({});
+my $template_opts = { INCLUDE_PATH => $template_dir};
+my $template = new Template($template_opts);
print "Content-Type: text/html\n\n";
-$template->process(\*DATA,{statrows=>$statrows});
+$template->process('members.tt',
+ {statrows=>$statrows});
exit;
-
-__DATA__
-<!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 Members</title>
- <link rel="icon" type="image/png" href="/elephant-icon.png" />
- <link rel="stylesheet" rev="stylesheet" href="/inc/pgbf.css" charset="utf-8" />
- <style type="text/css"><!--
- li#members a { color:rgb(17,45,137); background: url(/inc/b/r.png) no-repeat 100% -20px; }
- li#members { background: url(/inc/b/l.png) no-repeat 0% -20px; }
- --></style>
- </style>
-</head>
-<body class="members">
-<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 Members</h1>
- <p>Click branch links to see build history. Click the heading links to resort the list. Select members by checkbox and hit the button at the bottom to create a status custom filter.</p>
- <form name="filter" method="GET" action="/cgi-bin/show_status.pl">
- <table cellspacing="0">
- <tr>
- <td> </td>
- <th><a href="/cgi-bin/show_members.pl?sort_by=name">Name</a><br /><a href="/cgi-bin/show_members.pl?sort_by=owner">Owner</a></th>
- <th><a href="/cgi-bin/show_members.pl?sort_by=os">OS / Version</a></th>
- <th><a href="/cgi-bin/show_members.pl?sort_by=compiler">Compiler / Version</a></th>
- <th><a href="/cgi-bin/show_members.pl?sort_by=arch">Arch</a></th>
- <th>Branches reported on<br />(most recent report)</th>
- </tr>
-[% alt = true %]
-[% FOREACH row IN statrows ;
- have_recent = 0;
- FOREACH branch_days IN row.branches.split(',') ;
- branch_fields = branch_days.split(':');
- branch_day = branch_fields.1;
- IF branch_day < 365 ; have_recent = 1; END;
- END;
- IF have_recent ;
-%] <tr [%- IF alt %]class="alt"[% END -%]>
- [% alt = ! alt %]
- <td><input type="checkbox" name="member" value="[% row.name %]" /></td>
- <td>[% row.name %]<br />[% row.owner_email %]</td>
- <td>[% row.operating_system %]<br />[% row.os_version %]</td>
- <td>[% row.compiler %]<br />[% row.compiler_version %]</td>
- <td>[% row.arch %]</td>
- <td class="branch">[% IF ! row.branches ; ' ' ; END -%]
- <ul>
- [%-
- FOREACH branch_days IN row.branches.split(',') ;
- branch_fields = branch_days.split(':');
- branch = branch_fields.0;
- branch_day = branch_fields.1;
- IF branch_day < 365 ;
- %]<li><a
- href="show_history.pl?nm=[% row.name %]&br=[% branch %]"
- title="History"
- >[% branch %]</a> ([% branch_day %] days ago)</li>[% END; END %]</ul></td>
- </tr>
-[% END; END %]
- </table>
- <input type="submit" value="Make Filter" />
- </form>
- </div><!-- main -->
-<hr />
-<p style="text-align: center;">
-Hosting for the PostgreSQL Buildfarm is generously
-provided by:
-<a href="http://www.commandprompt.com">CommandPrompt,
-The PostgreSQL Company</a>
-</p>
- </div><!-- wrapper -->
- </body>
-</html>
-
-
-
-
-
-
-
-
use Template;
use CGI;
-use vars qw($dbhost $dbname $dbuser $dbpass $dbport);
+use vars qw($dbhost $dbname $dbuser $dbpass $dbport $template_dir);
require "$ENV{BFConfDir}/BuildFarmWeb.pl";
$db->disconnect;
-my $template = new Template({});
+my $template_opts = { INCLUDE_PATH => $template_dir };
+my $template = new Template($template_opts);
print "Content-Type: text/html\n\n";
-$template->process(\*DATA,{statrows=>$statrows});
+$template->process('status.tt',
+ {statrows=>$statrows});
exit;
-=comment
-
-[%- BLOCK img ; flag ; END -%]
-[%- BLOCK imgx ; IF flag_imgs.$flag ; '<img src="' . flag_imgs{flag} . '" alt="' . flag . '" /> ' ; ELSE flag . ' ' ; END ; END -%]
-
-=cut
-
-__DATA__
-[%
- 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',
- vpath => '/img/vpath.png',
- xml => '/img/xml.png',
- 'thread-safety' => '/img/threads.gif',
- 'integer-datetimes' = '/img/days.png',
- git => '/img/git.png',
- }
--%]
-[%- BLOCK img ; IF flag == 'depend' or flag == 'gnu-ld' ; ; ELSIF flag_imgs.$flag %]<img src="[% flag_imgs.$flag %]" title="[% flag %]" alt="[% flag %]" height="16" width="16" class="inline" align="bottom" /> [% ELSE %][%#
- flag ; ' '
-%][% END ; END -%]
-[%- BLOCK cl %] class="[% SWITCH bgfor.replace('-.*','') -%]
- [%- 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="icon" type="image/png" href="/elephant-icon.png" />
- <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><tr><th class="head" rowspan="2">Legend</th>
-[% FOREACH flagset IN flag_imgs %]
-<td><img src="[% flagset.value %]" title="[% flagset.key %]" alt="[% flagset.key %]" height="16" width="16" class="inline" align="center"/> = [% flagset.key %]</td>
-[% IF loop.count == 7 %]</tr><tr>[% END %]
-[% END %]
-</tr></table>
-<br />
- <table cellspacing="0">
-[% brch = "" %]
-[% FOREACH row IN statrows %]
-[% IF row.branch != brch ; brch = row.branch %]
-<tr><th class="head" colspan="4">Branch: [% brch %]</th></tr>
-<tr><th>Alias</th><th>System</th><th>Status</th><th>Flags</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>
-
- <td class="flags">[% FOREACH flag IN row.build_flags.split().sort() ; PROCESS img ; END %]</td>
-</tr>
-[% END %]
- </table>
-</div><!-- main -->
-<hr />
-<p style="text-align: center;">
-The PostgreSQL Buildfarm website is provided by:
-<a href="http://www.commandprompt.com">CommandPrompt,
-The PostgreSQL Company</a> <br />
-The PostgreSQL community makes it work!
-</p>
-</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 History</title>
+ <link rel="icon" type="image/png" href="/elephant-icon.png" />
+ <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>
+ <tr><th>Owner</th><td>[% statrows.0.owner_email %]</td></tr>
+ </table>
+ <h3>Branch: [% branch %][% IF statrows.size >= hm %] (last [% hm %] 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 -->
+<hr />
+<p style="text-align: center;">
+Hosting for the PostgreSQL Buildfarm is generously
+provided by:
+<a href="http://www.commandprompt.com">CommandPrompt,
+The PostgreSQL Company</a>
+</p>
+ </div><!-- wrapper -->
+ </body>
+</html>
--- /dev/null
+<!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 Members</title>
+ <link rel="icon" type="image/png" href="/elephant-icon.png" />
+ <link rel="stylesheet" rev="stylesheet" href="/inc/pgbf.css" charset="utf-8" />
+ <style type="text/css"><!--
+ li#members a { color:rgb(17,45,137); background: url(/inc/b/r.png) no-repeat 100% -20px; }
+ li#members { background: url(/inc/b/l.png) no-repeat 0% -20px; }
+ --></style>
+ </style>
+</head>
+<body class="members">
+<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 Members</h1>
+ <p>Click branch links to see build history. Click the heading links to resort the list. Select members by checkbox and hit the button at the bottom to create a status custom filter.</p>
+ <form name="filter" method="GET" action="/cgi-bin/show_status.pl">
+ <table cellspacing="0">
+ <tr>
+ <td> </td>
+ <th><a href="/cgi-bin/show_members.pl?sort_by=name">Name</a><br /><a href="/cgi-bin/show_members.pl?sort_by=owner">Owner</a></th>
+ <th><a href="/cgi-bin/show_members.pl?sort_by=os">OS / Version</a></th>
+ <th><a href="/cgi-bin/show_members.pl?sort_by=compiler">Compiler / Version</a></th>
+ <th><a href="/cgi-bin/show_members.pl?sort_by=arch">Arch</a></th>
+ <th>Branches reported on<br />(most recent report)</th>
+ </tr>
+[% alt = true %]
+[% FOREACH row IN statrows ;
+ have_recent = 0;
+ FOREACH branch_days IN row.branches.split(',') ;
+ branch_fields = branch_days.split(':');
+ branch_day = branch_fields.1;
+ IF branch_day < 365 ; have_recent = 1; END;
+ END;
+ IF have_recent ;
+%] <tr [%- IF alt %]class="alt"[% END -%]>
+ [% alt = ! alt %]
+ <td><input type="checkbox" name="member" value="[% row.name %]" /></td>
+ <td>[% row.name %]<br />[% row.owner_email %]</td>
+ <td>[% row.operating_system %]<br />[% row.os_version %]</td>
+ <td>[% row.compiler %]<br />[% row.compiler_version %]</td>
+ <td>[% row.arch %]</td>
+ <td class="branch">[% IF ! row.branches ; ' ' ; END -%]
+ <ul>
+ [%-
+ FOREACH branch_days IN row.branches.split(',') ;
+ branch_fields = branch_days.split(':');
+ branch = branch_fields.0;
+ branch_day = branch_fields.1;
+ IF branch_day < 365 ;
+ %]<li><a
+ href="show_history.pl?nm=[% row.name %]&br=[% branch %]"
+ title="History"
+ >[% branch %]</a> ([% branch_day %] days ago)</li>[% END; END %]</ul></td>
+ </tr>
+[% END; END %]
+ </table>
+ <input type="submit" value="Make Filter" />
+ </form>
+ </div><!-- main -->
+<hr />
+<p style="text-align: center;">
+Hosting for the PostgreSQL Buildfarm is generously
+provided by:
+<a href="http://www.commandprompt.com">CommandPrompt,
+The PostgreSQL Company</a>
+</p>
+ </div><!-- wrapper -->
+ </body>
+</html>
+
+
+
+
+
+
+
+
--- /dev/null
+[%
+ 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',
+ vpath => '/img/vpath.png',
+ xml => '/img/xml.png',
+ 'thread-safety' => '/img/threads.gif',
+ 'integer-datetimes' = '/img/days.png',
+ git => '/img/git.png',
+ }
+-%]
+[%- BLOCK img ; IF flag == 'depend' or flag == 'gnu-ld' ; ; ELSIF flag_imgs.$flag %]<img src="[% flag_imgs.$flag %]" title="[% flag %]" alt="[% flag %]" height="16" width="16" class="inline" align="bottom" /> [% ELSE %][%#
+ flag ; ' '
+%][% END ; END -%]
+[%- BLOCK cl %] class="[% SWITCH bgfor.replace('-.*','') -%]
+ [%- 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="icon" type="image/png" href="/elephant-icon.png" />
+ <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><tr><th class="head" rowspan="2">Legend</th>
+[% FOREACH flagset IN flag_imgs %]
+<td><img src="[% flagset.value %]" title="[% flagset.key %]" alt="[% flagset.key %]" height="16" width="16" class="inline" align="center"/> = [% flagset.key %]</td>
+[% IF loop.count == 7 %]</tr><tr>[% END %]
+[% END %]
+</tr></table>
+<br />
+ <table cellspacing="0">
+[% brch = "" %]
+[% FOREACH row IN statrows %]
+[% IF row.branch != brch ; brch = row.branch %]
+<tr><th class="head" colspan="4">Branch: [% brch %]</th></tr>
+<tr><th>Alias</th><th>System</th><th>Status</th><th>Flags</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>
+
+ <td class="flags">[% FOREACH flag IN row.build_flags.split().sort() ; PROCESS img ; END %]</td>
+</tr>
+[% END %]
+ </table>
+</div><!-- main -->
+<hr />
+<p style="text-align: center;">
+The PostgreSQL Buildfarm website is provided by:
+<a href="http://www.commandprompt.com">CommandPrompt,
+The PostgreSQL Company</a> <br />
+The PostgreSQL community makes it work!
+</p>
+</div><!-- wrapper -->
+ </body>
+</html>
+
+
+
+
+
+
+
+