{% load aircox i18n %} {% block user-actions-container %} {% has_obj_perm page page.program.change_permission_codename simple=True as can_edit %} {% if user.is_authenticated %} {{ object.get_status_display }} {% if object.pub_date %} ({{ object.pub_date|date:"d/m/Y H:i" }}) {% endif %} {% endif %} {% if user.is_authenticated and can_edit %} {% with request.resolver_match.view_name as view_name %}   {% if "-edit" in view_name %} {% translate 'View' %} {% else %} {% translate 'Edit' %} {% endif %} {% endwith %} {% endif %} {% endblock %}