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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/machine_provider/templates/base.html ('k') | appengine/machine_provider/templates/leases.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/machine_provider/templates/catalog.html
diff --git a/appengine/machine_provider/templates/catalog.html b/appengine/machine_provider/templates/catalog.html
new file mode 100644
index 0000000000000000000000000000000000000000..be91cf8a85c224fec78b30439e513e4db9564cfc
--- /dev/null
+++ b/appengine/machine_provider/templates/catalog.html
@@ -0,0 +1,41 @@
+{% extends "templates/base.html" %}
+{% import "templates/macros.html" as macros %}
+{% block content %}
+<h2>Catalog</h2>
+{% if next_page_token %}
+ <a href="/catalog?page_token={{next_page_token}}">Next page</a>
+{% endif %}
+<table>
+ <tr>
+ <th>Backend</th>
+ <th>Hostname</th>
+ <th>Dimensions</th>
+ <th>State</th>
+ <th>Lease ID</th>
+ </tr>
+ {% for machine in machines %}
+ <tr>
+ <td>{{machine.dimensions.backend}}</td>
+ <td>{{machine.dimensions.hostname}}</td>
+ <td>{{macros.render_message(machine.dimensions)}}</td>
+ <td>
+ {{machine.state}}
+ {% if machine.lease_expiration_ts %}
+ until {{machine.lease_expiration_ts}}
+ {% if machine.lease_expiration_ts <= now %}
+ (expired)
+ {% endif %}
+ {% endif %}
+ </td>
+ <td>
+ {% if machine.lease_id %}
+ <a href="/leases/{{machine.lease_id}}">{{machine.lease_id}}</a>
+ {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
+</table>
+{% if next_page_token %}
+ <a href="/catalog?page_token={{next_page_token}}">Next page</a>
+{% endif %}
+{% endblock %}
« no previous file with comments | « appengine/machine_provider/templates/base.html ('k') | appengine/machine_provider/templates/leases.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698