You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
2.0 KiB
34 lines
2.0 KiB
<p class="mb-0 clickable-link" href="<%= show_url %>"> <%= raw content.html_safe %> </p> |
|
|
|
<div class="container-fluid p-0"> |
|
<% document_title = jurisprudence.short_title || jurisprudence.title %> |
|
<% 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.clean_reference_number, date_or_year].join(", ") %> </h5> |
|
<% annotations.each do |annotation| %> |
|
<% annotated_documents_title = [] %> |
|
<% annotation.documents.each do |annotated_document| %> |
|
<% ad_title = annotated_document.short_title || annotated_document.title %> |
|
<% 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.clean_reference_number, ad_date_or_year].join(", ") %> |
|
<% end %> |
|
<% citing_document_title = [document_title, annotation.document.clean_reference_number, date_or_year, clean_phil_rep(annotation), annotated_documents_title].reject(&:blank?).join(', ').html_safe %> |
|
|
|
<div class="row mb-2 pb-0 ms-3"> |
|
<div class="col-sm-1 p-0 me-1" style="width: auto;"> <strong> <%= "#{annotation.annomarks.map { |annomark| "(#{annomark.code})" }.join(" ")}" %> </strong> </div> |
|
<div class="col-sm-9 p-0 ms-1"> <%= raw annotation.content.present? ? content_diplay_text(annotation) : citing_document_title %> </div> |
|
</div> |
|
|
|
<% if annotation.editor_notes.present? %> |
|
<div class="row ms-5 mb-2 clickable-link" href="<%= show_url %>"> |
|
<div class="col-sm-2 p-0" style="width: 105px;"> |
|
<span> Editors Note: </span> |
|
</div> |
|
|
|
<div class="col-sm-10 ps-0"> |
|
<%= raw annotation.editor_notes %> |
|
</div> |
|
</div> |
|
<% end %> |
|
<% end %> |
|
</div>
|
|
|