]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/mail/base.html.twig
Fix coalesce warning
[airbundle] / Resources / views / mail / base.html.twig
index b7be100065048cafccf441444195c4d116182725..ef4bad1a7bc93deca25ebc6b036092515c98e05c 100644 (file)
@@ -1,10 +1,33 @@
-<!DOCTYPE html>
-<html>
-    <head>
-        <title>{% block title %}Welcome!{% endblock %}</title>
-        {% block stylesheets %}{% endblock %}
-    </head>
-    <body>
-        {% block body %}{% endblock %}
-    </body>
-</html>
+{% extends '@RapsysAir/base.html.twig' %}
+{% block stylesheet %}
+       <meta name="viewport" content="width=device-width" />
+       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+       {% if locale is defined and locale %}<meta http-equiv="Content-Language" content="{{ locale }}" />{% endif %}
+       <style type="text/css">
+               body {background:white;color:#066}
+               a {text-decoration:none;color:#066}
+               a:hover {text-decoration:underline}
+               a.link {word-break:break-all;font-size:1.5rem}
+               h1 {margin: .5rem;font-size: 2rem}
+               table {width: 100%;border-radius: .5rem}
+               table.header {border:.1rem solid #00c3f9;text-align:center}
+               table.content {background:white;border:.1rem solid #00c3f9;margin:.5rem 0}
+               table.footer {border:.1rem solid #00c3f9;text-align:center;font-weight:bold}
+               table.footer summary:after {display:none}
+               table.footer summary::-webkit-details-marker {display:none}
+       </style>
+{% endblock %}
+{% block body %}
+       <table class="header">
+               <tr>
+                       <td><a href="{{ root|escape('html_attr') }}"><img src="{{ email.image(logo.png) }}" alt="{{ title.site|escape('html_attr') }}" /></a></td>
+                       <td><h1><a href="{{ root|escape('html_attr') }}">{{ title.site }}</a></h1></td>
+               </tr>
+       </table>
+        {% block content %}{% endblock %}
+       <table class="footer">
+               <tr>
+                       <td>{{ copy.long }} - {{ copy.short }}</td>
+               </tr>
+       </table>
+{% endblock %}