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.
 
 
 
 
 

30 lines
1.3 KiB

<header class="header bg-white b-b clearfix">
<div class="row m-t-sm align-items-end pagination-body">
<div class="<%=data.present? ? "col-md-8 mb-0 " : "col-md-12 mb-0"%> <%= opts[:is_cited_in_doc].present? ? 'd-none': ""%> ">
<% if opts[:is_subject_breadcrums].present? && subjects.present? %>
<ol class="breadcrumb mb-0">
<% subjects.each do |subject| %>
<% subject.ancestors.each do |ancestor| %>
<li class="breadcrumb-item d-inline-flex">
<h4 class="label-breadcrumb"> <%= link_to ancestor.name, custom_url(ancestor.id), class: "text-decoration-none" %> </h4>
</li>
<% end %>
<li class="breadcrumb-item d-inline-flex active">
<h4> <%= subject.name %> </h4>
</li>
<% end %>
</ol>
<% else %>
<h4 style="color: darkred" class="m-0">Search Results</h4>
<small style="color: darkred">
<%= page_entries_info data, entry_name: 'records' if data.present? %>
</small>
<% end %>
</div>
<div class="<%=data.present? ? "col-md-4 position-relative" : "d-none"%>">
<div class="text-center pagination justify-content-end me-3">
<%= (paginate data) if data.present? %>
</div>
</div>
</div>
</header>