blob: a0e26b63ff298a8fdc1c027bc4a41ac70eccf5df [file] [log] [blame]
Nils Diewald0ec142f2015-05-05 00:29:23 +00001% layout 'main', title => loc('searchtitle', q => search->query, ql => search->query_language);
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00002
3<div class="resultinfo">
Nils Diewalda898dac2015-05-06 21:04:16 +00004 <div id="pagination"><%= pagination(search->start_page, search->total_pages, url_with->query(['p' => '{page}'])) =%></div>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00005
Nils Diewald8f4b5da2014-12-03 22:13:39 +00006% my $found = search->total_results;
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00007% if ($found != -1) {
Nils Diewalda898dac2015-05-06 21:04:16 +00008% my $found_text = loc('numf', number => $found);
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00009% if (search->time_exceeded) {
Nils Diewalda898dac2015-05-06 21:04:16 +000010% $found_text = '> ' . $found_text;
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000011% };
12 <p class="found"><span id="total-results"><%= $found_text %></span> <%= loc('matchCount', found => $found) %></p>
Nils Diewalda898dac2015-05-06 21:04:16 +000013%# <% if (search->benchmark) { %> (~ <%= search->benchmark %>)<% } %>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000014% } else {
15 <p></p>
16% };
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>
Nils Diewalda898dac2015-05-06 21:04:16 +000027% } else {
28<p id="no-results"><%== loc 'noMatches', q => search->query %></p>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000029% }
Nils Diewald845282c2015-05-14 07:53:03 +000030
31%= include 'query'