Skip to content

Commit

Permalink
show authorities on recap doc page, but without view all url
Browse files Browse the repository at this point in the history
  • Loading branch information
ss108 committed Oct 28, 2023
1 parent 5c7e835 commit 6d46cc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cl/opinion_page/templates/includes/authorities_section.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ <h3><span>Authorities ({{ authorities_context.total_authorities_count|intcomma }
</li>
{% endfor %}
</ul>
{% if authorities_context.view_all_authorities_url|length > 0 %}
<h4>
<a href="{{ authorities_context.view_all_authorities_url }}"
class="btn btn-default">
View All Authorities
</a>
</h4>
{% endif %}
</div>
{% endif %}
4 changes: 2 additions & 2 deletions cl/opinion_page/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def view_opinion(request: HttpRequest, pk: int, _: str) -> HttpResponse:
"private": cluster.blocked,
"citing_clusters": citing_clusters,
"citing_cluster_count": citing_cluster_count,
"authorities_section_context": authorities_context,
"authorities_context": authorities_context,
"top_parenthetical_groups": parenthetical_groups,
"summaries_count": cluster.parentheticals.count(),
"sub_opinion_ids": sub_opinion_ids,
Expand Down Expand Up @@ -667,7 +667,7 @@ def view_summaries(request: HttpRequest, pk: int, slug: str) -> HttpResponse:
)


def view_authorities(request: HttpRequest, pk: int, slug: str) -> HttpResponse:
def view_authorities(request: HttpRequest, pk: int, slug: str, doc_type=0) -> HttpResponse:
cluster = get_object_or_404(OpinionCluster, pk=pk)

return TemplateResponse(
Expand Down

0 comments on commit 6d46cc3

Please sign in to comment.