Generalize lazy tabs

[?]
Feb 22, 2013, 12:36 PM
QCGCX2BRDJ3MECT45M6KUQDSTVXWRHGLD4KKNG5UOCOTNAW7L3TQC

Dependencies

  • [2] ASIRNHAH Load the dependency tabs on demand
  • [3] 44AGCSXK Use a proper spinning wheel icon
  • [4] 36M6DGIT Show the runtime/build dependencies in the build page
  • [5] YPDYBK5G Show dependencies as a tree rather than a list
  • [6] OEPUOUNB Using twitter bootstrap for more consistent looks for Hydra
  • [7] BD3GRK4B * Get rid of "positive failures" and separate log phases.
  • [8] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [9] 2R7GHSA4 * hydra: added initial version of build graph
  • [10] J5UVLXOK * Start of a basic Catalyst web interface.
  • [11] VCOSLZRP
  • [12] 4WZQW2N6 Fix indentation and get rid of some unnecessary whitespace in the output
  • [13] RO7REZL3 Remove unnecessary Javascript code
  • [14] 2GUAKGTB Fix indentation of build.tt
  • [15] WHAFVCEI
  • [*] IK53RV4V

Change contents

  • replacement in src/root/build.tt at line 516
    [4.1337][3.0:144]()
    <div id="tabs-build-deps" class="tab-pane">
    <center><img src="/static/images/ajax-loader.gif" alt="Loading..." /></center>
    </div>
    [4.1337]
    [4.1539]
    [% INCLUDE makeLazyTab tabName="tabs-build-deps" uri=c.uri_for('/build' build.id 'build-deps') %]
  • replacement in src/root/build.tt at line 520
    [4.1573][3.145:291]()
    <div id="tabs-runtime-deps" class="tab-pane">
    <center><img src="/static/images/ajax-loader.gif" alt="Loading..." /></center>
    </div>
    [4.1573]
    [4.17954]
    [% INCLUDE makeLazyTab tabName="tabs-runtime-deps" uri=c.uri_for('/build' build.id 'runtime-deps') %]
  • edit in src/root/build.tt at line 524
    [4.14475][4.1206:1207](),[4.1206][4.1206:1207](),[4.1207][2.20:470]()
    <script>
    $(function() {
    $('.nav-tabs').bind('show', function(e) {
    var pattern = /#.+/gi;
    var id = e.target.toString().match(pattern)[0];
    if (id == "#tabs-runtime-deps") {
    $('#tabs-runtime-deps').load("[% c.uri_for('/build' build.id 'runtime-deps') %]");
    } else if (id == "#tabs-build-deps") {
    $('#tabs-build-deps').load("[% c.uri_for('/build' build.id 'build-deps') %]");
    }
    });
    });
    </script>
  • replacement in src/root/common.tt at line 451
    [4.1546][4.1546:1556]()
    [% END %]
    [4.1546]
    [% END;
    BLOCK makeLazyTab %]
    <div id="[% tabName %]" class="tab-pane">
    <center><img src="/static/images/ajax-loader.gif" alt="Loading..." /></center>
    </div>
    <script>
    $(function() {
    $('.nav-tabs').bind('show', function(e) {
    var pattern = /#.+/gi;
    var id = e.target.toString().match(pattern)[0];
    if (id == "#[% tabName %]") {
    $('#[% tabName %]').load("[% uri %]");
    }
    });
    });
    </script>
    [% END;
    %]