mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
8dab3bf36c
* add .TemplateData property to data in order to populate template <title> tags with the compiled subject value * update all templates * re-enable integration test and update implementation to check changes * chore: fmt * add HiddenSubject template func and update text templates * slight performance improvement, only execute subject template once * update template I missed --------- Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
37 lines
1.2 KiB
XML
37 lines
1.2 KiB
XML
<mjml>
|
|
<mj-head>
|
|
<!-- ⬇ Don't forget to specifify an email subject below! ⬇ -->
|
|
<mj-title>
|
|
{{ Subject .Subject .TemplateData "Reset your Grafana password - {{.Name}}" }}
|
|
</mj-title>
|
|
<mj-include path="./partials/layout/head.mjml" />
|
|
</mj-head>
|
|
<mj-body>
|
|
<mj-section>
|
|
<mj-include path="./partials/layout/header.mjml" />
|
|
</mj-section>
|
|
<mj-section background-color="#22252b" border="1px solid #2f3037">
|
|
<mj-column>
|
|
<mj-text>
|
|
<h2>Hi {{ .Name }},</h2>
|
|
</mj-text>
|
|
<mj-text>
|
|
Please click the following link to reset your password within <strong>{{ .EmailCodeValidHours }} hours</strong>.
|
|
</mj-text>
|
|
<mj-button href="{{ .AppUrl }}user/password/reset?code={{ .Code }}">
|
|
Reset Password
|
|
</mj-button>
|
|
<mj-text>
|
|
You can also copy and paste this link into your browser directly:
|
|
</mj-text>
|
|
<mj-text>
|
|
<a rel="noopener" href="{{ .AppUrl }}user/password/reset?code={{ .Code }}">{{ .AppUrl }}user/password/reset?code={{ .Code }}</a>
|
|
</mj-text>
|
|
</mj-column>
|
|
</mj-section>
|
|
<mj-section>
|
|
<mj-include path="./partials/layout/footer.mjml" />
|
|
</mj-section>
|
|
</mj-body>
|
|
</mjml>
|