[Midnightbsd-cvs] mports: www/tmpls: add new template files.

ctriv at midnightbsd.org ctriv at midnightbsd.org
Wed Mar 19 23:47:17 EDT 2008


Log Message:
-----------
add new template files.

Added Files:
-----------
    mports/Tools/magus/www/tmpls:
        machine-events.tmpl (r1.1)
        machine.tmpl (r1.1)
        run.tmpl (r1.1)

-------------- next part --------------
--- /dev/null
+++ Tools/magus/www/tmpls/run.tmpl
@@ -0,0 +1,35 @@
+<TMPL_INCLUDE NAME="header.tmpl">
+
+<h2>Run <TMPL_VAR name="id"></h2>
+
+<table class="run-summary">
+<tr>
+	<th>ID</th>
+	<th>OSVersion</th>
+	<th>Arch</th>
+	<th>Status</th>
+	<th>Created</th>
+	<th></th>
+</tr>
+<tr>
+	<td><TMPL_VAR NAME="id"></td>
+	<td><TMPL_VAR NAME="osversion"></td>
+	<td><TMPL_VAR NAME="arch"></td>
+	<td><TMPL_VAR NAME="status"></td>
+	<td><TMPL_VAR NAME="created"></td>
+	<td>
+	<select onchange="return showPorts(<TMPL_VAR NAME="id">, this.value);">
+		<option value="">Port Statistics</option>
+	    <TMPL_LOOP NAME="status_stats">
+		<option value="<TMPL_VAR NAME="status">"><TMPL_VAR NAME="status"> -- <TMPL_VAR NAME="count"></option>
+	    </TMPL_LOOP>
+	</select>
+	</td>
+</tr>
+<tr>
+	<td colspan="6" id="ports-display" style="display: none">
+	</td>
+</tr>
+</table>
+
+<TMPL_INCLUDE NAME="footer.tmpl">
--- /dev/null
+++ Tools/magus/www/tmpls/machine-events.tmpl
@@ -0,0 +1,18 @@
+<table class="event-list">
+<tr>
+	<th>Port</th>
+	<th>Run</th>
+        <th>Type</th>
+        <th>Time</th>
+        <th>Message</th>
+</tr>
+
+<TMPL_LOOP name="events">
+<tr class="<TMPL_VAR NAME=type><TMPL_UNLESS NAME=__odd__> even</TMPL_UNLESS>">
+	<td><a href="<TMPL_VAR NAME="port_root">/<TMPL_VAR NAME="port_id">"><TMPL_VAR NAME="port"></a></td>
+	<td><a href="<TMPL_VAR NAME="run_root">/<TMPL_VAR NAME="run">"><TMPL_VAR NAME="run"></a></td>
+        <td><TMPL_VAR NAME="type"></td>
+        <td style="white-space: nowrap; font-size: smaller"><TMPL_VAR NAME="time"></td>
+        <td><TMPL_VAR NAME="msg"></td>
+</tr>
+</TMPL_LOOP>
--- /dev/null
+++ Tools/magus/www/tmpls/machine.tmpl
@@ -0,0 +1,38 @@
+<TMPL_INCLUDE NAME="header.tmpl">
+
+<h2>Machine <TMPL_VAR name="name"></h2>
+
+<table class="machine-summary">
+<tr>
+	<th>ID</th>
+	<th>Name</th>
+	<th>Maintainer</th>
+	<th>Arch</th>
+	<th>OSVersion</th>
+	<th>Run</th>
+	<th></th>
+</tr>
+<tr>
+	<td><TMPL_VAR NAME="id"></td>
+	<td><TMPL_VAR NAME="name"></td>
+	<td><TMPL_VAR NAME="maintainer"></td>
+	<td><TMPL_VAR NAME="arch"></td>
+	<td><TMPL_VAR NAME="osversion"></td>
+	<td><a href="<TMPL_VAR NAME="run_root">/<TMPL_VAR NAME="run">"><TMPL_VAR NAME="run"></td>
+	<td>
+	<select onchange="return showEvents(<TMPL_VAR NAME="id">, this.value);">
+		<option value="">Show Events</option>
+	    <TMPL_LOOP NAME="runs">
+		<option value="<TMPL_VAR NAME="run">">Run  <TMPL_VAR NAME="run"></option>
+	    </TMPL_LOOP>
+	</select>
+	</td>
+</tr>
+<tr>
+	<td colspan="7" id="events-display" style="display: none">
+	</td>
+</tr>
+
+</table>
+
+<TMPL_INCLUDE NAME="footer.tmpl">


More information about the Midnightbsd-cvs mailing list