{# @todo Refactor this template #}
{% set layer = requested_action_service.getLayer()%}
{% set headline = (layer|trans|capitalize) %}
{% if requested_action_service.hasRequestedEntity() and requested_action_service.getRequestedEntity().hasIdentity() %}
	{% set headline = headline~': ' %}
	{% 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 %}
{% extends "frames/default.html.twig" %}
{% block title %}
	{{ headline }} 
{% endblock %}
{% block content %}
    {% include "entity/_entity.html.twig" %}
{% endblock %}