Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: appengine/machine_provider/templates/leases.html

Issue 2196623004: Add basic Machine Provider UI (Closed) Base URL: https://github.com/luci/luci-py.git@master
Patch Set: Fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 %}
OLDNEW
« no previous file with comments | « appengine/machine_provider/templates/catalog.html ('k') | appengine/machine_provider/templates/root.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698