github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/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}}{% endif %}
    24    % else
    25      {{finished['result']}}{% endif %}
    26  </span></a>
    27  % elif started and 'timestamp' in started
    28  {{started['timestamp'] | timestamp}}</a>
    29  % endif
    30    % for issue in refs[loc]
    31      <a href="{{issue.url}}" title="{{issue.title}}">#{{issue.number}}</a>
    32    % endfor
    33  <br>
    34  % endfor
    35  % if 'directory' in job_dir or '/pull/' not in job_dir
    36  <br>
    37  % if before
    38  <a href="?" rel="nofollow">View latest builds...</a><br>
    39  % endif
    40  % if builds
    41  <a href="?before={{builds[-1][0]}}" rel="nofollow">View earlier builds...</a><br>
    42  % endif
    43  % endif
    44  </div>
    45  % endblock