Fix showing build steps in the machine status page
[?]
Apr 23, 2013, 12:24 PM
J4R2VCPPXW6QPVIDNXVHFRTDAZAPLAFBBBPIQZLZVPUHFXCO67TACDependencies
- [2]
HTL6HIBMmachine-status: Read /etc/nix.machines instead of using the BuildMachines table - [3]
PZL3SZM3Give every page a consistent title - [4]
SMCOU72Fhydra: add some admin for adding/enabling/etc build machines - [5]
BOAFFKUXActive build steps: Make the rows clickable - [6]
V6S6OYIAFormatting tweaks - [7]
EFWN7JBV* Added a status page that shows all the currently executing build steps. - [8]
ZWCTAZGLadded newsitems, added some admin options to clear various caches. - [9]
FFEH62DEMachine status page now looks much better and more consistent with rest of Hydra
Change contents
- edit in src/root/machine-status.tt at line 6
[% name = m.key ? m.key.match('@(.*)').0 : "localhost" %] - replacement in src/root/machine-status.tt at line 10
[% IF m.value.maxJobs > 0 %]Running[% IF !m.key || m.value.maxJobs %]Enabled: - replacement in src/root/machine-status.tt at line 13
Stopped[% END %] <tt>[% m.key %]</tt> (<tt>[% comma=0; FOREACH system IN m.value.systemTypes %][% IF comma; %], [% ELSE; comma = 1; END; system; END %])</tt>Disabled:[% END %] <tt>[% name %]</tt>[% IF m.value.systemTypes %]([% comma=0; FOREACH system IN m.value.systemTypes %][% IF comma; %], [% ELSE; comma = 1; END %]<tt>[% system %]</tt>[% END %])[% END %] - replacement in src/root/machine-status.tt at line 24
[% IF step.machine.match('@(.*)').0 == m.key %][% name2 = step.machine ? step.machine.match('@(.*)').0 : "localhost" %][% IF name == name2 %] - replacement in src/root/machine-status.tt at line 32
<td class='right'>[% INCLUDE renderDuration duration = curTime - step.starttime %] </td><td style="width: 10em">[% INCLUDE renderDuration duration = curTime - step.starttime %] </td> - replacement in src/root/machine-status.tt at line 40
<tr><td colspan="5">Never built</td></tr><tr><td colspan="5">Never used</td></tr> - edit in src/root/machine-status.tt at line 47
- replacement in src/root/status.tt at line 17
<td class='right'>[% INCLUDE renderDuration duration = curTime - step.starttime %] </td><td style="width: 10em">[% INCLUDE renderDuration duration = curTime - step.starttime %] </td>