{% block page %}
    <div class="{% block page_class %}management-page{% endblock %}">
        <header>
            <div class="title-with-actions">
                <div class="title">
                    <h2>{% block title %}{% endblock %}</h2>
                    {% if self.subtitle() -%}
                        <h3>{% block subtitle %}{% endblock %}</h3>
                    {% endif %}
                </div>
                <div class="actions">
                    {% if self.page_actions() %}
                        {% block page_actions %}{% endblock %}
                    {% endif %}
                </div>
            </div>
            {% if self.description() -%}
                <div class="description">
                    {% block description %}{% endblock %}
                </div>
            {% endif %}
        </header>
        <div class="page-content">
            {% block content %}{% endblock %}
        </div>
    </div>
{% endblock %}

{% block page %}
    <div class="{% block page_class %}management-page{% endblock %}">
        <header>
            <div class="{% if self.page_actions() %}title-with-actions{% endif %}">
                <div class="title">
                    <h2>{% block title %}{% endblock %}</h2>
                    {% if self.subtitle() -%}
                        <h3>{% block subtitle %}{% endblock %}</h3>
                    {% endif %}
                </div>
                {% if self.page_actions() %}
                    <div class="actions">
                        {% block page_actions %}{% endblock %}
                    </div>
                {% endif %}
            </div>
            {% if self.description() -%}
                <div class="description">
                    {% block description %}{% endblock %}
                </div>
            {% endif %}
        </header>
        <div class="page-content">
            {% block content %}{% endblock %}
        </div>
    </div>
{% endblock %}

Add header class when necessary
Add header class when necessary
