Fix indentation

[?]
Nov 29, 2011, 6:04 PM
T6KISLR63EHMQ4QQI3Z46PSVQITCYNZL32K3AR2LKQ3K6ESOW3QQC

Dependencies

  • [2] CVWQXYKM use newer icons consistently
  • [3] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [4] PCZHB5JU * Remove trailing whitespace.
  • [5] KAZWI5G4 * hydra: buildpage, show changes since last build/successful build
  • [6] G3IUM7VL hydra: add support for succeedOnFailure feature in stdenv
  • [7] JLDUSNUO * Unify rendering of finished and scheduled builds.
  • [8] XHK7IGYI * hdyra: show last succeeded build and changes since on build status summary if build has failed
  • [*] IK53RV4V

Change contents

  • replacement in src/root/common.tt at line 104
    [2.58][2.58:75]()
    </td>
    [2.58]
    [3.1528]
    </td>
  • replacement in src/root/common.tt at line 207
    [3.14680][2.258:517](),[2.517][3.14761:14843](),[3.14761][3.14761:14843](),[3.14843][2.518:557](),[2.557][3.14899:14974](),[3.14899][3.14899:14974](),[3.14974][2.558:727](),[2.727][3.15030:15105](),[3.15030][3.15030:15105](),[3.15105][2.728:767](),[2.767][3.15292:15367](),[3.15292][3.15292:15367](),[3.15367][2.768:807](),[2.807][3.56:145](),[3.56][3.56:145](),[3.145][3.15367:15485](),[3.15367][3.15367:15485](),[3.15485][2.808:904](),[2.904][3.15602:15718](),[3.15602][3.15602:15718]()
    [% finished = build != undef ? build.finished : 1 %]
    [% busy = build != undef ? build.schedulingInfo.busy : 0 %]
    [% buildstatus = buildstatus != undef ? buildstatus : build.resultInfo.buildstatus %]
    [% IF finished %]
    [% IF buildstatus == 0 %]
    <img src="/static/images/checkmark_[% size %].png" alt="Succeeded" />
    [% ELSIF buildstatus == 1 %]
    <img src="/static/images/error_[% size %].png" alt="Failed" />
    [% ELSIF buildstatus == 2 %]
    <img src="/static/images/dependency_[% size %].png" alt="Dependency failed" />
    [% ELSIF buildstatus == 4 %]
    <img src="/static/images/error_[% size %].png" alt="Failed" />
    [% ELSIF buildstatus == 5 %]
    <img src="/static/images/error_[% size %].png" alt="Failed" />
    [% ELSIF buildstatus == 6 %]
    <img src="/static/images/error_[% size %].png" alt="Failed (with result)" />
    [% ELSE %]
    <img src="/static/images/error_[% size %].png" alt="Failed" />
    [% END %]
    [% ELSIF busy %]
    <img src="/static/images/help_[% size %].png" alt="Busy" />
    [% ELSE %]
    <img src="/static/images/help_[% size %].png" alt="Scheduled" />
    [% END %]
    [3.14680]
    [3.15718]
    [% finished = build != undef ? build.finished : 1 %]
    [% busy = build != undef ? build.schedulingInfo.busy : 0 %]
    [% buildstatus = buildstatus != undef ? buildstatus : build.resultInfo.buildstatus %]
    [% IF finished %]
    [% IF buildstatus == 0 %]
    <img src="/static/images/checkmark_[% size %].png" alt="Succeeded" />
    [% ELSIF buildstatus == 1 %]
    <img src="/static/images/error_[% size %].png" alt="Failed" />
    [% ELSIF buildstatus == 2 %]
    <img src="/static/images/dependency_[% size %].png" alt="Dependency failed" />
    [% ELSIF buildstatus == 4 %]
    <img src="/static/images/error_[% size %].png" alt="Failed" />
    [% ELSIF buildstatus == 5 %]
    <img src="/static/images/error_[% size %].png" alt="Failed" />
    [% ELSIF buildstatus == 6 %]
    <img src="/static/images/error_[% size %].png" alt="Failed (with result)" />
    [% ELSE %]
    <img src="/static/images/error_[% size %].png" alt="Failed" />
    [% END %]
    [% ELSIF busy %]
    <img src="/static/images/help_[% size %].png" alt="Busy" />
    [% ELSE %]
    <img src="/static/images/help_[% size %].png" alt="Scheduled" />
    [% END %]
  • replacement in src/root/common.tt at line 234
    [3.15756][3.15756:15837](),[3.15837][2.905:961](),[2.961][3.15906:15999](),[3.15906][3.15906:15999](),[3.15999][2.962:1018](),[2.1018][3.16065:16196](),[3.16065][3.16065:16196](),[3.16196][2.1019:1075](),[2.1075][3.16262:16390](),[3.16262][3.16262:16390](),[3.16390][2.1076:1132](),[2.1132][3.16456:16569](),[3.16456][3.16456:16569](),[3.16569][2.1133:1189](),[2.1189][3.16635:16935](),[3.16635][3.16635:16935](),[3.16935][3.146:202](),[3.202][2.1190:1246](),[2.1246][3.282:348](),[3.282][3.282:348](),[3.348][3.16935:16956](),[3.16935][3.16935:16956](),[3.16956][2.1247:1303](),[2.1303][3.17022:17958](),[3.17022][3.17022:17958]()
    [% IF build.finished %]
    [% IF build.resultInfo.buildstatus == 0 %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <strong>Success</strong>
    [% ELSIF build.resultInfo.buildstatus == 1 %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <span class="error">Build returned a non-zero exit code</span>
    [% ELSIF build.resultInfo.buildstatus == 2 %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <span class="error">A dependency of the build failed</span>
    [% ELSIF build.resultInfo.buildstatus == 4 %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <span class="error">Cancelled by user</span>
    [% ELSIF build.resultInfo.buildstatus == 5 %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <span class="error">Build inhibited because a dependency previously failed to build</span>
    [% failedDep = build.resultInfo.failedDep %]
    (namely, <a href="[% c.uri_for('/build' failedDep.build.id 'nixlog' failedDep.stepnr) %]"><tt>[% failedDep.outpath %]</tt></a>)
    [% ELSIF build.resultInfo.buildstatus == 6 %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <span class="error">Build failed (with result)</span>
    [% ELSE %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <span class="error">Build failed</span>
    (see <a href="#nix-error">below</a>)
    [% END %]
    [% 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">
    <button id="restart" type="submit">Restart</button>
    </form>
    [% END %]
    [% ELSIF build.schedulingInfo.busy %]
    <strong>Build in progress</strong>
    since [% INCLUDE renderDateTime timestamp = build.schedulingInfo.starttime %]
    [% ELSE %]
    <strong>Scheduled to be built</strong>
    [% IF c.user_exists %]
    <form action="[% c.uri_for('/build' build.id 'cancel') %]" method="post" class="inline">
    <button id="cancel" type="submit">Cancel</button>
    </form>
    [% END %]
    [% END %]
    [3.15756]
    [3.17958]
    [% IF build.finished %]
    [% IF build.resultInfo.buildstatus == 0 %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <strong>Success</strong>
    [% ELSIF build.resultInfo.buildstatus == 1 %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <span class="error">Build returned a non-zero exit code</span>
    [% ELSIF build.resultInfo.buildstatus == 2 %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <span class="error">A dependency of the build failed</span>
    [% ELSIF build.resultInfo.buildstatus == 4 %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <span class="error">Cancelled by user</span>
    [% ELSIF build.resultInfo.buildstatus == 5 %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <span class="error">Build inhibited because a dependency previously failed to build</span>
    [% failedDep = build.resultInfo.failedDep %]
    (namely, <a href="[% c.uri_for('/build' failedDep.build.id 'nixlog' failedDep.stepnr) %]"><tt>[% failedDep.outpath %]</tt></a>)
    [% ELSIF build.resultInfo.buildstatus == 6 %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <span class="error">Build failed (with result)</span>
    [% ELSE %]
    [% INCLUDE renderBuildStatusIcon size=16 %]
    <span class="error">Build failed</span>
    (see <a href="#nix-error">below</a>)
    [% END %]
    [% 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">
    <button id="restart" type="submit">Restart</button>
    </form>
    [% END %]
    [% ELSIF build.schedulingInfo.busy %]
    <strong>Build in progress</strong>
    since [% INCLUDE renderDateTime timestamp = build.schedulingInfo.starttime %]
    [% ELSE %]
    <strong>Scheduled to be built</strong>
    [% IF c.user_exists %]
    <form action="[% c.uri_for('/build' build.id 'cancel') %]" method="post" class="inline">
    <button id="cancel" type="submit">Cancel</button>
    </form>
    [% END %]
    [% END %]