Skip to content

Commit 093325d

Browse files
authored
Merge pull request #1718 from DDMAL/i1684-institution-detail-ids
2 parents 1237c89 + 5d990b1 commit 093325d

File tree

1 file changed

+66
-42
lines changed

1 file changed

+66
-42
lines changed
Lines changed: 66 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,92 @@
11
{% extends "single_column_with_search_bar.html" %}
2-
32
{% block title %}
4-
53
{% endblock %}
6-
74
{% block header %}
8-
<h3>{{ institution.name }} {% if institution.siglum %}({{ institution.siglum }}){% endif %}</h3>
9-
<h4>{% if institution.city %}{{ institution.city }}{% else %}[No City]{% endif %}, {{ institution.country }}</h4>
5+
<h3>
6+
{{ institution.name }}
7+
{% if institution.siglum %}
8+
({{ institution.siglum }})
9+
{% endif %}
10+
</h3>
11+
<h4>
12+
{% if institution.city %}
13+
{{ institution.city }}
14+
{% else %}
15+
[No City]
16+
{% endif %}
17+
, {{ institution.country }}
18+
</h4>
1019
{% endblock %}
1120
{% block maincontent %}
1221
{% if institution_authorities %}
1322
<hr />
14-
<div class="row">
15-
<div class="col">
16-
{% for authority in institution_authorities %}
23+
{% for authority in institution_authorities %}
24+
<div class="row">
25+
<div class="col">
1726
View this institution in <a href="{{ authority.1 }}">{{ authority.0 }}</a>
18-
{% endfor %}
27+
</div>
1928
</div>
20-
</div>
29+
{% endfor %}
2130
{% endif %}
2231
<hr />
2332
<div class="row">
2433
{% if num_cantus_sources > 0 %}
25-
<div class="col">
26-
<h5>Cantus Database</h5>
27-
<table class="table table-bordered table-sm small">
28-
<thead>
29-
<tr>
30-
<th>Sources</th>
31-
</tr>
32-
</thead>
33-
<tbody>
34-
{% for source in cantus_sources %}
35-
<tr>
36-
<td>
37-
<a href="{% url "source-detail" source.id %}"><b>{{ source.shelfmark }}{% if source.name %} ("{{ source.name }}"){% endif %}</b></a>
38-
</td>
39-
</tr>
40-
{% endfor %}
41-
</tbody>
42-
</table>
43-
</div>
44-
{% endif %}
45-
46-
{% if num_bower_sources > 0 %}
4734
<div class="col">
48-
<h5>Clavis Sequentiarum (Sequence Database by Calvin Bower)</h5>
35+
<h5>
36+
Cantus Database
37+
</h5>
4938
<table class="table table-bordered table-sm small">
5039
<thead>
51-
<tr>
52-
<th>Sources</th>
53-
</tr>
40+
<tr>
41+
<th>
42+
Sources
43+
</th>
44+
</tr>
5445
</thead>
5546
<tbody>
56-
{% for source in bower_sources %}
47+
{% for source in cantus_sources %}
48+
<tr>
49+
<td>
50+
<a href="{% url "source-detail" source.id %}"><b>{{ source.shelfmark }}
51+
{% if source.name %}
52+
("{{ source.name }}")
53+
{% endif %}
54+
</b></a>
55+
</td>
56+
</tr>
57+
{% endfor %}
58+
</tbody>
59+
</table>
60+
</div>
61+
{% endif %}
62+
{% if num_bower_sources > 0 %}
63+
<div class="col">
64+
<h5>
65+
Clavis Sequentiarum (Sequence Database by Calvin Bower)
66+
</h5>
67+
<table class="table table-bordered table-sm small">
68+
<thead>
5769
<tr>
58-
<td>
59-
<a href="{% url "source-detail" source.id %}"><b>{{ source.shelfmark }}{% if source.name %} ("{{ source.name }}"){% endif %}</b></a>
60-
</td>
70+
<th>
71+
Sources
72+
</th>
6173
</tr>
62-
{% endfor %}
74+
</thead>
75+
<tbody>
76+
{% for source in bower_sources %}
77+
<tr>
78+
<td>
79+
<a href="{% url "source-detail" source.id %}"><b>{{ source.shelfmark }}
80+
{% if source.name %}
81+
("{{ source.name }}")
82+
{% endif %}
83+
</b></a>
84+
</td>
85+
</tr>
86+
{% endfor %}
6387
</tbody>
6488
</table>
6589
</div>
6690
{% endif %}
6791
</div>
68-
{% endblock %}
92+
{% endblock %}

0 commit comments

Comments
 (0)