This commit is contained in:
@ -1,7 +1,8 @@
|
||||
[% WRAPPER layout.tt title="Hydra Overview" %]
|
||||
[% USE HTML %]
|
||||
|
||||
<h1>Error</h1>
|
||||
|
||||
<p>I'm very sorry, but an error occurred: <span class="error-msg">[% error %]</span></p>
|
||||
<p>I'm very sorry, but an error occurred: <span class="error-msg">[% HTML.escape(error) %]</span></p>
|
||||
|
||||
[% END %]
|
||||
|
@ -38,6 +38,10 @@ td, th {
|
||||
border: solid black 1px;
|
||||
}
|
||||
|
||||
td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
th {
|
||||
background: #ffffc0;
|
||||
}
|
||||
@ -145,6 +149,7 @@ td.buildfarmMainColumn {
|
||||
|
||||
.error-msg {
|
||||
color: red;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
pre.buildlog {
|
||||
@ -321,3 +326,13 @@ h1 {
|
||||
#footer {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
|
||||
/* Editing */
|
||||
|
||||
input.string {
|
||||
font-family: sans-serif;
|
||||
font-size: 100%;
|
||||
background-color: #fffff0;
|
||||
width: 30em;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
[% WRAPPER layout.tt title="Hydra Overview" %]
|
||||
|
||||
<h1>All builds for job <tt>[% projectName %]:[% jobName %]</tt></h1>
|
||||
<h1>All builds for job <tt>[% curProject.name %]:[% jobName %]</tt></h1>
|
||||
|
||||
<table class="tablesorter">
|
||||
<thead>
|
||||
|
@ -50,6 +50,7 @@
|
||||
<div class="title"><a href="[% c.uri_for('/project' project.name) %]">[% project.displayname %]</a></div>
|
||||
[% IF curProject.name == project.name %]
|
||||
<ul class="subsubmenu">
|
||||
[% INCLUDE makeLink uri = c.uri_for('/project' project.name 'edit') title = "Edit" %]
|
||||
[% INCLUDE makeLink uri = c.uri_for('/project' project.name 'status') title = "Status" %]
|
||||
[% INCLUDE makeLink uri = c.uri_for('/project' project.name 'all') title = "All builds" %]
|
||||
</ul>
|
||||
@ -63,7 +64,7 @@
|
||||
<div class="title">Admin</div>
|
||||
<ul class="submenu">
|
||||
[% INCLUDE makeLink uri = c.uri_for('/users') title = "Users" %]
|
||||
[% INCLUDE makeLink uri = c.uri_for('/create-project') title = "Create a project" %]
|
||||
[% INCLUDE makeLink uri = c.uri_for('/createproject') title = "Create a project" %]
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -1,9 +1,46 @@
|
||||
[% WRAPPER layout.tt title="Hydra Overview" %]
|
||||
|
||||
<h1>Project <tt>[% curProject.name %]</tt></h1>
|
||||
[% USE HTML %]
|
||||
|
||||
|
||||
<p><strong>Description:</strong> [% curProject.description %]</p>
|
||||
[% BLOCK maybeEditString %]
|
||||
[% IF edit %]
|
||||
<input type='text' class='string' [% HTML.attributes(name => param, value => value) %] />
|
||||
[% ELSE %]
|
||||
[% HTML.escape(value) %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
|
||||
[% IF edit %]
|
||||
<form action="[% IF create %][% c.uri_for('/createproject/submit') %][% ELSE %][% c.uri_for('/project' curProject.name 'submit') %][% END %]" method="post">
|
||||
[% END %]
|
||||
|
||||
|
||||
[% IF create %]
|
||||
<h1>New Project</h1>
|
||||
[% ELSE %]
|
||||
<h1>Project <tt>[% curProject.name %]</tt></h1>
|
||||
[% END %]
|
||||
|
||||
|
||||
<h2>General information</h2>
|
||||
|
||||
<table>
|
||||
[% IF edit %]
|
||||
<tr>
|
||||
<th>Identifier:</th>
|
||||
<td><tt>[% INCLUDE maybeEditString param="name" value=curProject.name %]</tt></td>
|
||||
</tr>
|
||||
[% END %]
|
||||
<tr>
|
||||
<th>Display name:</th>
|
||||
<td>[% INCLUDE maybeEditString param="displayname" value=curProject.displayname %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Description:</th>
|
||||
<td>[% INCLUDE maybeEditString param="description" value=curProject.description %]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<h2>Definition</h2>
|
||||
@ -17,13 +54,19 @@
|
||||
<h4>Information</h4>
|
||||
|
||||
<table>
|
||||
[% IF edit %]
|
||||
<tr>
|
||||
<th>Identifier:</th>
|
||||
<td><tt>[% INCLUDE maybeEditString value=jobset.name %]</tt></td>
|
||||
</tr>
|
||||
[% END %]
|
||||
<tr>
|
||||
<th>Description:</th>
|
||||
<td>[% jobset.description %]</td>
|
||||
<td>[% INCLUDE maybeEditString value=jobset.description %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Nix expression:</th>
|
||||
<td><tt>[% jobset.nixexprpath %]</tt> in input <tt>[% jobset.nixexprinput %]</tt></td>
|
||||
<td><tt>[% INCLUDE maybeEditString value=jobset.nixexprpath %]</tt> in input <tt>[% INCLUDE maybeEditString value=jobset.nixexprinput %]</tt></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@ -36,14 +79,33 @@
|
||||
<tbody>
|
||||
[% FOREACH input IN jobset.jobsetinputs -%]
|
||||
<tr>
|
||||
<td><tt>[% input.name %]</tt></td>
|
||||
<td><tt>[% input.type %]</tt></td>
|
||||
<td><tt>[% INCLUDE maybeEditString value=input.name %]</tt></td>
|
||||
<td><tt>
|
||||
[% IF edit %]
|
||||
<select>
|
||||
<option>svn</option>
|
||||
<option>cvs</option>
|
||||
<option>uri</option>
|
||||
<option>string</option>
|
||||
<option>path</option>
|
||||
</select>
|
||||
[% ELSE %]
|
||||
[% input.type %]
|
||||
[% END %]
|
||||
</tt></td>
|
||||
<td>
|
||||
[% FOREACH alt IN input.jobsetinputalts -%]
|
||||
[% IF input.type == "string" %]
|
||||
<tt>"[% alt.value %]"</tt>
|
||||
<tt>
|
||||
[% IF edit %]
|
||||
<input type='text' class='string' value='[% alt.value %]' />
|
||||
<br />
|
||||
[% ELSE %]
|
||||
"[% alt.value %]"
|
||||
[% END %]
|
||||
</tt>
|
||||
[% ELSE %]
|
||||
<tt>[% alt.uri %]</tt>
|
||||
<tt>[% INCLUDE maybeEditString value=alt.uri %]</tt>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</td>
|
||||
@ -61,6 +123,9 @@
|
||||
[% END %]
|
||||
|
||||
|
||||
[% IF !edit %]
|
||||
|
||||
|
||||
<h2>Jobs</h2>
|
||||
|
||||
[% IF jobNames.size > 0 %]
|
||||
@ -108,4 +173,20 @@
|
||||
</table>
|
||||
|
||||
|
||||
[% END %]
|
||||
|
||||
|
||||
[% IF edit %]
|
||||
|
||||
<p><input type="submit" value="Apply" /></p>
|
||||
|
||||
</form>
|
||||
|
||||
<form action="[% c.uri_for('/project' curProject.name 'delete') %]" method="post">
|
||||
<p><input type="submit" value="Delete this project" /></p>
|
||||
</form>
|
||||
|
||||
[% END %]
|
||||
|
||||
|
||||
[% END %]
|
||||
|
Reference in New Issue
Block a user