| OLD | NEW |
| (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, ' ')}} | |
| 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 + ' ')}} | |
| 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 ‑‑ | |
| 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 %} | |
| OLD | NEW |