Annotation of FreeBSD/tinderbox/webui/templates/paefchen/list_buildports.tpl, revision 1.1.2.1
1.1 as 1: <?
2: $topmenu = array(
3: "Current and latest builds in this build" => "index.php?action=latest_buildports&build=$build_name",
4: "Failed builds in this build" => "index.php?action=failed_buildports&build=$build_name"
5: );
6: $header_title = $build_name;
7: include 'header.inc.tpl';
8: ?>
1.1.2.1 ! as 9: <!-- $Paefchen: FreeBSD/tinderbox/webui/templates/paefchen/list_buildports.tpl,v 1.1 2008/01/05 12:25:17 as Exp $ //-->
1.1 as 10: <h1><?=$build_name?> » <?=$build_description?></h1>
11: <div class="description">
12: <table>
13: <tr>
14: <th></th>
15: <th>Name</th>
16: <th>Updated</th>
17: </tr>
18: <tr>
19: <th>System</th>
20: <td>FreeBSD <?=$jail_name?> (<?=$jail_tag?>)</td>
21: <td><?=$jail_lastbuilt?></td>
22: </tr>
23: <tr>
24: <th>Ports Tree</th>
25: <td><?=$ports_tree_description?></td>
26: <td><?=$ports_tree_lastbuilt?></td>
27: </tr>
28: </table>
29: </div>
30:
31: <div class="subcontent">
32: <form method="get" action="index.php">
33: <table>
34: <tr>
35: <th>Failed builds in this build for the maintainer</th>
36: </tr>
37: <tr>
38: <td>
39: <input type="hidden" name="action" value="failed_buildports" />
40: <input type="hidden" name="build" value="<?=$build_name?>" />
41: <select name="maintainer">
42: <option></option>
43: <?foreach($maintainers as $maintainer) {?>
44: <option><?=$maintainer?></option>
45: <?}?>
46: </select>
47: <input type="submit" name="Go" value="Go" /><br />
48: </td>
49: </tr>
50: </table>
51: </form>
52: </div>
53:
54: <?if(!$no_list){?>
55: <table>
56: <tr>
57: <th>
1.1.2.1 ! as 58: <a href="<?= build_query_string($_SERVER['PHP_SELF'], $querystring, "sort", "Port_Directory") ?>">Port Directory</a>
1.1 as 59: </th>
60: <th>
1.1.2.1 ! as 61: <a href="<?= build_query_string($_SERVER['PHP_SELF'], $querystring, "sort", "Port_Maintainer") ?>">Maintainer</a>
1.1 as 62: </th>
63: <th>
1.1.2.1 ! as 64: <a href="<?= build_query_string($_SERVER['PHP_SELF'], $querystring, "sort", "Last_Built_Version") ?>">Version</a>
1.1 as 65: </th>
66: <th style="width: 20px"> </th>
67: <th>
1.1.2.1 ! as 68: <a href="<?= build_query_string($_SERVER['PHP_SELF'], $querystring, "sort", "Last_Fail_Reason") ?>">Reason</a>
1.1 as 69: </th>
70: <th> </th>
71: <th>
1.1.2.1 ! as 72: <a href="<?= build_query_string($_SERVER['PHP_SELF'], $querystring, "sort", "Last_Built") ?>">Last Build Attempt</a>
1.1 as 73: </th>
74: <th>
1.1.2.1 ! as 75: <a href="<?= build_query_string($_SERVER['PHP_SELF'], $querystring, "sort", "Last_Successful_Built") ?>">Last Successful Build</a>
1.1 as 76: </th>
77: </tr>
78: <?foreach($data as $row) {?>
79: <tr>
80: <td><a href="index.php?action=describe_port&id=<?=$row['port_id']?>"><?=$row['port_directory']?></a></td>
81: <td><?=$row['port_maintainer']?></td>
82: <td><?=$row['port_last_built_version']?></td>
83: <td class="<?=$row['status_field_class']?>"><?=$row['status_field_letter']?></td>
84: <?$reason=$row['port_last_fail_reason']?>
85: <td class="<?="fail_reason_".$port_fail_reasons[$reason]['type']?>">
86: <?$href=($port_fail_reasons[$reason]['link']) ? "index.php?action=display_failure_reasons&failure_reason_tag=$reason#$reason" : "#"?>
87: <a href="<?=$href?>" class="<?="fail_reason_".$port_fail_reasons[$reason]['type']?>" title="<?=$port_fail_reasons[$reason]['descr']?>"><?=$reason?></a>
88: </td>
89: <td>
90: <?if($row['port_link_logfile']){?>
91: <a href="<?=$row['port_link_logfile']?>">log</a>
92: <?}?>
93: <?if($row['port_link_package']){?>
94: <a href="<?=$row['port_link_package']?>">package</a>
95: <?}?>
96: </td>
97: <td><?=$row['port_last_built']?></td>
98: <td><?=$row['port_last_successful_built']?></td>
99: </tr>
100: <?}?>
101: </table>
102: <?}else{?>
103: <p>No ports are being built.</p>
104: <?}?>
105:
106: <div class="subcontent">
107: <form method="get" action="index.php">
108: <table>
109: <tr>
110: <th>Failed builds in this build for the maintainer</th>
111: </tr>
112: <tr>
113: <td>
114: <input type="hidden" name="action" value="failed_buildports" />
115: <input type="hidden" name="build" value="<?=$build_name?>" />
116: <select name="maintainer">
117: <option></option>
118: <?foreach($maintainers as $maintainer) {?>
119: <option><?=$maintainer?></option>
120: <?}?>
121: </select>
122: <input type="submit" name="Go" value="Go" /><br />
123: </td>
124: </tr>
125: </table>
126: </form>
127: </div>
128: <?
129: $footer_legend = array(
130: 'port_success' => 'Success',
131: 'port_default' => 'Default',
132: 'port_leftovers'=> 'Leftovers', # L
133: 'port_dud' => 'Dud', # D
134: 'port_depend' => 'Depend',
135: 'port_fail' => 'Fail',
136: );
137: include 'footer.inc.tpl';
138: ?>