Skip to content

Commit

Permalink
feat(opinions.html): Ensure Case Name displays
Browse files Browse the repository at this point in the history
If case name full is the only case name
use it and then dont display it in the
metadata section
  • Loading branch information
flooie committed Dec 2, 2024
1 parent 726f388 commit cb5fb64
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cl/opinion_page/templates/opinions.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,13 @@ <h3>
</div>
</div>

<div class="case-caption jump-link" id="caption">{{ cluster.docket.case_name }}</div>
<div class="case-caption jump-link" id="caption">{% if cluster.case_name %}{{ cluster.case_name }}{% elif cluster.case_name_full %} {{ cluster.case_name_full }}{% else %}{{ cluster.case_name_short }}{% endif %}</div>
<h4 class="case-court">{{ cluster.docket.court }}</h4>
<br>
<div class="case-details">
<ul class="list-unstyled">
<li><strong>Citations:</strong> {{ cluster.citation_string|default:"None known" }}</li>

{% if cluster.case_name_full != cluster.case_name and cluster.case_name_full != "" %}
{% if cluster.case_name_full != cluster.case_name and cluster.case_name_full != "" and cluster.case_name != "" %}
<li><strong>Full Case Name:</strong>
{{ cluster.case_name_full }}
</li>
Expand Down

0 comments on commit cb5fb64

Please sign in to comment.