github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/gubernator/templates/build_list.html (about)

     1  % extends 'base.html'
     2  {% block title %}{{job}}{% endblock %}
     3  % block header
     4  <h1><a href="/jobs{{job_dir|dirname|dirname}}">{{job_dir|dirname|dirname}}</a>/{{job}}</h1>
     5  % endblock
     6  % block content
     7  <div id="content">
     8  % if testgrid_query
     9  <a href="{{testgrid_query | tg_url}}"><h3>Testgrid History for Job</h3></a>
    10  % endif
    11  <a href="{{job_dir | gcs_browse_url}}">GCS Storage Browser</a><br>
    12  % if '/pull/' in job_dir and 'directory' not in job_dir
    13  <a href="/builds/{{dir_link}}">Recent Runs Across PRs</a><br>
    14  % endif
    15  <h3>Builds</h3>
    16  % for build, loc, started, finished in builds
    17  <a href="/build{{loc}}/">{{build}}
    18  % if finished
    19    <span class="build-{{finished['result'] | slugify}}" title="Result: {{finished['result']}}">
    20    % if started and 'timestamp' in started
    21      {{started['timestamp'] | timestamp}}
    22      % if 'timestamp' in finished
    23          took {{(finished['timestamp']-started['timestamp'])|duration}}
    24      % endif
    25    % else
    26      {{finished['result']}}
    27    % endif
    28  </span>
    29  % elif started and 'timestamp' in started
    30  {{started['timestamp'] | timestamp}}
    31  % endif
    32  </a><br>
    33  % endfor
    34  % if 'directory' in job_dir or '/pull/' not in job_dir
    35  <br>
    36  % if before
    37  <a href="?" rel="nofollow">View latest builds...</a><br>
    38  % endif
    39  % if builds
    40  <a href="?before={{builds[-1][0]}}" rel="nofollow">View earlier builds...</a><br>
    41  % endif
    42  % endif
    43  </div>
    44  % endblock