github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/gubernator/templates/pr.html (about) 1 % extends 'base.html' 2 {% block title %}PR #{{pr}}{% endblock %} 3 % block header 4 <h1><a href="https://github.com/{{org}}/{{repo}}/pull/{{pr}}">{{org}}/{{repo}}#{{pr}}</a> Test Results</h1> 5 % endblock 6 % block content 7 % if digest 8 % set pl = digest.payload 9 <center><h3><a href="/pr/{{pl['author']}}">{{pl['author']}}</a>: {{pl['title']}}</h3></center> 10 11 % endif 12 % if not rows 13 <h2>No Results</h2> 14 % else 15 <table class="pr"> 16 <thead> 17 <tr><th>Job</th><th colspan="{{max_builds}}">Build</th></tr> 18 <tr class="pr-version"><td></td> 19 {%- for version, width, started in header -%} 20 <th{% if width != 1 %} colspan="{{width}}"{% endif %}>{{version|github_commit_link("%s/%s" % (org, repo))}}<br>{{started|shorttimestamp}}</th> 21 {% endfor %} 22 </thead> 23 % for job, results in rows 24 <tr><td>{{job or ''}}</td> 25 % for result in results 26 % if result == None 27 <td></td> 28 % else 29 % set build, status = result 30 <td class="build-{{status | slugify}}"> 31 <a href="/build/{{path}}/{{job}}/{{build}}/" title="Result: {{status}}">{{build}}</a> 32 </td> 33 % endif 34 % endfor 35 </tr> 36 % endfor 37 % endif 38 % endblock