Skip to content

Commit 4a0abbd

Browse files
Maffoochclaude
andauthored
fix: clean up template rendering for endpoint user fields (#14682)
Remove unnecessary template filter from auditor and mitigated_by fields in the endpoints snippet to align with standard Django template rendering conventions. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c1b2526 commit 4a0abbd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dojo/templates/dojo/snippets/endpoints.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ <h6>Mitigated Endpoints / Systems ({{ finding.mitigated_endpoint_count }})</h6>
7272
{% if V3_FEATURE_LOCATIONS %}
7373
<td style="word-break: break-word">{{ endpoint.location }}{% if endpoint.is_broken %} <span data-toggle="tooltip" title="Endpoint is broken. Check documentation to look for fix process" >&#128681;</span>{% endif %}</td>
7474
<td>{{ endpoint.status }}</td>
75-
<td>{{ endpoint.auditor|safe }}</td>
75+
<td>{{ endpoint.auditor }}</td>
7676
<td>{{ endpoint.audit_time|date }}</td>
7777
{% else %}
78-
{% comment %} TODO: Delete this after the move to Locations {% endcomment %}
78+
{% comment %} TODO: Delete this after the move to Locations {% endcomment %}
7979
<td style="word-break: break-word">{{ endpoint }}{% if endpoint.endpoint.is_broken %} <span data-toggle="tooltip" title="Endpoint is broken. Check documentation to look for fix process" >&#128681;</span>{% endif %}</td>
8080
<td>{{ endpoint.status }}</td>
81-
<td>{{ endpoint.mitigated_by|safe }}</td>
81+
<td>{{ endpoint.mitigated_by }}</td>
8282
<td>{{ endpoint.mitigated_time|date }}</td>
8383
{% endif %}
8484
</tr>
@@ -256,7 +256,7 @@ <h4>Mitigated Endpoints / Systems ({{ finding.mitigated_endpoint_count }})
256256
{% include "dojo/snippets/tags.html" with tags=endpoint.location.tags.all %}
257257
</td>
258258
<td>{{ endpoint.get_status_display }}</td>
259-
<td>{{ endpoint.auditor|safe }}</td>
259+
<td>{{ endpoint.auditor }}</td>
260260
<td>{{ endpoint.audit_time|date }}</td>
261261
{% else %}
262262
{% comment %} TODO: Delete this after the move to Locations {% endcomment %}
@@ -265,7 +265,7 @@ <h4>Mitigated Endpoints / Systems ({{ finding.mitigated_endpoint_count }})
265265
{% include "dojo/snippets/tags.html" with tags=endpoint.endpoint.tags.all %}
266266
</td>
267267
<td>{{ endpoint.status }}</td>
268-
<td>{{ endpoint.mitigated_by|safe }}</td>
268+
<td>{{ endpoint.mitigated_by }}</td>
269269
<td>{{ endpoint.mitigated_time|date }}</td>
270270
{% endif %}
271271
</tr>

0 commit comments

Comments
 (0)