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

Unified Diff: appengine/swarming/templates/bot_view.html

Issue 2500503002: Redirecting old ui to new ui (Closed)
Patch Set: Remove post handlers Created 4 years, 1 month 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/swarming/handlers_test.py ('k') | appengine/swarming/templates/restricted_bot.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/templates/bot_view.html
diff --git a/appengine/swarming/templates/bot_view.html b/appengine/swarming/templates/bot_view.html
deleted file mode 100644
index e1cbc7b6c78d20cec17d9def6649782ebcce5765..0000000000000000000000000000000000000000
--- a/appengine/swarming/templates/bot_view.html
+++ /dev/null
@@ -1,60 +0,0 @@
-{% macro bot_dimensions(bot) %}
- {% if bot %}{{ render_dict(bot.dimensions) }}{% endif %}
-{% endmacro %}
-
-{% macro render_dict(data) %}
- {% if data %}
- {% for k, v in data.iteritems()|sort %}
- <strong>{{k}}</strong>:
- {% if v is string %}
- {{v}}
- <br>
- {% elif v is mapping %}
- <br>{{render_dict_idented(v, '&nbsp;&nbsp;')}}
- {% elif v is sequence %}
- {{v|sort|join(' | ')}}
- <br>
- {% else %}
- {{v}}
- <br>
- {% endif %}
- {% endfor %}
- {% endif %}
-{% endmacro %}
-
-{% macro render_dict_idented(data, indent) %}
- {% if data %}
- {% for k, v in data.iteritems()|sort %}
- {{indent|safe}}<strong>{{k}}</strong>:
- {% if v is string %}
- {{v}}<br>
- {% elif v is mapping %}
- <br>{{render_dict_idented(v, indent + '&nbsp;&nbsp;')}}
- {% elif v is sequence %}
- {{v|join(' | ')}}<br>
- {% else %}
- {{v}}<br>
- {% endif %}
- {% endfor %}
- {% endif %}
-{% endmacro %}
-
-{% macro bot_link(bot_id, is_privileged_user) %}
- {% if bot_id %}
- {% if is_privileged_user %}
- <a href="/restricted/bot/{{bot_id}}">{{bot_id}}</a>
- {% else %}
- {{bot_id}}
- {% endif %}
- {% else %}
- &#8209;&#8209;
- {% endif %}
-{% endmacro %}
-
-{% macro pending_star(task) %}
- {% if task.is_pending %}*{% endif %}
-{% endmacro %}
-
-{% macro running_star(task) %}
- {% if task.is_running %}*{% endif %}
-{% endmacro %}
« no previous file with comments | « appengine/swarming/handlers_test.py ('k') | appengine/swarming/templates/restricted_bot.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698