| OLD | NEW |
| (Empty) | |
| 1 {% extends "templates/base.html" %} |
| 2 {% import "templates/macros.html" as macros %} |
| 3 {% block content %} |
| 4 <h2>Catalog</h2> |
| 5 {% if next_page_token %} |
| 6 <a href="/catalog?page_token={{next_page_token}}">Next page</a> |
| 7 {% endif %} |
| 8 <table> |
| 9 <tr> |
| 10 <th>Backend</th> |
| 11 <th>Hostname</th> |
| 12 <th>Dimensions</th> |
| 13 <th>State</th> |
| 14 <th>Lease ID</th> |
| 15 </tr> |
| 16 {% for machine in machines %} |
| 17 <tr> |
| 18 <td>{{machine.dimensions.backend}}</td> |
| 19 <td>{{machine.dimensions.hostname}}</td> |
| 20 <td>{{macros.render_message(machine.dimensions)}}</td> |
| 21 <td> |
| 22 {{machine.state}} |
| 23 {% if machine.lease_expiration_ts %} |
| 24 until {{machine.lease_expiration_ts}} |
| 25 {% if machine.lease_expiration_ts <= now %} |
| 26 (expired) |
| 27 {% endif %} |
| 28 {% endif %} |
| 29 </td> |
| 30 <td> |
| 31 {% if machine.lease_id %} |
| 32 <a href="/leases/{{machine.lease_id}}">{{machine.lease_id}}</a> |
| 33 {% endif %} |
| 34 </td> |
| 35 </tr> |
| 36 {% endfor %} |
| 37 </table> |
| 38 {% if next_page_token %} |
| 39 <a href="/catalog?page_token={{next_page_token}}">Next page</a> |
| 40 {% endif %} |
| 41 {% endblock %} |
| OLD | NEW |