|
|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
<% date_or_year = jurisprudence.docdate.present? ? jurisprudence.docdate.to_date.strftime("%B %d, %Y") : jurisprudence.year %> |
|
|
|
|
|
|
|
|
|
<h5 class="clickable-link" style="color: darkred;" href="<%= document_path(jurisprudence, is_index_table: false, subject_ids: params[:subject_ids]) %>"> <%= [document_title, jurisprudence.reference_number, date_or_year].join(", ") %> </h5> |
|
|
|
|
<% annotations.order(created_at: :desc).each do |annotation| %> |
|
|
|
|
<% annotations.sort_by { |a| [a.document.library.rank, -a.document.year, -a.document.doc_date.strftime("%Y-%m-%d")] }.each do |annotation| %> |
|
|
|
|
<p class="mb-2 ms-3 clickable-link" href="<%= show_url %>"> |
|
|
|
|
<% annotated_documents_title = [] %> |
|
|
|
|
<% annotation.documents.each do |annotated_document| %> |
|
|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
<strong> <%= "#{annotation.annomarks.map { |annomark| "(#{annomark.code})" }.join(" ")}" %> </strong> |
|
|
|
|
<%= raw [document_title(annotation), annotation.document.reference_number, date_or_year(annotation), annotation.phil_rep, annotated_documents_title].reject(&:blank?).join(', ') %> |
|
|
|
|
<%= raw annotation.content.present? ? annotation.content : [document_title(annotation), annotation.document.reference_number, date_or_year(annotation), annotation.phil_rep, annotated_documents_title].reject(&:blank?).join(', ') %> |
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
<% if annotation.editor_notes.present? %> |
|
|
|
|
|