Browse Source

Display `citing_documents` in `doctrines#annotation`

pull/29/head
alexdbondoc17 4 years ago
parent
commit
63e89fb622
  1. 2
      app/components/document_doctrine_show_component/document_doctrine_show_component.html.erb

2
app/components/document_doctrine_show_component/document_doctrine_show_component.html.erb

@ -158,7 +158,7 @@
<% ad_date_or_year = annotated_document.docdate.present? ? annotated_document.docdate.strftime("%B %d, %Y") : annotated_document.year %> <% ad_date_or_year = annotated_document.docdate.present? ? annotated_document.docdate.strftime("%B %d, %Y") : annotated_document.year %>
<% annotated_documents_title << [" citing #{ad_title}", annotated_document.reference_number, ad_date_or_year].join(", ") %> <% annotated_documents_title << [" citing #{ad_title}", annotated_document.reference_number, ad_date_or_year].join(", ") %>
<% end %> <% end %>
<%= raw [document_title, annotation.document.reference_number, date_or_year, annotation.phil_rep].reject(&:blank?).join(', ').html_safe %> <%= raw [document_title, annotation.document.reference_number, date_or_year, annotation.phil_rep, annotated_documents_title].reject(&:blank?).join(', ').html_safe %>
</p> </p>
</div> </div>

Loading…
Cancel
Save