-print <<EOHTML;
-<!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 | Log for system "$system" failure on snapshot taken $logdate</title>
- <link rel="stylesheet" rev="stylesheet" href="/inc/pgbf.css" charset="utf-8" />
-</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="Status Page">Status</a></li>
- <li id="members"><a href="/cgi-bin/show_members.pl" title="Status Page">Members</a></li>
- <li id="register"><a href="/register.html" title="Register">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 Build Farm Log</h1>
-<h1>Details for system "$system" failure at stage $stage on snapshot taken $logdate</h1>
-<table cellspacing="0">
- <tr>
- <th class="head" rowspan="2">System Information</th>
- <th>Farm member</th>
- <th>Branch</th>
- <th>OS</th>
- <th>Compiler</th>
- <th>Architecture</th>
- <th>Owner</th>
- </tr>
- <tr>
- <td>$system</td>
- <td><a href="/cgi-bin/show_history.pl?nm=$system&br=$branch">$branch</a></td>
- <td>$info_row->{operating_system} $info_row->{os_version}</td>
- <td>$info_row->{compiler} $info_row->{compiler_version}</td>
- <td>$info_row->{architecture}</td>
- <td>$info_row->{owner_email}</td>
- </tr>
- </table>
-EOHTML
-
-for my $logstage (@log_file_names)
-{
- print "<br /> <table><tr><th class='head' rowspan='4'>Stage Logs</th>\n"
- unless $heading_done;
- $heading_done = 1;
- $cell++;
- $logstage =~ s/\.log$//;
- print "<tr>\n" if ($cell > 1 && $cell % $lrfactor == 1);
- print "<td><a href='show_stage_log.pl?nm=$system&dt=$urldt&stg=$logstage'>$logstage</a></td>\n";
- print "</tr>\n" if ($cell % $lrfactor == 0);
-}
-
-if ($cell)
-{
- foreach my $rcell ($cell+1 .. $logcells)