Skip to content

Commit 26888b6

Browse files
committed
fallback link where no id guidance
1 parent 377e71b commit 26888b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

prefix_finder/frontend/templates/list.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ <h2>Description</h2>
5252

5353
<div class="single-meta-info__instructions">
5454
<h3>To find identifiers</h3>
55-
<p>{{ org_list.access.guidanceOnLocatingIds|urlize|linebreaks}}</p>
55+
{% if org_list.access.guidanceOnLocatingIds %}
56+
<p>{{ org_list.access.guidanceOnLocatingIds|urlize|linebreaks}}</p>
57+
{% else %}
58+
<p><a href="{{ org_list.url }}" target="_blank">Visit the website.</a></p>
59+
{% endif %}
5660
</div>
5761
</div>
5862

0 commit comments

Comments
 (0)