]> Raphaël G. Git Repositories - airbundle/blob - Resources/views/mail/generic.html.twig
Fix container and translator passing
[airbundle] / Resources / views / mail / generic.html.twig
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta name="viewport" content="width=device-width" />
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>{{ title }}</title>
7 <style>
8 body {background:white;color:#066}
9 a {text-decoration:none;color:#066}
10 a:hover {text-decoration:underline}
11 table {width: 100%;border-radius: .5rem}
12 table.head {border:.1rem solid #00c3f9;text-align:center}
13 table.body {background:white;border:.1rem solid #00c3f9;margin:.5rem 0}
14 table.footer {border:.1rem solid #00c3f9;text-align:center;font-weight:bold}
15 table.footer summary:after {display:none}
16 table.footer summary::-webkit-details-marker {display:none}
17 </style>
18 </head>
19 <body>
20 <table class="head">
21 <tr>
22 <td><a href="{{ home }}"><img src="data:image/png;base64, {{ logo|file_get_contents|base64_encode }}" alt="{{ title }}" /></a></td>
23 <td><h1><a href="{{ home }}">{{ title }}</a></h1></td>
24 </tr>
25 </table>
26 <table class="body">
27 <tr>
28 <td>&nbsp;</td>
29 <td>
30 <h2>{{ subtitle }}</h2>
31 {% if subject %}
32 <h3>{% trans %}Subject:{% endtrans %} {{ subject }}</h3>
33 {% endif %}
34 {% if raw is defined %}
35 <p>{{ raw|raw }}</p>
36 {% else %}
37 <p>{{ message|nl2br }}</p>
38 {% endif %}
39 </td>
40 <td>&nbsp;</td>
41 </tr>
42 </table>
43 <table class="footer">
44 <tr>
45 <td>{% trans %}Raphaël Gertz all rights reserved{% endtrans %} - {% trans %}Copyright 2018{% endtrans %}.</td>
46 </tr>
47 </table>
48 </body>
49 </html>