Fix indentation

[?]
Feb 22, 2013, 10:55 AM
WGUKOIQZOQ64I6OJHGR4RSRI2HPH4RXADNSPFBWRETKO7OWCET4QC

Dependencies

  • [2] 6UESWI2Q Ensure that the first tab is selected
  • [3] ODNCGFQ5 * Improved the navigation bar: don't include all projects (since that
  • [4] 777XFGVY Hydra/22: on job page, 'finished builds' shows nothing for old (non-current) jobs
  • [5] OEPUOUNB Using twitter bootstrap for more consistent looks for Hydra
  • [6] FN6V3C7M always show latest 10 builds on job page
  • [7] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [8] 3PNG7NIB Remove trailing whitespace
  • [9] G5YSUSNZ In build tables, hide the project, jobset and/or job name if they're constant
  • [10] 3BNEHVKO used wrong builds collection for determining if we need to show current build section in job page

Change contents

  • edit in src/root/job.tt at line 4
    [3.644]
    [3.7779]
    <ul class="nav nav-tabs">
    <li class="active"><a href="#tabs-status" data-toggle="tab">Status</a></li>
    <li><a href="#tabs-channels" data-toggle="tab">Channels</a></li>
    <li><a href="#tabs-latestbuilds" data-toggle="tab">Latest builds</a></li>
    </ul>
  • edit in src/root/job.tt at line 11
    [3.7780][2.129:255](),[2.255][3.22133:22318](),[3.22133][3.22133:22318]()
    <ul class="nav nav-tabs">
    <li class="active"><a href="#tabs-status" data-toggle="tab">Status</a></li>
    <li><a href="#tabs-channels" data-toggle="tab">Channels</a></li>
    <li><a href="#tabs-latestbuilds" data-toggle="tab">Latest builds</a></li>
    </ul>
  • edit in src/root/job.tt at line 12
    [3.3980][3.22319:22374](),[3.4028][3.645:690](),[3.22374][3.645:690](),[3.18237][3.645:690](),[3.690][3.22375:22520](),[3.358][3.1119:1186](),[3.22520][3.1119:1186](),[3.1119][3.1119:1186](),[3.1186][3.22521:22688](),[3.22688][3.359:401](),[3.1332][3.359:401](),[3.401][3.22689:22967]()
    <div id="tabs-status" class="tab-pane active">
    [% IF currentBuilds.size != 0 %]
    <h2>Latest builds (latest evaluation)</h2>
    [% INCLUDE renderBuildList builds=currentBuilds showStatusChange=0 %]
    [% END %]
    [% IF runningBuilds.size != 0 %]
    <h2>Running builds</h2>
    [% INCLUDE renderBuildList builds=runningBuilds showSchedulingInfo=1 hideResultInfo=1 %]
    [% END %]
    [% IF lastBuilds.size != 0 %]
    <h2>Last 10 builds</h2>
    [% INCLUDE renderBuildList builds=lastBuilds showStatusChange=0 %]
    [% END %]
    </div>
    <div id="tabs-channels" class="tab-pane">
    <p>This job provides the following Nix channel:</p>
  • replacement in src/root/job.tt at line 13
    [3.22968][3.22968:23867]()
    <ul>
    <li>
    <a href="[% c.uri_for('/job' project.name jobset.name job.name
    'channel' 'latest') %]"><tt>latest</tt></a> — contains the latest
    successful build for each platform.
    </li>
    </ul>
    </div>
    <div id="tabs-latestbuilds" class="tab-pane">
    <ul>
    <li><a href="[% c.uri_for('/job' project.name jobset.name job.name
    'latest') %]">Latest successful build.</a></li>
    [% FOREACH system IN systems %]
    <li><a href="[% c.uri_for('/job' project.name jobset.name job.name
    'latest-for' system.system) %]">Latest successful build for <tt>[%
    system.system %]</tt>.</a></li>
    [% END %]
    </ul>
    </div>
    [3.22968]
    [3.19465]
    <div id="tabs-status" class="tab-pane active">
    [% IF currentBuilds.size != 0 %]
    <h2>Latest builds (latest evaluation)</h2>
    [% INCLUDE renderBuildList builds=currentBuilds showStatusChange=0 %]
    [% END %]
    [% IF runningBuilds.size != 0 %]
    <h2>Running builds</h2>
    [% INCLUDE renderBuildList builds=runningBuilds showSchedulingInfo=1 hideResultInfo=1 %]
    [% END %]
    [% IF lastBuilds.size != 0 %]
    <h2>Last 10 builds</h2>
    [% INCLUDE renderBuildList builds=lastBuilds showStatusChange=0 %]
    [% END %]
    </div>
    <div id="tabs-channels" class="tab-pane">
    <p>This job provides the following Nix channel:</p>
    <ul>
    <li>
    <a href="[% c.uri_for('/job' project.name jobset.name job.name
    'channel' 'latest') %]"><tt>latest</tt></a> — contains the latest
    successful build for each platform.
    </li>
    </ul>
    </div>
    <div id="tabs-latestbuilds" class="tab-pane">
    <ul>
    <li><a href="[% c.uri_for('/job' project.name jobset.name job.name
    'latest') %]">Latest successful build.</a></li>
    [% FOREACH system IN systems %]
    <li><a href="[% c.uri_for('/job' project.name jobset.name job.name 'latest-for' system.system) %]">Latest successful build for <tt>[% system.system %]</tt>.</a></li>
    [% END %]
    </ul>
    </div>