add .body wrapper element
This change makes the notification email responsive.
This commit is contained in:
parent
030b10ca0d
commit
5b74bbd288
@ -10,54 +10,56 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<spacer size="32"></spacer>
|
<spacer size="32"></spacer>
|
||||||
<container class="body_{{ ("urgent" == importance ? "alert" : ("high" == importance ? "warning" : "default")) }}">
|
<wrapper class="body">
|
||||||
<spacer size="16"></spacer>
|
<container class="body_{{ ("urgent" == importance ? "alert" : ("high" == importance ? "warning" : "default")) }}">
|
||||||
<row>
|
|
||||||
<columns large="12" small="12">
|
|
||||||
{% block lead %}
|
|
||||||
<small><strong>{{ importance|upper }}</strong></small>
|
|
||||||
<p class="lead">
|
|
||||||
{{ email.subject }}
|
|
||||||
</p>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
{% if markdown %}
|
|
||||||
{{ include('@email/zurb_2/notification/content_markdown.html.twig') }}
|
|
||||||
{% else %}
|
|
||||||
{{ (raw ? content|raw : content)|nl2br }}
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block action %}
|
|
||||||
{% if action_url %}
|
|
||||||
<spacer size="16"></spacer>
|
|
||||||
<button href="{{ action_url }}">{{ action_text }}</button>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block exception %}
|
|
||||||
{% if exception %}
|
|
||||||
<spacer size="16"></spacer>
|
|
||||||
<p><em>Exception stack trace attached.</em></p>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
</columns>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<wrapper class="secondary">
|
|
||||||
<spacer size="16"></spacer>
|
<spacer size="16"></spacer>
|
||||||
{% block footer %}
|
<row>
|
||||||
<row>
|
<columns large="12" small="12">
|
||||||
<columns small="12" large="6">
|
{% block lead %}
|
||||||
{% block footer_content %}
|
<small><strong>{{ importance|upper }}</strong></small>
|
||||||
<p><small>Notification e-mail sent by Symfony</small></p>
|
<p class="lead">
|
||||||
{% endblock %}
|
{{ email.subject }}
|
||||||
</columns>
|
</p>
|
||||||
</row>
|
{% endblock %}
|
||||||
{% endblock %}
|
|
||||||
</wrapper>
|
{% block content %}
|
||||||
</container>
|
{% if markdown %}
|
||||||
|
{{ include('@email/zurb_2/notification/content_markdown.html.twig') }}
|
||||||
|
{% else %}
|
||||||
|
{{ (raw ? content|raw : content)|nl2br }}
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block action %}
|
||||||
|
{% if action_url %}
|
||||||
|
<spacer size="16"></spacer>
|
||||||
|
<button href="{{ action_url }}">{{ action_text }}</button>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block exception %}
|
||||||
|
{% if exception %}
|
||||||
|
<spacer size="16"></spacer>
|
||||||
|
<p><em>Exception stack trace attached.</em></p>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
</columns>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<wrapper class="secondary">
|
||||||
|
<spacer size="16"></spacer>
|
||||||
|
{% block footer %}
|
||||||
|
<row>
|
||||||
|
<columns small="12" large="6">
|
||||||
|
{% block footer_content %}
|
||||||
|
<p><small>Notification e-mail sent by Symfony</small></p>
|
||||||
|
{% endblock %}
|
||||||
|
</columns>
|
||||||
|
</row>
|
||||||
|
{% endblock %}
|
||||||
|
</wrapper>
|
||||||
|
</container>
|
||||||
|
</wrapper>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
{% endapply %}
|
{% endapply %}
|
||||||
|
Reference in New Issue
Block a user