Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance...
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / svc / suggestion.tt
1 [% IF (render=='standalone') %]
2     [% USE Koha %]
3     [% INCLUDE 'doc-head-open.inc' %]
4     <title>Search suggestions</title>
5     [% INCLUDE 'doc-head-close.inc' %]
6     [% BLOCK cssinclude %][% END %]
7     </head>
8     <body id="opac-suggestion" class="opac">
9     [% INCLUDE 'masthead.inc' %]
10
11     <div class="main">
12         <ul class="breadcrumb">
13             <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
14             <li><a href="#">Search suggestions</a></li>
15         </ul>
16
17         <div class="container-fluid">
18             <div class="row-fluid">
19                 [% IF ( OpacNav || OpacNavBottom ) %]
20                     <div class="span2">
21                         <div id="navigation">
22                             [% INCLUDE 'navigation.inc' %]
23                         </div>
24                     </div>
25                     <div class="span10">
26                 [% ELSE %]
27                     <div class="span12">
28                 [% END %]
29                    <div id="searchsuggestions">
30             <h1 class="title">Suggestions</h1>
31 [% END %]
32
33 [% IF suggestions && suggestions.size %]
34     <div>
35         <span class="suggestionlabel">Did you mean:</span>
36         [% FOREACH suggestion IN suggestions %]
37             <span class="searchsuggestion"><a href="/cgi-bin/koha/opac-search.pl?q=[% suggestion.search |uri %]">[% suggestion.label |html %]</a></span>
38         [% END %]
39     </div>
40 [% ELSE %]
41     <span class="nosuggestions">Sorry, no suggestions.</span>
42 [% END %]
43
44 [% IF (render=='standalone') %]
45                     </div> <!-- / #searchsuggestions -->
46                 </div> <!-- / .span10/12 -->
47             </div> <!-- / .row-fluid -->
48         </div> <!-- / .container-fluid -->
49     </div> <!-- / .main -->
50     [% INCLUDE 'opac-bottom.inc' %]
51     [% BLOCK jsinclude %][% END %]
52 [% END %]