Turn repeated dependencies into hyperlinks

[?]
Feb 20, 2013, 12:28 AM
7IJXKGHDJRP4V72E37GRKA4EVC7QO7QCVLCKMUY2EJS4U4IAYS5AC

Dependencies

  • [2] HQ54SEMS Add more spacing between products
  • [3] 5NHZT4UH Render the dependencies as a tree
  • [4] YPDYBK5G Show dependencies as a tree rather than a list
  • [5] XDDCO6CH * hydra: add dependency list with links to logfiles
  • [6] ZHHFJ4K5 Simplify the tree implementation a bit more
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • replacement in src/root/deps.tt at line 5
    [4.1814][4.1814:1894]()
    [% project = build.project %]
    [% jobset = build.jobset %]
    [% job = build.job %]
    [4.1814]
    [4.1894]
    [% project = build.project;
    jobset = build.jobset;
    job = build.job;
    global.nodeId = 1 %]
  • replacement in src/root/deps.tt at line 13
    [4.1612][3.8:59]()
    <tt>[% node.name %]</tt> (<em>repeated</em>)
    [4.1612]
    [4.2190]
    <a href="#[% done.${node.path} %]"><tt>[% node.name %]</tt></a>
  • replacement in src/root/deps.tt at line 15
    [4.2205][4.1671:1705]()
    [% done.${node.path} = 1 %]
    [4.2205]
    [3.60]
    [% done.${node.path} = global.nodeId; global.nodeId = global.nodeId + 1; %]
  • replacement in src/root/deps.tt at line 19
    [3.165][3.165:562]()
    [% IF node.buildStep %]
    <a href="[% c.uri_for('/build' node.buildStep.get_column('build')) %]"><tt>[% node.name %]</tt></a> [%
    IF log_exists(node.buildStep.drvpath);
    INCLUDE renderLogLinks url=c.uri_for('/build' node.buildStep.get_column('build') 'nixlog' node.buildStep.stepnr);
    END %]
    [% ELSE %]
    <tt>[% node.name %]</tt>
    [% END %]
    [3.165]
    [4.2139]
    <span class="dep-tree-line" id="[% done.${node.path} %]">
    [% IF node.buildStep %]
    <a href="[% c.uri_for('/build' node.buildStep.get_column('build')) %]"><tt>[% node.name %]</tt></a> [%
    IF log_exists(node.buildStep.drvpath);
    INCLUDE renderLogLinks url=c.uri_for('/build' node.buildStep.get_column('build') 'nixlog' node.buildStep.stepnr);
    END %]
    [% ELSE %]
    <tt>[% node.name %]</tt> (<em>no info</em>)
    [% END %]
    </span>
  • edit in src/root/static/css/hydra.css at line 27
    [2.83]
    span.dep-tree-line:target {
    background-color: #f8f8e0;
    font-style: italic;
    }