Skip to content

Commit

Permalink
Remove trailing bracket for SLA information in UI (DefectDojo#7533)
Browse files Browse the repository at this point in the history
  • Loading branch information
coheigea authored Feb 2, 2023
1 parent e33ba84 commit 337dec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo/templatetags/display_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ def finding_sla(finding):
find_sla) + ' days past SLA for ' + severity.lower() + ' findings (' + str(sla_age) + ' days since ' + finding.get_sla_start_date().strftime("%b %d, %Y") + ')'
else:
status = "green"
status_text = 'Remediation for ' + severity.lower() + ' findings in ' + str(sla_age) + ' days or less since ' + finding.get_sla_start_date().strftime("%b %d, %Y") + ')'
status_text = 'Remediation for ' + severity.lower() + ' findings in ' + str(sla_age) + ' days or less since ' + finding.get_sla_start_date().strftime("%b %d, %Y")
if find_sla and find_sla < 0:
status = "red"
status_text = 'Overdue: Remediation for ' + severity.lower() + ' findings in ' + str(
sla_age) + ' days or less since ' + finding.get_sla_start_date().strftime("%b %d, %Y") + ')'
sla_age) + ' days or less since ' + finding.get_sla_start_date().strftime("%b %d, %Y")

if find_sla is not None:
title = '<a class="has-popover" data-toggle="tooltip" data-placement="bottom" title="" href="#" data-content="' + status_text + '">' \
Expand Down

0 comments on commit 337dec6

Please sign in to comment.