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 @@
<%= headnote %>
+ +<% annotated_documents_title = [] %> diff --git a/app/components/document_doctrine_index_component.rb b/app/components/document_doctrine_index_component.rb index 663b5bc..879a29a 100644 --- a/app/components/document_doctrine_index_component.rb +++ b/app/components/document_doctrine_index_component.rb @@ -12,6 +12,7 @@ class DocumentDoctrineIndexComponent < 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/document_doctrine_index_component/document_doctrine_index_component.html.erb b/app/components/document_doctrine_index_component/document_doctrine_index_component.html.erb index 3b9605f..4c2622b 100644 --- a/app/components/document_doctrine_index_component/document_doctrine_index_component.html.erb +++ b/app/components/document_doctrine_index_component/document_doctrine_index_component.html.erb @@ -17,6 +17,9 @@
<%= 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 %>