79 lines
3.9 KiB
Scheme
79 lines
3.9 KiB
Scheme
<div class="content search-results">
|
|
<div class="container">
|
|
<div class="row">
|
|
<section class="col-lg-8 offset-lg-2">
|
|
<div class="pb-2 mt-4 mb-4 pb-3 border-bottom">
|
|
<h1>$Title.XML</h1>
|
|
</div>
|
|
$SearchForm
|
|
<% if $Query %>
|
|
<div class="page-summary clearfix mb-4">
|
|
<% if $Results %>
|
|
<% if $Original %>
|
|
<div class="row search-results-no-result">
|
|
<div class="col-md-12">
|
|
<div class="alert alert-warning" role="alert">
|
|
<%t CWP_Search.Original "No search results were found matching <strong>{original}</strong>." original=$Original %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end_if %>
|
|
<div class="row">
|
|
<div class="col-sm-12 col-md-8 search-results-results-message">
|
|
<p class="lead" tabindex="-1">
|
|
<% if $Original %>
|
|
<%t CWP_Search.ShowingResultsInsteadFor 'Showing results for "{query}" instead' query=$Query.XML %>
|
|
<% else %>
|
|
<%t CWP_Search.ShowingResultsFor 'Showing results for "{query}"' query=$Query.XML %>
|
|
<% end_if %>
|
|
</p>
|
|
</div>
|
|
<div class="col-sm-12 col-md-4 float-right search-results-results-page">
|
|
<p class="text-muted">
|
|
<%t CWP_Search.Pages "Displaying page {current} of {total}" current=$Results.CurrentPage total=$Results.TotalPages %>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<% else %>
|
|
<div class="row search-results-no-result">
|
|
<div class="col-md-12">
|
|
<div class="alert alert-warning" role="alert">
|
|
$NoSearchResults.XML
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end_if %>
|
|
</div>
|
|
|
|
<% if $Results %>
|
|
<div class="results listing">
|
|
<% loop $Results %>
|
|
<article class="result listing__item mb-4" data-highlight="$Up.Query.ATT">
|
|
<header>
|
|
<h1 class="h3">
|
|
<a href="$Link" title="$Title">$Title</a>
|
|
</h1>
|
|
</header>
|
|
$Content.Summary
|
|
</article>
|
|
<% end_loop %>
|
|
</div>
|
|
<% with $Results %>
|
|
<% include Pagination %>
|
|
<% end_with %>
|
|
<% end_if %>
|
|
<% else %>
|
|
<div class="row search-results__empty-search">
|
|
<div class="col-md-12">
|
|
<div class="alert alert-warning" role="alert">
|
|
$EmptySearch
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end_if %>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<% include PageUtilities %>
|
|
</div>
|