Load the dependency tabs on demand

[?]
Feb 20, 2013, 5:13 PM
ASIRNHAHLLITDIL4T6OTHA3AERVAO2GP3SFFPLZGT63NGDW3ZLNQC

Dependencies

  • [2] 36M6DGIT Show the runtime/build dependencies in the build page
  • [3] 2R7GHSA4 * hydra: added initial version of build graph
  • [4] 3PNG7NIB Remove trailing whitespace
  • [5] 2GUAKGTB Fix indentation of build.tt
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] WHAFVCEI

Change contents

  • replacement in src/root/build.tt at line 106
    [3.3025][2.1050:1070]()
    g <tr>
    [3.3025]
    [3.3044]
    <tr>
  • edit in src/root/build.tt at line 511
    [2.1427][2.1427:1539]()
    <script>
    $('#tabs-build-deps').load("[% c.uri_for('/build' build.id 'build-deps') %]");
    </script>
  • edit in src/root/build.tt at line 515
    [2.1665][2.1665:1781]()
    <script>
    $('#tabs-runtime-deps').load("[% c.uri_for('/build' build.id 'runtime-deps') %]");
    </script>
  • edit in src/root/build.tt at line 519
    [8.1207]
    [7.8444]
    <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>