Skip to content

Commit

Permalink
fixed template bugs for authorities partial for opinions and recap docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ss108 committed Oct 28, 2023
1 parent 88f3a53 commit 15d1e1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cl/opinion_page/templates/includes/authorities_section.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
{% load text_filters %}

{# Show cases this case cites #}
{% if context.total_authorities_count > 0 %}
{% if authorities_authorities_authorities_context.total_authorities_count > 0 %}
<div id="authorities" class="sidebar-section">
<h3><span>Authorities ({{ context.total_authorities_count|intcomma }})</span></h3>
<h3><span>Authorities ({{ authorities_context.total_authorities_count|intcomma }})</span></h3>
<p class="bottom">This opinion cites:</p>
<ul>
{% for authority in view_data.top_authorities %}
Expand All @@ -22,7 +22,7 @@ <h3><span>Authorities ({{ context.total_authorities_count|intcomma }})</span></h
{% endfor %}
</ul>
<h4>
<a href="{{ context.view_all_authorities_url }}"
<a href="{{ authorities_context.view_all_authorities_url }}"
class="btn btn-default">
View All Authorities
</a>
Expand Down
2 changes: 1 addition & 1 deletion cl/opinion_page/templates/recap_document.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h3 class="inline"><span>Your Notes</span></h3>
</div>
</div>

{% include "includes/authorities_section.html" with context=authorities_section_context%}
{% include "includes/authorities_section.html" with authorities_context=authorities_context%}
{% include "includes/social_links.html" %}
{% include "includes/donate_sidebar.html" with referrer="recap-doc-donate-now" %}
</div>
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 @@ -542,7 +542,7 @@ def view_recap_document(
rd.docket_entry.docket.court_id, "US/Eastern"
),
"redirect_to_pacer_modal": redirect_to_pacer_modal,
"authorities_section_context": authorities_context
"authorities_context": authorities_context
},
)

Expand Down

0 comments on commit 15d1e1d

Please sign in to comment.