{# @todo Refactor this template #} {% extends "frames/default.html.twig" %} {% set layer = requested_action_service.getLayer()%} {% set headline = (layer|trans|capitalize)~': ' %} {% if requested_action_service.hasRequestedEntity() and requested_action_service.getRequestedEntity().hasIdentity() %} {% set entity = requested_action_service.getRequestedEntity().getEntity() %} {% if entity.hasSlug is defined and entity.hasSlug %} {% set headline = headline~entity.slug %} {% endif %} {% set headline = headline~'#'~entity.id %} {% endif %} {% block title %} {{ headline }} {% endblock %} {% block content %}