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
a5077736
Verified
Commit
a5077736
authored
4 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Refactor email template for notifications
parent
aa288c4e
No related branches found
No related tags found
1 merge request
!284
Resolve "Improve notification email template"
Pipeline
#2314
passed
4 years ago
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/core/templates/templated_email/notification.email
+33
-6
33 additions, 6 deletions
aleksis/core/templates/templated_email/notification.email
with
33 additions
and
6 deletions
aleksis/core/templates/templated_email/notification.email
+
33
−
6
View file @
a5077736
...
...
@@ -2,21 +2,48 @@
{% block subject %} {% trans "New notification for" %} {{ notification_user }} {% endblock %}
{% block plain %}
{% blocktrans with notification_user=notification_user %}Dear {{ notification_user }},{% endblocktrans %}
{% trans "we got a new notification for you:" %}
{{ notification.title }}
{{ notification.description }}
{% if notification.link %}
{% trans "More information" %} → {{ notification.link }}
{% endif %}
{% blocktrans with trans_sender=notification.sender trans_created_at=notification.created_at %}
Sent by {{ trans_sender }} at {{ trans_created_at }}
{% endblocktrans %}
{% trans "Your AlekSIS team" %}
{% endblock %}
{% block html %}
<main>
<p>{% trans "Dear" %} {{ notification_user }}, <br>
{% trans "we got a new notification for you:" %}</p>
<p>{% blocktrans with notification_user=notification_user %}Dear {{ notification_user }},{% endblocktrans %}</p>
<p>{% trans "we got a new notification for you:" %}</p>
<blockquote>
<h5>{{ notification.title }}</h5>
<p>{{ notification.description }}</p>
{% if notification.link %}
<a href="{{ notification.link }}">{% trans "More information" %} →</a>
{% endif %}
</blockquote>
{% blocktrans with trans_sender=notification.sender trans_created_at=notification.created_at %}
<p>By {{ trans_sender }} at {{ trans_created_at }}</p>
<p>
{% blocktrans with trans_sender=notification.sender trans_created_at=notification.created_at %}
Sent by {{ trans_sender }} at {{ trans_created_at }}
{% endblocktrans %}
</p>
<i>Your AlekSIS team</i>
{% endblocktrans %}
<p>
<i>{% trans "Your AlekSIS team" %}</i>
</p>
</main>
{% endblock %}
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