Add additionally scheme / protocol where appropriate

This commit is contained in:
pathmapper 2024-07-15 21:53:40 +02:00 committed by Nyall Dawson
parent 7a8e20d572
commit c2660e273a

View File

@ -80,6 +80,11 @@
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 %}
@ -88,6 +93,11 @@
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>