Skip to content

Commit bf4b067

Browse files
committed
Still deprecate slaveof
1 parent a170efd commit bf4b067

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

templates/command-page.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
{% set command_title = command_obj_name %}
2626
{% endif %}
2727
{% 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 %}
2831
{% else %}
2932
{% set command_data_error = "ERROR. Command JSON Not loaded." %}
3033
{% endif %}
@@ -33,7 +36,7 @@
3336
{% block subhead_content%}
3437
{% if command_title%}
3538
<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>
3740
</div>
3841
{% endif %}
3942
{% endblock subhead_content%}
@@ -168,7 +171,7 @@ <h1 class="page-title">{{ command_title }}</h1>
168171
<code>ERROR. Command description not loaded</code><br />
169172
{% endif %}
170173
{% if command_data_obj.replaced_by %}
171-
<h3>Deprecation advice</h3>
174+
<h3>{% if deprecated %}Deprecation advice{% else %}Similar command{% endif %}</h3>
172175
Instead of using <code>{{ command_title }}</code> use <div class="replaced-by">{{ command_data_obj.replaced_by | markdown | safe }}</div>
173176

174177
{% endif %}

0 commit comments

Comments
 (0)