File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 25
25
{% set command_title = command_obj_name %}
26
26
{% endif %}
27
27
{% set command_title = command_title | upper %}
28
+ {% if command_data_obj.deprecated_since and ("MASTER" in command_title or "SLAVE" in command_title) %}
29
+ {% set deprecated = "Deprecated" %}
30
+ {% endif %}
28
31
{% else %}
29
32
{% set command_data_error = "ERROR. Command JSON Not loaded." %}
30
33
{% endif %}
33
36
{% block subhead_content%}
34
37
{% if command_title%}
35
38
< div class ="styled-title ">
36
- < h1 class ="page-title "> {{ command_title }}</ h1 >
39
+ < h1 class ="page-title "> {{ command_title }} {% if deprecated %} < small > {{ deprecated }} </ small > {% endif %} </ h1 >
37
40
</ div >
38
41
{% endif %}
39
42
{% endblock subhead_content%}
@@ -168,7 +171,7 @@ <h1 class="page-title">{{ command_title }}</h1>
168
171
< code > ERROR. Command description not loaded</ code > < br />
169
172
{% endif %}
170
173
{% if command_data_obj.replaced_by %}
171
- < h3 > Deprecation advice</ h3 >
174
+ < h3 > {% if deprecated %} Deprecation advice{% else %}Similar command{% endif %} </ h3 >
172
175
Instead of using < code > {{ command_title }}</ code > use < div class ="replaced-by "> {{ command_data_obj.replaced_by | markdown | safe }}</ div >
173
176
174
177
{% endif %}
You can’t perform that action at this time.
0 commit comments