gstepanov | cd77d5a | 2015-02-06 14:49:34 +0200 | [diff] [blame] | 1 | {% extends "base.html" %} |
| 2 | <html> |
| 3 | <head> |
| 4 | {% block head %} |
| 5 | {{ super() }} |
| 6 | <title>Table of results</title> |
| 7 | {% endblock %} |
| 8 | </head> |
| 9 | <body> |
| 10 | {% block body %} |
| 11 | <h1 align="center">Lab name goes here:-)</h1> |
| 12 | <div class="table-responsive"> |
| 13 | <table class="table" width="600"> |
| 14 | <div id="images"> |
| 15 | {% for url in urls %} |
| 16 | <img src="{{ url }}"> |
| 17 | {% endfor %} |
| 18 | </div> |
| 19 | {% for header in headers %} |
| 20 | <th> |
| 21 | <h2>{{ header }}</h2> |
| 22 | </th> |
| 23 | {% endfor %} |
| 24 | {% for row in table %} |
| 25 | <tr> |
| 26 | {% for data in row %} |
| 27 | <td> |
| 28 | {{ data }} |
| 29 | </td> |
| 30 | {% endfor %} |
| 31 | </tr> |
| 32 | {% endfor %} |
| 33 | </table> |
| 34 | </div> |
| 35 | <h2 align="center"> |
| 36 | <a href="{{ table_url }}">Details</a> |
| 37 | </h2> |
| 38 | {% endblock %} |
| 39 | </body> |
| 40 | </html> |