Skip to content

Commit fe67b38

Browse files
Oscar MartinezOscar Martinez
authored andcommitted
Fix email template rendering for product_type_added notification
1 parent b101693 commit fe67b38

1 file changed

Lines changed: 24 additions & 35 deletions

File tree

Lines changed: 24 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,29 @@
11
{% load i18n %}
22
{% load navigation_tags %}
33
{% load display_tags %}
4+
{% url 'view_product_type' product_type.id as product_type_url %}
5+
46
<html>
5-
<body>
6-
{% autoescape on %}
7-
<p>
8-
{% trans "Hello" %},
9-
</p>
10-
<p>
11-
{% blocktranslate trimmed prod_url=url|full_url %}
12-
The new product type "{{ title }}" has been added. It can be viewed here: <a href="{{ prod_url }}">{{ title }}</a>
13-
{% endblocktranslate %}
14-
</p>
15-
<br/>
16-
<br/>
17-
{% trans "Kind regards" %},<br/>
18-
<br/>
19-
{% if system_settings.team_name %}
20-
{{ system_settings.team_name }}
21-
{% else %}
22-
Defect Dojo
23-
{% endif %}
24-
<p>
25-
<br/>
26-
<br/>
27-
<p>
28-
{% url 'notifications' as notification_url %}
29-
{% trans "You can manage your notification settings here" %}: <a href="{{ notification_url|full_url }}">{{ notification_url|full_url }}</a>
30-
</p>
31-
{% if system_settings.disclaimer_notifications and system_settings.disclaimer_notifications.strip %}
32-
<br/>
33-
<div style="background-color:#DADCE2; border:1px #003333; padding:.8em; ">
34-
<span style="font-size:16pt; font-family: 'Cambria','times new roman','garamond',serif; color:#ff0000;">{% trans "Disclaimer" %}</span><br/>
35-
<p style="font-size:11pt; line-height:10pt; font-family: 'Cambria','times roman',serif;">{{ system_settings.disclaimer_notifications }}</p>
36-
</div>
37-
{% endif %}
38-
{% endautoescape %}
39-
</body>
7+
<body>
8+
{% autoescape on %}
9+
<p>{% trans "Hello" %},</p>
10+
11+
<p>
12+
{% 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+
{% endblocktranslate %}
16+
</p>
17+
18+
<br><br>
19+
20+
{% trans "Kind regards" %},<br><br>
21+
22+
{% if system_settings.team_name %}
23+
{{ system_settings.team_name }}
24+
{% else %}
25+
Defect Dojo
26+
{% endif %}
27+
{% endautoescape %}
28+
</body>
4029
</html>

0 commit comments

Comments
 (0)