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

Replace continued uses of source.title and source.siglum #1679

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
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
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
Loading