Skip to content

Commit

Permalink
feat(template): Add new template to render list of authorities
Browse files Browse the repository at this point in the history
  • Loading branch information
ERosendo committed Dec 7, 2023
1 parent 68e97ee commit 10142c2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cl/opinion_page/templates/includes/authorities_list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% load text_filters %}

<ul>
{% for authority in authorities %}
<li>
{{ authority.depth }} reference{{ authority.depth|pluralize }} to
<a href="{{ authority.cited_opinion.cluster.get_absolute_url }}?{{ request.META.QUERY_STRING }}" {% if authority.blocked %}rel="nofollow" {% endif %}>
{{ authority.cited_opinion.cluster.caption|safe|v_wrapper }}
</a>
<br />
<span class="bullet-tail">{{ authority.cited_opinion.cluster.docket.court }}</span>
<span class="bullet-tail">{{ authority.cited_opinion.cluster.date_filed }}</span>
</li>
{% endfor %}
</ul>

0 comments on commit 10142c2

Please sign in to comment.