Skip to content

Commit

Permalink
fix(apis_entities): show update link only for external domains
Browse files Browse the repository at this point in the history
Closes: #1438
  • Loading branch information
b1rger committed Nov 25, 2024
1 parent 33e176d commit b939ccc
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{% load core %}
<h5 class="card-title">Linked Open Data</h5>
{% if object.uri_set %}
<ul>
{% for uri in object.uri_set.all %}
<li>
{{ uri.uri | urlize }}
{% get_apis_settings as settings %}
{% if object.get_change_permission in perms %}
<a href="{{ object.get_enrich_url }}?uri={{ uri.uri }}"><span class="material-symbols-outlined">update</span></a>
{% if settings.APIS_BASE_URI not in uri.uri %}
<a href="{{ object.get_enrich_url }}?uri={{ uri.uri }}"><span class="material-symbols-outlined">update</span></a>
{% endif %}
{% endif %}
</li>
{% endfor %}
Expand Down

0 comments on commit b939ccc

Please sign in to comment.