Skip to content

Commit

Permalink
feat(browse sources): Add country and source columns to table
Browse files Browse the repository at this point in the history
This commit adjusts the columns in the browse sources table
to conform to the changes in source identification introduced in DDMAL#1545.

Refs: DDMAL#1569
  • Loading branch information
dchiller committed Jul 29, 2024
1 parent da114cb commit 02e275b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions django/cantusdb_project/main_app/templates/source_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ <h3>Browse Sources</h3>
<table class="table table-sm small table-bordered table-responsive">
<thead>
<tr>
<th scope="col" class="text-wrap" style="text-align:center">Shelfmark</th>
<th scope="col" class="text-wrap" style="text-align:center">Holding Institution</th>
<th scope="col" class="text-wrap" style="text-align:center">Country</th>
<th scope="col" class="text-wrap" style="text-align:center">Source</th>
<th scope="col" class="text-wrap" style="text-align:center">Summary</th>
<th scope="col" class="text-wrap" style="text-align:center">Date/Origin</th>
<th scope="col" class="text-wrap" style="text-align:center">Image Link</th>
Expand All @@ -88,13 +88,13 @@ <h3>Browse Sources</h3>
{% for source in sources %}
<tr>
<td class="text-wrap" style="text-align:center">
<b>{{ source.holding_institution.country }}</b>
</td>
<td class="text-wrap" style="text-align:center" title="{{ source.title }}">
<a href="{% url 'source-detail' source.id %}">
<b>{{ source.shelfmark }}</b>
<b>{{ source.title|truncatechars_html:100 }}</b>
</a>
</td>
<td class="text-wrap" style="text-align:center" title="{{ source.heading }}">
<b>{{ source.holding_institution|truncatechars_html:50 }}</b>
</td>
<td class="text-wrap" style="text-align:center" title="{{ source.summary|default:""|truncatechars_html:500 }}">
{{ source.summary|default:""|truncatechars_html:120 }}
</td>
Expand Down

0 comments on commit 02e275b

Please sign in to comment.