stas 02/02/03 23:16:44 Modified: src/search search.tt Log: - tidy up Revision Changes Path 1.3 +23 -32 modperl-docs/src/search/search.tt Index: search.tt =================================================================== RCS file: /home/cvs/modperl-docs/src/search/search.tt,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- search.tt 3 Feb 2002 11:14:55 -0000 1.2 +++ search.tt 4 Feb 2002 07:16:43 -0000 1.3 @@ -1,12 +1,10 @@ - - -[% # This is just an example -- you would want your own "page" for the wrapper %] - +[% # This template is used for rendering the search results + # It expects the search hash ref to be set. +-%] [% WRAPPER searchresults.html %] [% PROCESS swish_header %] - [% title = PROCESS title %] [% IF ! search.results %] @@ -22,52 +20,45 @@ [% END %] -[% # This is just an example -- you would want your own "page" to wrap around "swish" %] -[% BLOCK page %] - - - - - [% title || "Welcome" %] - - - [% content %] - - -[% END %] - - [% BLOCK title %] + [% IF ! search.results %] [% search.errstr || search.config('title') || "Search page" %] - [% ELSE %] [% search.navigation('hits') %] Results for [[% search.query_simple | html %]] [% END %] + [% END %] + [% BLOCK swish_header %] - + + + +
- - Swish-e home page - - [% search.config('title') || "Search page" %] -
+ Swish-e home page + + [% search.config('title') || "Search page" %] +
[% END %] + [% BLOCK show_message %] + [% IF search.errstr %] [% search.errstr | html %] [% END %] -[% END %] +[% END %] [% BLOCK search_form %] + [% CGI.start_form( '-action' => CGI.script_name) %] [% CGI.textfield( { name => 'query', @@ -87,6 +78,7 @@ [% BLOCK nav_bar %] + [% search.stopwords_removed %] @@ -125,10 +117,12 @@ [% END %]
+ [% END %] [% BLOCK results_list %] + [% FOREACH item = search.results %]
@@ -151,8 +145,5 @@
[% END %] -[% END %] - - - +[% END %] --------------------------------------------------------------------- To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org For additional commands, e-mail: docs-cvs-help@perl.apache.org