-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1718 from DDMAL/i1684-institution-detail-ids
- Loading branch information
Showing
1 changed file
with
66 additions
and
42 deletions.
There are no files selected for viewing
108 changes: 66 additions & 42 deletions
108
django/cantusdb_project/main_app/templates/institution_detail.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |