<div class="maturity-gate" role="note">
    <h3>Hidden: {{ _level }} content</h3>
    <p>This item is labelled <strong>{{ _level }}</strong>. It stays hidden until you choose to see this kind of content.</p>
    {% if user %}
    {% if _level == 'restricted' and (user.get('age_band') not in ('adult', '', none)) %}
    <p>Your account's age band does not allow restricted content.</p>
    {% else %}
    <a href="/profile/{{ user['username'] }}?tab=privacy" class="btn btn-secondary btn-sm">Change this in privacy settings</a>
    {% endif %}
    {% else %}
    <a href="/auth/login" class="btn btn-secondary btn-sm">Log in to change this</a>
    {% endif %}
</div>
