1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Test Results</title> 5 <link type="text/css" rel="stylesheet" href="/stylesheets/testfile.css" /> 6 </head> 7 <body> 8 <h1>Test Results 9 {% if builder or test_type or name %} 10 - {{ builder }} {{test_type }} {{ name }} 11 {% endif %} 12 </h1> 13 <div> 14 <table> 15 <tr> 16 <th>Master</th> 17 <th>Builder</th> 18 <th>Test Type</th> 19 <th>File</th> 20 <th>Date</th> 21 {% if admin %} 22 <th></th> 23 {% endif %} 24 {% for file in files %} 25 <tr>{% if file.builder and file.name %} 26 <td><a href="/testfile?master={{ file.master }}" > 27 {{ file.master }} 28 </a> 29 </td> 30 <td><a href="/testfile?builder={{ file.builder }}" > 31 {{ file.builder }} 32 </a> 33 </td> 34 <td>{% if file.test_type %} 35 <a href="/testfile?testtype={{ file.test_type }}" > 36 {{ file.test_type }} 37 </a> 38 {% endif %} 39 </td> 40 <td><a href="/testfile?builder={{ file.builder }}&name={{ file.name }}" > 41 {{ file.name }} 42 </a> 43 </td> 44 <td>{{ file.date|date:"d-M-Y H:i:s" }} 45 </td> 46 {% if admin %} 47 <td><a href="/testfile/delete?key={{ file.key }}&builder={{ builder }}&name={{ name }}" > 48 Delete 49 </a> 50 </td> 51 {% endif %} 52 {% endif %} 53 </tr> 54 {% endfor %} 55 </table> 56 </div> 57 </body> 58 </html> 59