forked from lix-project/hydra
Fix indentation
This commit is contained in:
parent
88b4c4f55d
commit
afef502bb6
|
@ -101,7 +101,7 @@
|
||||||
[% IF !hideResultInfo %]
|
[% IF !hideResultInfo %]
|
||||||
<td>
|
<td>
|
||||||
[% INCLUDE renderBuildStatusIcon size=16 %]
|
[% INCLUDE renderBuildStatusIcon size=16 %]
|
||||||
</td>
|
</td>
|
||||||
[% END %]
|
[% END %]
|
||||||
<td><a href="[% c.uri_for('/build' build.id) %]">[% build.id %]</a></td>
|
<td><a href="[% c.uri_for('/build' build.id) %]">[% build.id %]</a></td>
|
||||||
[% IF showSchedulingInfo %]
|
[% IF showSchedulingInfo %]
|
||||||
|
@ -204,75 +204,75 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% BLOCK renderBuildStatusIcon; %]
|
[% BLOCK renderBuildStatusIcon; %]
|
||||||
[% finished = build != undef ? build.finished : 1 %]
|
[% finished = build != undef ? build.finished : 1 %]
|
||||||
[% busy = build != undef ? build.schedulingInfo.busy : 0 %]
|
[% busy = build != undef ? build.schedulingInfo.busy : 0 %]
|
||||||
[% buildstatus = buildstatus != undef ? buildstatus : build.resultInfo.buildstatus %]
|
[% buildstatus = buildstatus != undef ? buildstatus : build.resultInfo.buildstatus %]
|
||||||
[% IF finished %]
|
[% IF finished %]
|
||||||
[% IF buildstatus == 0 %]
|
[% IF buildstatus == 0 %]
|
||||||
<img src="/static/images/checkmark_[% size %].png" alt="Succeeded" />
|
<img src="/static/images/checkmark_[% size %].png" alt="Succeeded" />
|
||||||
[% ELSIF buildstatus == 1 %]
|
[% ELSIF buildstatus == 1 %]
|
||||||
<img src="/static/images/error_[% size %].png" alt="Failed" />
|
<img src="/static/images/error_[% size %].png" alt="Failed" />
|
||||||
[% ELSIF buildstatus == 2 %]
|
[% ELSIF buildstatus == 2 %]
|
||||||
<img src="/static/images/dependency_[% size %].png" alt="Dependency failed" />
|
<img src="/static/images/dependency_[% size %].png" alt="Dependency failed" />
|
||||||
[% ELSIF buildstatus == 4 %]
|
[% ELSIF buildstatus == 4 %]
|
||||||
<img src="/static/images/error_[% size %].png" alt="Failed" />
|
<img src="/static/images/error_[% size %].png" alt="Failed" />
|
||||||
[% ELSIF buildstatus == 5 %]
|
[% ELSIF buildstatus == 5 %]
|
||||||
<img src="/static/images/error_[% size %].png" alt="Failed" />
|
<img src="/static/images/error_[% size %].png" alt="Failed" />
|
||||||
[% ELSIF buildstatus == 6 %]
|
[% ELSIF buildstatus == 6 %]
|
||||||
<img src="/static/images/error_[% size %].png" alt="Failed (with result)" />
|
<img src="/static/images/error_[% size %].png" alt="Failed (with result)" />
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<img src="/static/images/error_[% size %].png" alt="Failed" />
|
<img src="/static/images/error_[% size %].png" alt="Failed" />
|
||||||
[% END %]
|
[% END %]
|
||||||
[% ELSIF busy %]
|
[% ELSIF busy %]
|
||||||
<img src="/static/images/help_[% size %].png" alt="Busy" />
|
<img src="/static/images/help_[% size %].png" alt="Busy" />
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<img src="/static/images/help_[% size %].png" alt="Scheduled" />
|
<img src="/static/images/help_[% size %].png" alt="Scheduled" />
|
||||||
[% END %]
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% BLOCK renderStatus; %]
|
[% BLOCK renderStatus; %]
|
||||||
[% IF build.finished %]
|
[% IF build.finished %]
|
||||||
[% IF build.resultInfo.buildstatus == 0 %]
|
[% IF build.resultInfo.buildstatus == 0 %]
|
||||||
[% INCLUDE renderBuildStatusIcon size=16 %]
|
[% INCLUDE renderBuildStatusIcon size=16 %]
|
||||||
<strong>Success</strong>
|
<strong>Success</strong>
|
||||||
[% ELSIF build.resultInfo.buildstatus == 1 %]
|
[% ELSIF build.resultInfo.buildstatus == 1 %]
|
||||||
[% INCLUDE renderBuildStatusIcon size=16 %]
|
[% INCLUDE renderBuildStatusIcon size=16 %]
|
||||||
<span class="error">Build returned a non-zero exit code</span>
|
<span class="error">Build returned a non-zero exit code</span>
|
||||||
[% ELSIF build.resultInfo.buildstatus == 2 %]
|
[% ELSIF build.resultInfo.buildstatus == 2 %]
|
||||||
[% INCLUDE renderBuildStatusIcon size=16 %]
|
[% INCLUDE renderBuildStatusIcon size=16 %]
|
||||||
<span class="error">A dependency of the build failed</span>
|
<span class="error">A dependency of the build failed</span>
|
||||||
[% ELSIF build.resultInfo.buildstatus == 4 %]
|
[% ELSIF build.resultInfo.buildstatus == 4 %]
|
||||||
[% INCLUDE renderBuildStatusIcon size=16 %]
|
[% INCLUDE renderBuildStatusIcon size=16 %]
|
||||||
<span class="error">Cancelled by user</span>
|
<span class="error">Cancelled by user</span>
|
||||||
[% ELSIF build.resultInfo.buildstatus == 5 %]
|
[% ELSIF build.resultInfo.buildstatus == 5 %]
|
||||||
[% INCLUDE renderBuildStatusIcon size=16 %]
|
[% INCLUDE renderBuildStatusIcon size=16 %]
|
||||||
<span class="error">Build inhibited because a dependency previously failed to build</span>
|
<span class="error">Build inhibited because a dependency previously failed to build</span>
|
||||||
[% failedDep = build.resultInfo.failedDep %]
|
[% failedDep = build.resultInfo.failedDep %]
|
||||||
(namely, <a href="[% c.uri_for('/build' failedDep.build.id 'nixlog' failedDep.stepnr) %]"><tt>[% failedDep.outpath %]</tt></a>)
|
(namely, <a href="[% c.uri_for('/build' failedDep.build.id 'nixlog' failedDep.stepnr) %]"><tt>[% failedDep.outpath %]</tt></a>)
|
||||||
[% ELSIF build.resultInfo.buildstatus == 6 %]
|
[% ELSIF build.resultInfo.buildstatus == 6 %]
|
||||||
[% INCLUDE renderBuildStatusIcon size=16 %]
|
[% INCLUDE renderBuildStatusIcon size=16 %]
|
||||||
<span class="error">Build failed (with result)</span>
|
<span class="error">Build failed (with result)</span>
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
[% INCLUDE renderBuildStatusIcon size=16 %]
|
[% INCLUDE renderBuildStatusIcon size=16 %]
|
||||||
<span class="error">Build failed</span>
|
<span class="error">Build failed</span>
|
||||||
(see <a href="#nix-error">below</a>)
|
(see <a href="#nix-error">below</a>)
|
||||||
[% END %]
|
[% END %]
|
||||||
[% IF c.user_exists && (build.resultInfo.buildstatus == 3 || build.resultInfo.buildstatus == 4) %]
|
[% IF c.user_exists && (build.resultInfo.buildstatus == 3 || build.resultInfo.buildstatus == 4) %]
|
||||||
<form action="[% c.uri_for('/build' build.id 'restart') %]" method="post" class="inline">
|
<form action="[% c.uri_for('/build' build.id 'restart') %]" method="post" class="inline">
|
||||||
<button id="restart" type="submit">Restart</button>
|
<button id="restart" type="submit">Restart</button>
|
||||||
</form>
|
</form>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% ELSIF build.schedulingInfo.busy %]
|
[% ELSIF build.schedulingInfo.busy %]
|
||||||
<strong>Build in progress</strong>
|
<strong>Build in progress</strong>
|
||||||
since [% INCLUDE renderDateTime timestamp = build.schedulingInfo.starttime %]
|
since [% INCLUDE renderDateTime timestamp = build.schedulingInfo.starttime %]
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<strong>Scheduled to be built</strong>
|
<strong>Scheduled to be built</strong>
|
||||||
[% IF c.user_exists %]
|
[% IF c.user_exists %]
|
||||||
<form action="[% c.uri_for('/build' build.id 'cancel') %]" method="post" class="inline">
|
<form action="[% c.uri_for('/build' build.id 'cancel') %]" method="post" class="inline">
|
||||||
<button id="cancel" type="submit">Cancel</button>
|
<button id="cancel" type="submit">Cancel</button>
|
||||||
</form>
|
</form>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
[% END -%]
|
[% END -%]
|
||||||
|
|
||||||
[% BLOCK renderInputValue %]
|
[% BLOCK renderInputValue %]
|
||||||
|
|
Loading…
Reference in a new issue