-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
7,938 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% load i18n %}{% blocktranslate trimmed with eng_name=engagement.name eng_product=engagement.product %} | ||
The engagement "{{ eng_name }}" has been closed in the product "{{ eng_product }}". | ||
{% endblocktranslate %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{% load i18n %} | ||
{% load navigation_tags %} | ||
{% load display_tags %} | ||
{% url 'view_product' engagement.product.id as product_url %} | ||
{% url 'view_engagement' engagement.id as engagement_url %} | ||
<html> | ||
<body> | ||
{% autoescape on %} | ||
<p> | ||
{% trans "Hello" %}, | ||
</p> | ||
<p> | ||
{% blocktranslate trimmed with engagement_name=engagement.name engagement_product=engagement.product prod_url=product_url|full_url eng_url=engagement_url|full_url%} | ||
The engagement "{{ engagement_name }}" has been closed in the product "{{ engagement_product }}". It can be viewed here: <a href="{{prod_url}}">{{product}}</a> / <a href="{{eng_url}}">{{ engagement_name }}</a> | ||
{% endblocktranslate %} | ||
</p> | ||
<br/> | ||
<br/> | ||
{% trans "Kind regards" %},<br/> | ||
<br/> | ||
{% if system_settings.team_name %} | ||
{{ system_settings.team_name }} | ||
{% else %} | ||
Defect Dojo | ||
{% endif %} | ||
<br/> | ||
<br/> | ||
<p> | ||
{% url 'notifications' as notification_url %} | ||
{% trans "You can manage your notification settings here" %}: <a href="{{ notification_url|full_url }}">{{ notification_url|full_url }}</a> | ||
</p> | ||
{% if system_settings.disclaimer and system_settings.disclaimer.strip %} | ||
<br/> | ||
<div style="background-color:#DADCE2; border:1px #003333; padding:.8em; "> | ||
<span style="font-size:16pt; font-family: 'Cambria','times new roman','garamond',serif; color:#ff0000;">{% trans "Disclaimer" %}</span><br/> | ||
<p style="font-size:11pt; line-height:10pt; font-family: 'Cambria','times roman',serif;">{{ system_settings.disclaimer }}</p> | ||
</div> | ||
{% endif %} | ||
{% endautoescape %} | ||
</body> | ||
</html> |
44 changes: 44 additions & 0 deletions
44
dojo/templates/notifications/msteams/engagement_closed.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% load i18n %} | ||
{% load display_tags %} | ||
{ | ||
"@context": "https://schema.org/extensions", | ||
"@type": "MessageCard", | ||
"title": "{% trans "Engagement closed" %}", | ||
"summary": "{% trans "Engagement closed" %}", | ||
"sections": [ | ||
{ | ||
"activityTitle": "DefectDojo", | ||
"activityImage": "https://raw.githubusercontent.com/DefectDojo/django-DefectDojo/master/dojo/static/dojo/img/chop.png", | ||
"text": "{% trans "An engagement has been closed" %}.", | ||
"facts": [ | ||
{ | ||
"name": "{% trans "Product" %}:", | ||
"value": "{{ engagement.product.name }}" | ||
}, | ||
{ | ||
"name": "{% trans "Engagement" %}:", | ||
"value": "{{ engagement.name }}" | ||
} | ||
] | ||
} | ||
{% if system_settings.disclaimer and system_settings.disclaimer.strip %} | ||
,{ | ||
"activityTitle": "{% trans "Disclaimer" %}", | ||
"text": "{{ system_settings.disclaimer }}" | ||
} | ||
{% endif %} | ||
|
||
], | ||
"potentialAction": [ | ||
{ | ||
"@type": "OpenUri", | ||
"name": "{% trans "View Engagement" %}", | ||
"targets": [ | ||
{ | ||
"os": "default", | ||
"uri": "{{ url|full_url }}" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% load i18n %} | ||
{% load display_tags %} | ||
{% blocktranslate trimmed with name=engagement.name eng_product=engagement.product eng_url=url|full_url %} | ||
The engagement "{{ name }}" has been closed in the product "{{ eng_product }}". It can be viewed here: {{ eng_url }} | ||
{% endblocktranslate %} | ||
{% if system_settings.disclaimer and system_settings.disclaimer.strip %} | ||
|
||
{% trans "Disclaimer" %}: | ||
{{ system_settings.disclaimer }} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.