diff --git a/templates/command-page.html b/templates/command-page.html index 5b4e0980..96d554ea 100644 --- a/templates/command-page.html +++ b/templates/command-page.html @@ -25,7 +25,7 @@ {% set command_title = command_obj_name %} {% endif %} {% set command_title = command_title | upper %} - {% if command_data_obj.deprecated_since %} + {% if command_data_obj.deprecated_since and ("MASTER" in command_title or "SLAVE" in command_title) %} {% set deprecated = "Deprecated" %} {% endif %} {% else %} @@ -171,7 +171,7 @@

{{ command_title }} {% if deprecated %} {{ depreca ERROR. Command description not loaded
{% endif %} {% if command_data_obj.replaced_by %} -

Deprecation advice

+

{% if deprecated %}Deprecation advice{% else %}Similar command{% endif %}

Instead of using {{ command_title }} use
{{ command_data_obj.replaced_by | markdown | safe }}
{% endif %}