Skip to content

Commit

Permalink
Update resource.html
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jan 20, 2025
1 parent 510195e commit 4d182ed
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions src/bioregistry/app/templates/resource.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
<div class="col-8">
<h5 style="margin: 0"><a href="{{ url_for("metaregistry_ui.resources") }}">Registry</a> <i
class="fas fa-angle-right"></i> {{ name_pack.value }}
<span type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="This name annotation comes from {{ name_pack.name }} and is redistributed under the {{ name_pack.license }}.">
<i class="fas fa-book"></i>
</span>
<a type="button" data-toggle="modal" data-target="#name-modal">
<i class="far fa-question-circle"></i>
</a>
{{ utils.render_resource_warnings(resource) }}
</h5>
</div>
Expand Down Expand Up @@ -688,6 +688,28 @@ <h5 class="modal-title" id="versionModalLabel">Programmatic Access to Version</h
</div>
{% endif %}

<div class="modal fade" id="name-modal" tabindex="-1" role="dialog" aria-labelledby="nameModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="nameModalLabel">Programmatic Access to Name</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<p>
This name annotation was originally annotated in
<a href="{{ url_for("metaregistry_ui.metaresource", metaprefix=name_pack.metaprefix) }}">{{ name_pack.name }}</a>
and is redistributed under the {{ name_pack.license }} license.
</p>
<p>Get the name:</p>
{{ utils.code_example(prefix, "get_name", name_pack.value) }}
</div>
</div>
</div>
</div>

{% if resource_license %}
<div class="modal fade" id="license-modal" tabindex="-1" role="dialog" aria-labelledby="licenseModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
Expand Down

0 comments on commit 4d182ed

Please sign in to comment.