Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
f6de8cbf
Verified
Commit
f6de8cbf
authored
3 years ago
by
Benedict Suska
Committed by
Jonathan Weth
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add base template for email notification
parent
e42b6536
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!874
Resolve "Provide base templates for e-mails generated by apps"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/core/templates/templated_email/base.email
+34
-0
34 additions, 0 deletions
aleksis/core/templates/templated_email/base.email
aleksis/core/templates/templated_email/email.css
+44
-0
44 additions, 0 deletions
aleksis/core/templates/templated_email/email.css
with
78 additions
and
0 deletions
aleksis/core/templates/templated_email/base.email
0 → 100644
+
34
−
0
View file @
f6de8cbf
{% 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 %}
This diff is collapsed.
Click to expand it.
aleksis/core/templates/templated_email/email.css
0 → 100644
+
44
−
0
View file @
f6de8cbf
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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment