Browse Source

Merge pull request #29 from lexintegritastech/improve-main-ui

Display `citing_documents` in `doctrines#annotation`
pull/31/head
Alexander D. Bondoc 4 years ago committed by GitHub
parent
commit
0256fa09ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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