{% load i18n %} {% load wagtailadmin_tags %} {% comment %} Expects a variable 'page', a page object. Tests whether that page is locked for editing, and if so, outputs a 'locked' icon. {% endcomment %} {% if page.locked %} {% icon name="lock" classname="initial" %} {% endif %}