Akron | 0e1ed24 | 2018-10-11 13:22:00 +0200 | [diff] [blame] | 1 | % layout 'main', title => loc('searchtitle', q => stash('q'), ql => stash('ql')), schematype => 'SearchResultsPage'; |
| 2 | |
| 3 | <div id="resultinfo" <% if (stash('results_size')) { %> class="found"<%} %>> |
| 4 | <div id="pagination"><%= pagination(stash('start_page'), stash('total_pages'), url_with->query(['p' => '{page}'])) =%></div> |
| 5 | % my $found = stash('total_results'); |
| 6 | <p class="found">\ |
| 7 | % if ($found != -1) { |
| 8 | % my $found_text = loc('numf', number => $found); |
| 9 | % if (stash('time_exceeded')) { |
| 10 | % $found_text = '> ' . $found_text; |
| 11 | % }; |
| 12 | <span id="total-results"><%= $found_text %></span> <%= loc('matchCount', found => $found) %>\ |
| 13 | %# <% if (stash('benchmark')) { %> (~ <%= stash('benchmark') %>)<% } %> |
| 14 | % } elsif (stash('start_index') == 0 && stash('result_size') == 0) { |
| 15 | <span id="total-results">0</span> <%= loc('matchCount', found => $found) %>\ |
| 16 | % }; |
| 17 | </p> |
| 18 | </div> |
| 19 | |
| 20 | %= include 'query2' |
| 21 | |
| 22 | <div id="search"> |
| 23 | % if (stash('total_results') != 0 && stash('result_size')) { |
| 24 | <ol class="align-left"> |
| 25 | %= search_results begin |
| 26 | %= include 'match', match => $_ |
| 27 | % end |
| 28 | </ol> |
| 29 | % } elsif (stash('result_size') == 0) { |
| 30 | <p id="no-results"><%= loc 'noMatches', q => stash('q'), ql => stash('ql') %></p> |
| 31 | % } |
| 32 | </div> |