Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 1 | % layout 'main', title => loc('searchtitle', q => search->query, ql => search->query_language); |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 2 | |
| 3 | <div class="resultinfo"> |
| 4 | %# <div id="pagination"><%= pagination(search->start_page, $pages, $url) =%></div> |
| 5 | |
Nils Diewald | 8f4b5da | 2014-12-03 22:13:39 +0000 | [diff] [blame] | 6 | % my $found = search->total_results; |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 7 | % 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 Diewald | 5d1ffb4 | 2014-05-21 17:45:34 +0000 | [diff] [blame] | 17 | </div> |
Nils Diewald | 5d1ffb4 | 2014-05-21 17:45:34 +0000 | [diff] [blame] | 18 | |
Nils Diewald | 8f4b5da | 2014-12-03 22:13:39 +0000 | [diff] [blame] | 19 | % if (search->total_results != 0 && search->results->size) { |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 20 | <div id="search"> |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 21 | <ol class="align-left"> |
| 22 | %= search_results begin |
| 23 | %= include 'match', match => $_ |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 24 | % end |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 25 | </ol> |
| 26 | </div> |
| 27 | % } |