Skip to content

Commit

Permalink
resolve the datalink semantics as links to the description
Browse files Browse the repository at this point in the history
  • Loading branch information
kimakan committed Dec 19, 2023
1 parent 10b6b5b commit 82a5de7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions daiquiri/datalink/templates/datalink/datalink.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,21 @@ <h2>Data Links</h2>
<!-- <td>{{ datalink.service_def }}</td> -->
<!-- <td>{{ datalink.error_message }}</td> -->
<td>{{ datalink.description }}</td>
<td>{{ datalink.semantics }}</td>
<td>
{% if datalink.semantics in custom_semantics %}
<a href="{{ settings.SITE_URL }}{% url 'datalink:datalink-semantics' %}{{ datalink.semantics }}">{{ datalink.semantics }}</a>
{% else %}
<a href="https://www.ivoa.net/rdf/datalink/core/2022-01-27/datalink.html{{ datalink.semantics }}">{{ datalink.semantics }}</a>
{% endif %}
</td>
<td>{{ datalink.content_type }}</td>
<td>{{ datalink.content_length|filesizeformat }}</td>
<td>
{% if datalink_content_length > 0 %}
{{ datalink.content_length | filesizeformat }}
{% else %}
{{ datalink.content_length }}
{% endif %}
</td>

</tr>

Expand Down

0 comments on commit 82a5de7

Please sign in to comment.