{% load i18n %} {% if page.get_view_restrictions %} {% if page.get_view_restrictions.first.restriction_type == "login" %} {% translate "Page visibility restricted to logged in users only" as page_visibility %} {% elif page.get_view_restrictions.first.restriction_type == "groups" %} {% translate "Page visibility restricted by group" as page_visibility %} {% elif page.get_view_restrictions.first.restriction_type == "password" %} {% translate "Page visibility restricted by password" as page_visibility %} {% else %} {% translate "Page with restricted visibility" as page_visibility %} {% endif %} {% endif %}