]> Raphaƫl G. Git Repositories - userbundle/blob - templates/mail/_base.html.twig
Cleanup
[userbundle] / templates / mail / _base.html.twig
1 {% extends '@RapsysUser/_base.html.twig' %}
2 {% block head %}
3 <meta name="viewport" content="width=device-width" />
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5 {% if locale is defined and locale %}<meta http-equiv="Content-Language" content="{{ locale }}" />{% endif %}
6 {% endblock %}
7 {% block stylesheet %}
8 <style type="text/css">
9 body {background:white;color:#066}
10 a {text-decoration:none;color:#066}
11 a:hover {text-decoration:underline}
12 a.link {word-break:break-all;font-size:1.5rem}
13 h1 {margin: .5rem;font-size: 2rem}
14 table {width: 100%;border-radius: .5rem}
15 table.header {border:.1rem solid #00c3f9;text-align:center}
16 table.content {background:white;border:.1rem solid #00c3f9;margin:.5rem 0}
17 table.footer {border:.1rem solid #00c3f9;text-align:center;font-weight:bold}
18 table.footer summary:after {display:none}
19 table.footer summary::-webkit-details-marker {display:none}
20 </style>
21 {% endblock %}
22 {% block body %}
23 <table class="header">
24 <tr>
25 {% if logo is defined and logo %}<td><a href="{{ home_url|escape('html_attr') }}"><img src="{{ email.image(logo.png) }}" alt="{{ logo.alt|escape('html_attr') }}" /></a></td>{% endif %}
26 <td><h1><a href="{{ home_url|escape('html_attr') }}">{{ site }}</a></h1></td>
27 </tr>
28 </table>
29 {% block content %}{% endblock %}
30 {% if copy is defined and copy %}
31 <table class="footer">
32 <tr>
33 <td>{{ copy.long }} - {{ copy.short }}</td>
34 </tr>
35 </table>
36 {% endif %}
37 {% endblock %}