Skip to content

Commit 3718c7a

Browse files
Oscar MartinezOscar Martinez
authored andcommitted
fix: fix rendering error in product_type_added email template
1 parent fe67b38 commit 3718c7a

1 file changed

Lines changed: 33 additions & 5 deletions

File tree

dojo/templates/notifications/mail/product_type_added.tpl

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,52 @@
66
<html>
77
<body>
88
{% autoescape on %}
9-
<p>{% trans "Hello" %},</p>
9+
<p>
10+
{% trans "Hello" %},
11+
</p>
1012

1113
<p>
1214
{% blocktranslate trimmed with title=title prod_url=product_type_url|full_url %}
13-
The new product type "{{ title }}" has been added.
14-
It can be viewed here: <a href="{{ prod_url }}">{{ title }}</a>
15+
The new product type "{{ title }}" has been added.
16+
It can be viewed here: <a href="{{ prod_url }}">{{ title }}</a>
1517
{% endblocktranslate %}
1618
</p>
1719

18-
<br><br>
20+
<br/>
21+
<br/>
1922

20-
{% trans "Kind regards" %},<br><br>
23+
{% trans "Kind regards" %},<br/>
24+
<br/>
2125

2226
{% if system_settings.team_name %}
2327
{{ system_settings.team_name }}
2428
{% else %}
2529
Defect Dojo
2630
{% endif %}
31+
32+
<p>
33+
<br/>
34+
<br/>
35+
</p>
36+
37+
<p>
38+
{% url 'notifications' as notification_url %}
39+
{% trans "You can manage your notification settings here" %}:
40+
<a href="{{ notification_url|full_url }}">{{ notification_url|full_url }}</a>
41+
</p>
42+
43+
{% if system_settings.disclaimer_notifications and system_settings.disclaimer_notifications.strip %}
44+
<br/>
45+
<div style="background-color:#DADCE2; border:1px #003333; padding:.8em;">
46+
<span style="font-size:16pt; font-family:'Cambria','times new roman','garamond',serif; color:#ff0000;">
47+
{% trans "Disclaimer" %}
48+
</span>
49+
<br/>
50+
<p style="font-size:11pt; line-height:10pt; font-family:'Cambria','times roman',serif;">
51+
{{ system_settings.disclaimer_notifications }}
52+
</p>
53+
</div>
54+
{% endif %}
2755
{% endautoescape %}
2856
</body>
2957
</html>

0 commit comments

Comments
 (0)