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