Skip to content
Snippets Groups Projects
Verified Commit f6de8cbf authored by Benedict Suska's avatar Benedict Suska Committed by Jonathan Weth
Browse files

Add base template for email notification

parent e42b6536
No related branches found
No related tags found
1 merge request!874Resolve "Provide base templates for e-mails generated by apps"
{% load i18n html2text %}
{% block subject %}
{{ request.site.preferences.general__title": " }}
{% endblock %}
{% block plain %}
{% trans "Hello, " %}
{% trans "- "{{ request.site.preferences.general__title }} %}
{% endblock %}
{% block html %}
<style>
{% include "email.css" %}
</style>
<main>
<div class="align-center">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="green" width="70px" height="70px">
<path d="M0 0h24v24H0z" fill="none"/>
<path
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</svg>
</div>
<p>{% trans "Hello," %}</p>
<p>{% trans "- " {{ request.site.preferences.general__title }}%}</p>
</main>
{% endblock %}
body {
line-height: 1.5;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-weight: normal;
color: rgba(0, 0, 0, 0.87);
display: flex;
justify-content: center;
align-items: center;
}
table, tr {
width: 100%;
}
main {
max-width: 700px;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
-webkit-transition: -webkit-box-shadow .25s;
transition: -webkit-box-shadow .25s;
transition: box-shadow .25s;
transition: box-shadow .25s, -webkit-box-shadow .25s;
padding: 24px;
margin: .5rem 0 1rem 0;
border-radius: 2px;
background-color: #fff;
margin: 30px;
padding: 20px;
}
.first th {
border-bottom: 1px solid;
}
td, th {
padding-left: 5px;
padding-right: 5px;
}
.align-center {
text-align: center;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment