{% load wagtailcore_tags i18n %} {% translate "Restricted access" as restricted_access_label %} {% for subpage in pagelist.get_children.live %} {% if not subpage.get_view_restrictions or user.is_authenticated %}
  • {% if subpage.get_view_restrictions %} {% endif %} {{ subpage.title }} {% if subpage.get_view_restrictions %}({{ restricted_access_label }}){% endif %} {% if subpage.get_children.count > 0 %} {% endif %}
  • {% endif %} {% endfor %}