|
1 | 1 | {% extends 'base.html.twig' %} |
2 | 2 | {% import 'Import/app_import.html.twig' as appImport %} |
3 | 3 |
|
4 | | -{% block head_title %}{{ 'cat'|trans }}{% if rows is defined or help is defined %} - {{ command }}{% endif %}{% endblock %} |
| 4 | +{% block head_title %}{{ 'cat'|trans }}{% if rows is defined or help is defined %} - {{ command_replace }}{% endif %}{% endblock %} |
5 | 5 |
|
6 | 6 | {% block heading_1 %} |
7 | 7 | {{ appImport.heading({'level': 1, 'title': 'cat'|trans}) }} |
|
29 | 29 | {% import 'Import/app_import.html.twig' as appImport %} |
30 | 30 | {% block content %} |
31 | 31 | {% if rows is defined %} |
32 | | - {{ appImport.heading({'level': 3, 'title': command, 'badge': {'title': rows.total}}) }} |
| 32 | + {{ appImport.heading({'level': 3, 'title': command_replace, 'badge': {'title': rows.total}}) }} |
33 | 33 | {% else %} |
34 | | - {{ appImport.heading({'level': 3, 'title': command}) }} |
| 34 | + {{ appImport.heading({'level': 3, 'title': command_replace}) }} |
35 | 35 | {% endif %} |
36 | 36 |
|
37 | 37 | {% if help is defined %} |
|
85 | 85 | {{ column }}{{ appImport.badge({'title': 'master'|trans, 'context': 'master_node'}) }} |
86 | 86 | {% elseif command in ['nodes', 'plugins'] and 'name' == k and master_node == column %} |
87 | 87 | {{ column }}{{ appImport.badge({'title': 'master'|trans, 'context': 'master_node'}) }} |
| 88 | + {% elseif 'status' == k and 'health' == command %} |
| 89 | + {{ appImport.badge({'title': column|trans, 'context': column}) }} |
| 90 | + {% elseif k in ['health', 'status'] and command in ['indices', 'indices/{index}'] %} |
| 91 | + {{ appImport.badge({'title': column|trans, 'context': column}) }} |
| 92 | + {% elseif 'state' == k and command in ['shards', 'shards/{index}'] %} |
| 93 | + {{ appImport.badge({'title': column|lower|trans, 'context': column|lower}) }} |
88 | 94 | {% else %} |
89 | 95 | {{ column }} |
90 | 96 | {% endif %} |
|
0 commit comments