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

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

Issue 2196623004: Add basic Machine Provider UI (Closed) Base URL: https://github.com/luci/luci-py.git@master
Patch Set: 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>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 (reclaiming)
M-A Ruel 2016/07/30 01:41:58 (expired) would be a better term, because reclaimi
smut 2016/08/02 23:26:33 Done.
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 %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698