Skip to content

Commit

Permalink
fix(source heading): replace continued uses of source.title and sourc…
Browse files Browse the repository at this point in the history
…e.siglum
  • Loading branch information
dchiller committed Oct 22, 2024
1 parent 56f3aab commit f4e57fd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions django/cantusdb_project/main_app/templates/chant_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h3>{{ chant.incipit }}</h3>
<div class="col">
<dt>Source</dt>
<dd>
<a href="{% url 'source-detail' chant.source.id %}">{{ chant.source.title }}</a>
<a href="{% url 'source-detail' chant.source.id %}">{{ chant.source.heading }}</a>
</dd>
</div>
{% endif %}
Expand Down Expand Up @@ -312,7 +312,7 @@ <h4>List of melodies</h4>
<b>Source navigation</b>
<br>
{% if source %}
<a href="{% url 'source-detail' source.id %}" title="{{ source.title }}"> <b>{{ source.siglum }}</b> </a>
<a href="{% url 'source-detail' source.id %}" title="{{ source.heading }}"> <b>{{ source.short_heading }}</b> </a>
{% else %}
This chant is not associated with any source.
{% endif %}
Expand Down Expand Up @@ -465,7 +465,7 @@ <h4>List of melodies</h4>
<div class="card-header">
<small><a href="/sources?segment={{ source.segment.id }}">{{ source.segment.name }}</a></small>
<br>
<span title="{{ source.title }}">{{ source.siglum }}</span>
<span title="{{ source.heading }}">{{ source.short_heading }}</span>
</div>
<div class=" card-body">
<small>
Expand Down
8 changes: 4 additions & 4 deletions django/cantusdb_project/main_app/templates/chant_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load static %}

{% block title %}
<title>{{ source.title }} | Cantus Database</title>
<title>{{ source.heading }} | Cantus Database</title>
{% endblock %}

{% block scripts %}
Expand Down Expand Up @@ -362,8 +362,8 @@ <h3>Full text &amp; Volpiano edit form</h3>
<dd><small>5) Click <b>"SAVE"</b></small></dd>
</dl>
<div style="margin-top:5px;">
<a href="{% url 'source-detail' source.id %}" title="{{ source.title }}">
{{ source.siglum }}
<a href="{% url 'source-detail' source.id %}" title="{{ source.heading }}">
{{ source.short_heading }}
</a>
</div>
<div style="margin-top:5px;">
Expand All @@ -382,7 +382,7 @@ <h3>Full text &amp; Volpiano edit form</h3>
{% block lowersidebar %}
<div class="card mb-3 w-100">
<div class="card-header">
<h4><a href="{% url 'source-detail' source.id %}" title="{{ source.title }}">{{ source.siglum }}</a></h4>
<h4><a href="{% url 'source-detail' source.id %}" title="{{ source.heading }}">{{ source.short_heading }}</a></h4>
</div>
<div class="card-body">
{% if source.chant_set.exists %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<body>
<title>Inventory | Cantus Database</title>
<h3>Cantus Inventory:
<a href="{% url 'source-detail' source.id %}" target="_href">{{ source.title }}</a>
<a href="{% url 'source-detail' source.id %}" target="_href">{{ source.heading }}</a>
</h3>
This source inventory contains {{ chants.count }} chants.
<table class="table table-sm small table-bordered table-striped table-hover">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h5>Entered Melodies</h5>
<ul>
{% for source in melody_sources %}
<li>
<a href="{% url 'source-detail' source.id %}" title="{{ source.title }}">{{ source.siglum }}</a> ({{ source.title }})
<a href="{% url 'source-detail' source.id %}" title="{{ source.heading }}">{{ source.short_heading }}</a> ({{ source.heading }})
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit f4e57fd

Please sign in to comment.