|
|
|
@ -1,24 +1,9 @@ |
|
|
|
<div class="row-flex m-3 mt-0 doctrine-content-body clickable-link" href="<%= jurisprudence.present? ? document_doctrine_path(jurisprudence.id, id) : doctrine_path(id)%>"> |
|
|
|
<div class="row-flex m-3 mt-0 doctrine-content-body clickable-link" href="<%= jurisprudence.present? ? document_doctrine_path(jurisprudence.id, id) : doctrine_path(id)%>"> |
|
|
|
<% if opts[:is_doctrines_index].blank? %> |
|
|
|
|
|
|
|
<% if opts[:is_subjects_index].blank? %> |
|
|
|
|
|
|
|
<% if opts[:is_doctrines_index].present? && opts[:subject_ids].reject(&:blank?).present? %> |
|
|
|
|
|
|
|
<h5 style="color: darkred;"> <%= subjects.where(id: opts[:subject_ids].map(&:to_i)).map(&:lineage_name).join(" ") %> </h5> |
|
|
|
|
|
|
|
<% elsif subjects.present? %> |
|
|
|
|
|
|
|
<% subjects.each do |subject| %> |
|
|
|
|
|
|
|
<h5 style="color: darkred;"> <%= subject.lineage_name %> </h5> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
<% else %> |
|
|
|
|
|
|
|
<h5> (No Subjects Provided) </h5> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="container-sm <%= opts[:is_subjects_index].present? ? 'm-0 ps-0' : '' %>"> |
|
|
|
<div class="container-sm <%= opts[:is_subjects_index].present? ? 'm-0 ps-0' : '' %>"> |
|
|
|
<span> <b> <i> <%= headnote %> </i> </b> </span> |
|
|
|
<span> <b> <i> <%= headnote %> </i> </b> </span> |
|
|
|
<p class="mb-0"> <%= raw content.html_safe %> </p> |
|
|
|
<p class="mb-0"> <%= raw content.html_safe %> </p> |
|
|
|
|
|
|
|
|
|
|
|
<div class="container-fluid p-0"> |
|
|
|
<div class="container-fluid p-0"> |
|
|
|
|
|
|
|
|
|
|
|
<% if opts[:is_doctrines_index].present? %> |
|
|
|
<% if opts[:is_doctrines_index].present? %> |
|
|
|
<% document_title = jurisprudence.short_title || jurisprudence.title %> |
|
|
|
<% document_title = jurisprudence.short_title || jurisprudence.title %> |
|
|
|
<% date_or_year = jurisprudence.docdate.present? ? jurisprudence.docdate.to_date.strftime("%B %d, %Y") : jurisprudence.year %> |
|
|
|
<% date_or_year = jurisprudence.docdate.present? ? jurisprudence.docdate.to_date.strftime("%B %d, %Y") : jurisprudence.year %> |
|
|
|
|