| OLD | NEW |
| (Empty) | |
| 1 {% extends "templates/base.html" %} |
| 2 {% import "templates/macros.html" as macros %} |
| 3 {% block content %} |
| 4 <h2>Recent Lease Requests</h2> |
| 5 {% if next_page_token %} |
| 6 <a href="/leases?page_token={{next_page_token}}">Next page</a> |
| 7 {% endif %} |
| 8 <table> |
| 9 <tr> |
| 10 <th>Requester</th> |
| 11 <th>Requested Dimensions</th> |
| 12 <th>On Lease</th> |
| 13 <th>State</th> |
| 14 <th>Machine ID</th> |
| 15 <th>Last Modified (UTC)</th> |
| 16 </tr> |
| 17 {% for lease_request in lease_requests %} |
| 18 <tr> |
| 19 <td>{{lease_request.owner.name}}</td> |
| 20 <td>{{macros.render_message(lease_request.request.dimensions)}}</td> |
| 21 <td>{{macros.render_message(lease_request.request.on_lease)}}</td> |
| 22 <td> |
| 23 {{lease_request.response.state}} |
| 24 {% if lease_request.response.lease_expiration_ts %} |
| 25 until {{lease_request.response.lease_expiration_ts}} |
| 26 {% if lease_request.response.lease_expiration_ts <= now_ts %} |
| 27 (reclaimed) |
| 28 {% endif %} |
| 29 {% endif %} |
| 30 </td> |
| 31 <td> |
| 32 {% if lease_request.machine_id %} |
| 33 <a href="/catalog/{{lease_request.machine_id}}">{{lease_request.machine_id
}}</a> |
| 34 {% endif %} |
| 35 </td> |
| 36 <td>{{lease_request.last_modified_ts}}</td> |
| 37 </tr> |
| 38 {% endfor %} |
| 39 </table> |
| 40 {% if next_page_token %} |
| 41 <a href="/leases?page_token={{next_page_token}}">Next page</a> |
| 42 {% endif %} |
| 43 {% endblock %} |
| OLD | NEW |