Annotation of FreeBSD/tinderbox/webui/templates/paefchen/describe_port.tpl, revision 1.1
1.1 ! as 1: <?
! 2: $topmenu = array();
! 3: $header_title = $port_name;
! 4: include 'header.inc.tpl';
! 5: ?>
! 6: <!-- $Paefchen: FreeBSD/tinderbox/webui/templates/paefchen/describe_port.tpl,v 1.1 2008/01/05 11:56:01 as Exp $ //-->
! 7: <?if(!$no_list){?>
! 8: <div class="description">
! 9: <table>
! 10: <tr>
! 11: <th>Directory</th>
! 12: <td><?=$port_dir?> (
! 13: <?for($i=0;$i<count($ports_trees_links);$i++) {?>
! 14: <a href="<?=$ports_trees_links[$i]['cvsweb']?>/<?=$port_dir?><?=$ports_trees_links[$i]['cvsweb_querystr']?>"><?=$ports_trees_links[$i]['name']?></a>
! 15: <?}?>
! 16: )</td>
! 17: </tr>
! 18: <tr>
! 19: <th>Comment</th>
! 20: <td><?=$port_comment?></td>
! 21: </tr>
! 22: <tr>
! 23: <th>Maintainer</th>
! 24: <td><a href="mailto:<?=$port_maintainer?>"><?=$port_maintainer?></a></td>
! 25: </tr>
! 26: </table>
! 27: </div>
! 28: <table>
! 29: <tr>
! 30: <th>Build</th>
! 31: <th>Version</th>
! 32: <th style="width: 20px"> </th>
! 33: <th> </th>
! 34: <th>Last Build Attempt</th>
! 35: <th>Last Successful Build</th>
! 36: <th>Duration</th>
! 37: </tr>
! 38: <?foreach($data as $row) {?>
! 39: <tr>
! 40: <td><a href="index.php?action=list_buildports&build=<?=$row['build_name']?>"><?=$row['build_name']?></a></td>
! 41: <td><?=$row['port_last_built_version']?></td>
! 42: <td class="<?=$row['status_field_class']?>"><?=$row['status_field_letter']?></td>
! 43: <td>
! 44: <?if($row['port_link_logfile']){?>
! 45: <a href="<?=$row['port_link_logfile']?>">log</a>
! 46: <?}?>
! 47: <?if($row['port_link_package']){?>
! 48: <a href="<?=$row['port_link_package']?>">package</a>
! 49: <?}?>
! 50: </td>
! 51: <td><?=$row['port_last_built']?></td>
! 52: <td><?=$row['port_last_successful_built']?></td>
! 53: <td><?=time_elapsed($row['port_last_run_duration'])?></td>
! 54: </tr>
! 55: <?}?>
! 56: </table>
! 57: <?}else{?>
! 58: <p>Invalid port ID.</p>
! 59: <? }
! 60: $footer_legend = array(
! 61: 'port_success' => 'Success',
! 62: 'port_default' => 'Default',
! 63: 'port_leftovers'=> 'Leftovers', # L
! 64: 'port_dud' => 'Dud', # D
! 65: 'port_depend' => 'Depend',
! 66: 'port_fail' => 'Fail',
! 67: );
! 68: include 'footer.inc.tpl';
! 69: ?>