Skip to content

Commit

Permalink
fix missing document title for plans with no title
Browse files Browse the repository at this point in the history
Fixes #534
  • Loading branch information
struan committed Jul 3, 2023
1 parent ec6d34c commit ef5da84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions caps/templates/caps/includes/council-document.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@

<div class="council-document__info">

{% if plandocument.title %}
<p class="council-document__info__description">
{{ plandocument.get_description|lower|capfirst }}
</p>
{% endif %}

<h{{ heading_level|default:3 }} class="council-document__info__title">
{% if not plandocument.is_deleted or plandocument.file_exists %}
<a href="{{ MEDIA_URL }}{{ plandocument.file }}" data-plan-id="{{ plandocument.id }}" data-council-slug="{{ council.slug }}">
{% endif %}
{% if plandocument.title %}
{{ plandocument.title|default:plandocument.get_document_type|document_title }}
{% endif %}
{{ plandocument.title|default:plandocument.get_document_type|document_title }}
{% if not plandocument.is_deleted or plandocument.file_exists %}
</a>
{% endif %}
Expand Down

0 comments on commit ef5da84

Please sign in to comment.