Skip to content

Commit 723ac35

Browse files
committed
only urlize evidence links if they are know not to be bad
fixes #146
1 parent 2d76eab commit 723ac35

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

crowdsourcer/templates/crowdsourcer/authority_questions_with_previous.html

+9-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,15 @@ <h4 class="form-label fs-6">Marker’s evidence of criteria met</h4>
102102

103103
{% if q_form.question_obj.how_marked != 'foi' %}
104104
<h4 class="form-label fs-6">Links to evidence</h4>
105-
<div class="read-only-answer mb-3 mb-md-4">
106-
{{ q_form.previous_response.public_notes|default:"(none)"|urlize_external|linebreaks }}
105+
<div class="read-only-answer mb-0 mb-md-0">
106+
{% for link in q_form.previous_response.evidence_links %}
107+
<p>
108+
{{ link|check_if_broken }}
109+
</p>
110+
{% endfor %}
111+
</div>
112+
<div class="text-muted mb-3 mb-md-4 small">
113+
Red links were found to be no longer available in an automated check.
107114
</div>
108115

109116
<h4 class="form-label fs-6">Page number</h4>

0 commit comments

Comments
 (0)