blob: fbe3895086bb396c96f4115a39aac326029f6e43 [file] [log] [blame]
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00001% layout 'main';
2
3<div class="resultinfo">
4%# <div id="pagination"><%= pagination(search->start_page, $pages, $url) =%></div>
5
Nils Diewald8f4b5da2014-12-03 22:13:39 +00006% my $found = search->total_results;
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00007% if ($found != -1) {
8% my $found_text = $found;
9% if (search->time_exceeded) {
10% $found_text = '> ' . $found;
11% };
12 <p class="found"><span id="total-results"><%= $found_text %></span> <%= loc('matchCount', found => $found) %></p>
13% } else {
14 <p></p>
15% };
16%# <% if (search->benchmark) { %> in <%= search->benchmark %><% } %>
Nils Diewald5d1ffb42014-05-21 17:45:34 +000017</div>
Nils Diewald5d1ffb42014-05-21 17:45:34 +000018
Nils Diewald8f4b5da2014-12-03 22:13:39 +000019% if (search->total_results != 0 && search->results->size) {
Nils Diewald4af3f0b2014-06-25 01:43:17 +000020<div id="search">
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000021 <ol class="align-left">
22%= search_results begin
23%= include 'match', match => $_
Nils Diewald4af3f0b2014-06-25 01:43:17 +000024% end
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000025 </ol>
26</div>
27% }