oncall-engine/engine/apps/email/templates/email_notification.html
Michael Derynck aebd98b8f9
Change email templating to not wrap user defined templates (#3862)
# What this PR does
Change email notification templates to not wrap the user template in a
fixed body. Info has been moved to a footer. The title now also matches
the template from the user exactly and will only get a default message
if the user template result is empty.
Example:

![Screenshot from 2024-02-08
12-16-38](https://github.com/grafana/oncall/assets/28077050/bb59b7a7-7ec8-4d9d-8aef-8aff012c74f7)

## Which issue(s) this PR fixes
#3857 

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2024-02-09 19:03:25 +00:00

23 lines
No EOL
691 B
HTML

<!DOCTYPE html>
{% autoescape off %}
{{ message }}
{% endautoescape %}
{% if limit_notification %}
<br><br>
<span style="color: #333333;"><em>{{ emails_left }} emails left for the organization today. Contact your admin.</em></span>
{% endif %}
<hr/>
<a href="{{ url }}">Alert Group #{{ alert_group_number }}</a> from {{ integration }}
<span>|</span>
<a href="{{ instance_url }}">{{ instance_url }}</a>
<span>|</span>
<a href="https://grafana.com/docs/oncall/latest/">Docs</a>
<p>
- Your <a href="https://grafana.com/products/cloud/oncall/">Grafana OnCall</a>
</p>
<!-- this ensures Gmail doesn't trim the email -->
<span style="display:none;">{% now "H:i.u e"%}</span>
<!---->