diff --git a/cl/opinion_page/templates/opinions.html b/cl/opinion_page/templates/opinions.html index 3cb9746763..8b2190a252 100644 --- a/cl/opinion_page/templates/opinions.html +++ b/cl/opinion_page/templates/opinions.html @@ -17,6 +17,9 @@ + {% if tab == "pdf" %} + + {% endif %} {% endblock %} @@ -212,7 +215,7 @@

- +

{{ cluster|best_case_name|safe }}

{{ cluster.docket.court }}


@@ -310,7 +313,7 @@

{{ cluster.docket.court }}

{% endif %} {% if has_downloads and "pdf" in pdf_path or cluster.filepath_pdf_harvard %} {% endif %} diff --git a/cl/opinion_page/views.py b/cl/opinion_page/views.py index fc45ff0a4e..64f1d961fb 100644 --- a/cl/opinion_page/views.py +++ b/cl/opinion_page/views.py @@ -952,16 +952,15 @@ async def setup_opinion_context( :param tab: The tab to load :return: The opinion page context used to generate the page """ - title = ", ".join( - [ - s - for s in [ - trunc(best_case_name(cluster), 100, ellipsis="..."), - await cluster.acitation_string(), - ] - if s.strip() - ] - ) + tab_intros = { + "authorities": "Authorities for ", + "cited-by": "Citations to ", + "related-cases": "Similar cases to ", + "summaries": "Summaries of ", + "pdf": "Download PDF for ", + } + tab_intro = tab_intros.get(tab, "") + title = f"{tab_intro}{trunc(best_case_name(cluster), 100, ellipsis='...')}" has_downloads = False pdf_path = None if cluster.filepath_pdf_harvard: