Skip to content

Commit

Permalink
Add additionally scheme / protocol where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
pathmapper authored and nyalldawson committed Jul 15, 2024
1 parent 7a8e20d commit c2660e2
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ <h4>Links</h4>
else link['description'] if link['description'] not in [None, 'None', '']
else link['scheme'] if link['scheme'] not in [None, 'None', '']
else gettext('Access Link') }}
{% if link['scheme'] not in [None, 'None', '']
and ( link['name'] not in [None, 'None', '']
or link['description'] not in [None, 'None', ''] ) %}
({{ link['scheme'] }})
{% endif %}
</a></li>
{% endfor %}
{% for link in obj.uris %}
Expand All @@ -88,6 +93,11 @@ <h4>Links</h4>
else link['description'] if link['description'] not in [None, 'None', '']
else link['protocol'] if link['protocol'] not in [None, 'None', '']
else gettext('Access Link') }}
{% if link['protocol'] not in [None, 'None', '']
and ( link['name'] not in [None, 'None', '']
or link['description'] not in [None, 'None', ''] ) %}
({{ link['protocol'] }})
{% endif %}
</a></li>
{% endfor %}
</ul>
Expand Down

0 comments on commit c2660e2

Please sign in to comment.