diff --git a/app/components/doctrine_index_component.rb b/app/components/doctrine_index_component.rb index 50218c0..b466d8f 100644 --- a/app/components/doctrine_index_component.rb +++ b/app/components/doctrine_index_component.rb @@ -12,6 +12,7 @@ class DoctrineIndexComponent < BaseComponent delegate :content, to: :doctrine delegate :annotations, to: :doctrine delegate :subjects, to: :doctrine + delegate :headnote, to: :doctrine delegate :doctrine_jurisprudences, to: :doctrine def annotation_form_url diff --git a/app/components/doctrine_index_component/doctrine_index_component.html.erb b/app/components/doctrine_index_component/doctrine_index_component.html.erb index 8e84a94..d03dee2 100644 --- a/app/components/doctrine_index_component/doctrine_index_component.html.erb +++ b/app/components/doctrine_index_component/doctrine_index_component.html.erb @@ -5,8 +5,10 @@
<% document_title = jurisprudence.short_title || jurisprudence.title %> <% date_or_year = jurisprudence.docdate.present? ? jurisprudence.docdate.to_date.strftime("%B %d, %Y") : jurisprudence.year %> - +

<%= headnote %>

+ + <% annotations.each do |annotation| %>

<%= raw content.html_safe %>

+ +

<%= headnote %>

+ <% if opts[:is_doctrines_index].present? %> <% document_title = jurisprudence.short_title || jurisprudence.title %> <% date_or_year = jurisprudence.docdate.present? ? jurisprudence.docdate.to_date.strftime("%B %d, %Y") : jurisprudence.year %>