Annotation of FreeBSD/tinderbox/webui/templates/paefchen/latest_buildports.tpl, revision 1.2
1.1 as 1: <?
2: $header_title = "Current and Latest Builds";
3: if ($build_name)
4: $header_title .= " in $build_name";
5: $topmenu = array(
6: 'Current' => '#current',
7: 'Latest' => '#latest'
8: );
9: include 'header.inc.tpl'
10: ?>
1.2 ! as 11: <!-- $Paefchen: FreeBSD/tinderbox/webui/templates/paefchen/latest_buildports.tpl,v 1.1 2008/01/05 12:25:17 as Exp $ //-->
! 12: <script type="text/javascript">
! 13: <!--
1.1 as 14: function reloadpage() {
15: document.location.reload();
16: }
17: setTimeout("reloadpage()", 300000)
1.2 ! as 18: //-->
1.1 as 19: </script>
20: <?=$current_builds?>
21: <?if(!$no_list){?>
22: <h2 id="latest">Latest</h2>
23: <table>
24: <tr>
25: <th>Build</th>
26: <th>Port Directory</th>
27: <th>Version</th>
28: <th style="width: 20px"> </th>
29: <th>Reason</th>
30: <th> </th>
31: <th>Last Build Attempt</th>
32: <th>Last Successful Build</th>
33: <th>Duration</th>
34: </tr>
35:
36: <?foreach($data as $row) {?>
37: <tr>
38: <td><a href="index.php?action=list_buildports&build=<?=$row['build_name']?>"><?=$row['build_name']?></a></td>
39: <td><a href="index.php?action=describe_port&id=<?=$row['port_id']?>"><?=$row['port_directory']?></a></td>
40: <td><?=$row['port_last_built_version']?></td>
41: <td class="<?=$row['status_field_class']?>"><?=$row['status_field_letter']?></td>
42: <?$reason=$row['port_last_fail_reason']?>
43: <td class="<?="fail_reason_".$port_fail_reasons[$reason]['type']?>">
44: <?$href=($port_fail_reasons[$reason]['link']) ? "index.php?action=display_failure_reasons&failure_reason_tag=$reason#$reason" : "#"?>
45: <a href="<?=$href?>" class="<?="fail_reason_".$port_fail_reasons[$reason]['type']?>" title="<?=$port_fail_reasons[$reason]['descr']?>"><?=$reason?></a>
46: </td>
47: <td>
48: <?if($row['port_link_logfile']){?>
49: <a href="<?=$row['port_link_logfile']?>">log</a>
50: <?}?>
51: <?if($row['port_link_package']){?>
52: <a href="<?=$row['port_link_package']?>">package</a>
53: <?}?>
54: </td>
55: <td><?=$row['port_last_built']?></td>
56: <td><?=$row['port_last_successful_built']?></td>
57: <td><?=time_elapsed($row['port_last_run_duration'])?></td>
58: </tr>
59: <?}?>
60: </table>
61: <?}else{?>
62: <p>No ports are being built.</p>
63: <?}?>
64: <?
65: $footer_legend = array(
66: 'port_success' => 'Success',
67: 'port_default' => 'Default',
68: 'port_leftovers'=> 'Leftovers', # L
69: 'port_dud' => 'Dud', # D
70: 'port_depend' => 'Depend',
71: 'port_fail' => 'Fail',
72: );
73: include 'footer.inc.tpl';
74: ?>