{# Variables - notification - trackables - logs - permissions - security - entityViews - contacts - dateRangeForm #} {% extends '@MauticCore/Default/content.html.twig' %} {% block mauticContent %}notification{% endblock %} {% block headerTitle %}{{ notification.name }}{% endblock %} {% block preHeader %} {{- include('@MauticCore/Helper/page_actions.html.twig', { 'item' : notification, 'templateButtons' : { 'close' : securityHasEntityAccess(permissions['notification:mobile_notifications:viewown'], permissions['notification:mobile_notifications:viewother'], notification.createdBy), }, 'routeBase' : 'mobile_notification', 'targetLabel' : 'mautic.notification.mobile_notifications'|trans } ) -}} {{ include('@MauticCore/Modules/category--inline.html.twig', {'category': notification.category}) }} {% endblock %} {% block actions %} {{- include('@MauticCore/Helper/page_actions.html.twig', { 'item': notification, 'templateButtons': { 'edit': securityHasEntityAccess(permissions['notification:mobile_notifications:editown'], permissions['notification:mobile_notifications:editother'], notification.createdBy), 'delete': permissions['notification:mobile_notifications:create'], }, 'routeBase': 'mobile_notification', }) -}} {% endblock %} {% block publishStatus %} {{ include('@MauticCore/Helper/publishstatus_badge.html.twig', {'entity': notification}, with_context=false) }} {% set tags = [] %} {# Translation tags #} {% set tags = tags |merge(notification.isTranslation and not notification.isTranslation(true) ? [{ color: 'warm-gray', label: 'mautic.core.icon_tooltip.translation' }] : []) |merge(notification.isTranslation(true) ? [{ color: 'warm-gray', label: 'mautic.core.translation_of'|trans({'%parent%' : translations.parent.name}), icon: 'ri-translate' }] : []) %} {% include '@MauticCore/Helper/_tag.html.twig' with { tags: tags } %} {% endblock %} {% set translationContent = include('@MauticCore/Translation/index.html.twig', { 'activeEntity' : notification, 'translations' : translations, 'model' : 'notifications', 'actionRoute' : 'mautic_mobile_notification_action', } ) %} {% set showTranslations = translationContent|trim is not empty %} {% block content %}