-
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.
Rename
url
to url_ui
and add url_api
- Loading branch information
Showing
16 changed files
with
143 additions
and
40 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
5 changes: 5 additions & 0 deletions
5
dojo/templates/notifications/webhooks/subtemplates/engagement.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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{% load display_tags %} | ||
{% if product %} | ||
{% include 'notifications/webhooks/subtemplates/product.tpl' with product=product %} | ||
{% else %} | ||
{% include 'notifications/webhooks/subtemplates/product.tpl' with product=engagement.product %} | ||
{% endif %} | ||
{% url 'view_engagement' engagement.id as engagement_url_ui %} | ||
{% url 'engagement-detail' engagement.id as engagement_url_api %} | ||
engagement: | ||
name: {{ engagement.name | default_if_none:'' }} | ||
id: {{ engagement.pk }} | ||
url_ui: {{ engagement_url_ui|full_url }} | ||
url_api: {{ engagement_url_api|full_url }} |
6 changes: 4 additions & 2 deletions
6
dojo/templates/notifications/webhooks/subtemplates/findings_list.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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{% load display_tags %} | ||
{% for finding in findings %} | ||
{% url 'view_finding' finding.id as finding_url %} | ||
{% url 'view_finding' finding.id as finding_url_ui %} | ||
{% url 'finding-detail' finding.id as finding_url_api %} | ||
- id: {{ finding.pk }} | ||
title: {{ finding.title | default_if_none:'' }} | ||
severity: {{ finding.severity | default_if_none:'' }} | ||
url: {{ finding_url|full_url }} | ||
url_ui: {{ finding_url_ui|full_url }} | ||
url_api: {{ finding_url_api|full_url }} | ||
{% empty %} | ||
[] | ||
{% endfor %} |
5 changes: 5 additions & 0 deletions
5
dojo/templates/notifications/webhooks/subtemplates/product.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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{% load display_tags %} | ||
{% if product_type %} | ||
{% include 'notifications/webhooks/subtemplates/product_type.tpl' with product_type=product_type %} | ||
{% else %} | ||
{% include 'notifications/webhooks/subtemplates/product_type.tpl' with product_type=product.prod_type %} | ||
{% endif %} | ||
{% url 'view_product' product.id as product_url_ui %} | ||
{% url 'product-detail' product.id as product_url_api %} | ||
product: | ||
name: {{ product.name | default_if_none:'' }} | ||
id: {{ product.pk }} | ||
url_ui: {{ product_url_ui|full_url }} | ||
url_api: {{ product_url_api|full_url }} |
5 changes: 5 additions & 0 deletions
5
dojo/templates/notifications/webhooks/subtemplates/product_type.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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{% load display_tags %} | ||
{% url 'view_product_type' product_type.id as product_type_url_ui %} | ||
{% url 'product_type-detail' product_type.id as product_type_url_api %} | ||
product_type: | ||
name: {{ product_type.name | default_if_none:'' }} | ||
id: {{ product_type.pk }} | ||
url_ui: {{ product_type_url_ui|full_url }} | ||
url_api: {{ product_type_url_api|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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{% load display_tags %} | ||
{% if engagement %} | ||
{% include 'notifications/webhooks/subtemplates/engagement.tpl' with engagement=engagement %} | ||
{% else %} | ||
{% include 'notifications/webhooks/subtemplates/engagement.tpl' with engagement=test.engagement %} | ||
{% endif %} | ||
{% url 'view_test' test.id as test_url_ui %} | ||
{% url 'test-detail' test.id as test_url_api %} | ||
test: | ||
title: {{ test.title | default_if_none:'' }} | ||
id: {{ test.pk }} | ||
url_ui: {{ test_url_ui|full_url }} | ||
url_api: {{ test_url_api|full_url }} |
Oops, something went wrong.