Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(institution detail): Show alternate ID's on new lines #1718

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 66 additions & 42 deletions django/cantusdb_project/main_app/templates/institution_detail.html
Original file line number Diff line number Diff line change
@@ -1,68 +1,92 @@
{% extends "single_column_with_search_bar.html" %}

{% block title %}

{% endblock %}

{% block header %}
<h3>{{ institution.name }} {% if institution.siglum %}({{ institution.siglum }}){% endif %}</h3>
<h4>{% if institution.city %}{{ institution.city }}{% else %}[No City]{% endif %}, {{ institution.country }}</h4>
<h3>
{{ institution.name }}
{% if institution.siglum %}
({{ institution.siglum }})
{% endif %}
</h3>
<h4>
{% if institution.city %}
{{ institution.city }}
{% else %}
[No City]
{% endif %}
, {{ institution.country }}
</h4>
{% endblock %}
{% block maincontent %}
{% if institution_authorities %}
<hr />
<div class="row">
<div class="col">
{% for authority in institution_authorities %}
{% for authority in institution_authorities %}
<div class="row">
<div class="col">
View this institution in <a href="{{ authority.1 }}">{{ authority.0 }}</a>
{% endfor %}
</div>
</div>
</div>
{% endfor %}
{% endif %}
<hr />
<div class="row">
{% if num_cantus_sources > 0 %}
<div class="col">
<h5>Cantus Database</h5>
<table class="table table-bordered table-sm small">
<thead>
<tr>
<th>Sources</th>
</tr>
</thead>
<tbody>
{% for source in cantus_sources %}
<tr>
<td>
<a href="{% url "source-detail" source.id %}"><b>{{ source.shelfmark }}{% if source.name %} ("{{ source.name }}"){% endif %}</b></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}

{% if num_bower_sources > 0 %}
<div class="col">
<h5>Clavis Sequentiarum (Sequence Database by Calvin Bower)</h5>
<h5>
Cantus Database
</h5>
<table class="table table-bordered table-sm small">
<thead>
<tr>
<th>Sources</th>
</tr>
<tr>
<th>
Sources
</th>
</tr>
</thead>
<tbody>
{% for source in bower_sources %}
{% for source in cantus_sources %}
<tr>
<td>
<a href="{% url "source-detail" source.id %}"><b>{{ source.shelfmark }}
{% if source.name %}
("{{ source.name }}")
{% endif %}
</b></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% if num_bower_sources > 0 %}
<div class="col">
<h5>
Clavis Sequentiarum (Sequence Database by Calvin Bower)
</h5>
<table class="table table-bordered table-sm small">
<thead>
<tr>
<td>
<a href="{% url "source-detail" source.id %}"><b>{{ source.shelfmark }}{% if source.name %} ("{{ source.name }}"){% endif %}</b></a>
</td>
<th>
Sources
</th>
</tr>
{% endfor %}
</thead>
<tbody>
{% for source in bower_sources %}
<tr>
<td>
<a href="{% url "source-detail" source.id %}"><b>{{ source.shelfmark }}
{% if source.name %}
("{{ source.name }}")
{% endif %}
</b></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</div>
{% endblock %}
{% endblock %}
Loading