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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {% macro bot_dimensions(bot) %}
2 {% if bot %}{{ render_dict(bot.dimensions) }}{% endif %}
3 {% endmacro %}
4
5 {% macro render_dict(data) %}
6 {% if data %}
7 {% for k, v in data.iteritems()|sort %}
8 <strong>{{k}}</strong>:
9 {% if v is string %}
10 {{v}}
11 <br>
12 {% elif v is mapping %}
13 <br>{{render_dict_idented(v, '&nbsp;&nbsp;')}}
14 {% elif v is sequence %}
15 {{v|sort|join(' | ')}}
16 <br>
17 {% else %}
18 {{v}}
19 <br>
20 {% endif %}
21 {% endfor %}
22 {% endif %}
23 {% endmacro %}
24
25 {% macro render_dict_idented(data, indent) %}
26 {% if data %}
27 {% for k, v in data.iteritems()|sort %}
28 {{indent|safe}}<strong>{{k}}</strong>:
29 {% if v is string %}
30 {{v}}<br>
31 {% elif v is mapping %}
32 <br>{{render_dict_idented(v, indent + '&nbsp;&nbsp;')}}
33 {% elif v is sequence %}
34 {{v|join(' | ')}}<br>
35 {% else %}
36 {{v}}<br>
37 {% endif %}
38 {% endfor %}
39 {% endif %}
40 {% endmacro %}
41
42 {% macro bot_link(bot_id, is_privileged_user) %}
43 {% if bot_id %}
44 {% if is_privileged_user %}
45 <a href="/restricted/bot/{{bot_id}}">{{bot_id}}</a>
46 {% else %}
47 {{bot_id}}
48 {% endif %}
49 {% else %}
50 &#8209;&#8209;
51 {% endif %}
52 {% endmacro %}
53
54 {% macro pending_star(task) %}
55 {% if task.is_pending %}*{% endif %}
56 {% endmacro %}
57
58 {% macro running_star(task) %}
59 {% if task.is_running %}*{% endif %}
60 {% endmacro %}
OLDNEW
« 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