Skip to content

Commit

Permalink
add engagement closed template
Browse files Browse the repository at this point in the history
  • Loading branch information
hblankenship committed Nov 6, 2024
1 parent 3f5ee0b commit a909cfd
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions dojo/templates/notifications/msteams/engagement_closed.tpl
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 }}"
}
]
}
]
}

0 comments on commit a909cfd

Please sign in to comment.