Skip to content

Commit

Permalink
fix(authorities): restore authorities tab in docket authorities page
Browse files Browse the repository at this point in the history
  • Loading branch information
elisa-a-v committed Jan 29, 2025
1 parent 140108c commit ccd0c60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cl/opinion_page/templates/docket_authorities.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% block tab-content %}
<div class="flex flex-column justify-content-center col-xs-12 col-md-10 col-lg-12">
<div class="col-xs-12 col-md-10 col-lg-10">
{% with authorities_count=opinions_cited.count %}
{% with authorities_count=authorities.count %}
<h3>The filings in this docket cite {{authorities_count|intcomma}} opinion{{authorities_count|pluralize}}</h3>
{% endwith %}
<hr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load text_filters %}

<ul>
{% for opinion in opinions_cited %}
{% for opinion in authorities %}
<li>
<a href="/?type=r&q=docket_id%3A{{ docket.pk }}%20AND%20cites%3A({{ opinion.cluster.sub_opinions.all|OR_join }})">
{{ opinion.num_filings }} filing{{ opinion.num_filings|pluralize }}
Expand Down
2 changes: 1 addition & 1 deletion cl/opinion_page/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ async def docket_authorities(
# Needed to show/hide parties tab.
"parties": await docket.parties.aexists(),
"docket_entries": await docket.docket_entries.aexists(),
"opinions_cited": docket.authority_opinions.distinct(),
"authorities": docket.authority_opinions.distinct(),
}
)
return TemplateResponse(request, "docket_authorities.html", context)
Expand Down

0 comments on commit ccd0c60

Please sign in to comment.