~ubuntu-branches/ubuntu/trusty/torrus/trusty-proposed

« back to all changes in this revision

Viewing changes to templates/search.html

  • Committer: Bazaar Package Importer
  • Author(s): Marc Haber
  • Date: 2008-03-08 00:18:46 UTC
  • mfrom: (1.2.1 upstream) (3.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080308001846-q3pinwcswe3uf7wj
Tags: 1.0.6-2
Add torrus-common.NEWS advising people to recompile their
configuration upon upgrading to torrus 1.0.6.
Thanks to Joerg Dorchain. Closes: #469274

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[% PROCESS 'html-incblocks.txt' %]
 
2
[% global.SearchString = variables.SEARCH; clearVar('SEARCH') %]
 
3
[% INCLUDE htmlstart
 
4
     title='Search results: ' _ global.SearchString
 
5
     contentClass="SingleColumnContent" %]
 
6
 
 
7
<H1>Search results: [% global.SearchString %]</H1>
 
8
[% INCLUDE treename %]
 
9
<DIV CLASS="Listing">
 
10
[% results = searchResults(global.SearchString);
 
11
 
 
12
   FOREACH entry = results;
 
13
 
 
14
    counter = counter + 1;
 
15
    IF counter % 2 == 0;
 
16
      evenRow = 1;
 
17
    ELSE;
 
18
      evenRow = 0;
 
19
    END;
 
20
 
 
21
    etoken = pathToken(entry.0);
 
22
%]
 
23
  <DIV CLASS="[% evenRow ? 'ListRowEven' : 'ListRow' %]">
 
24
    <SPAN CLASS="NodeName"><A HREF="[%pathUrl(etoken)%]">
 
25
    [% entry.0 %]</A></SPAN>
 
26
    <SPAN CLASS="NodeDescr">
 
27
    [% IF entry.1; entry.1 _ ': ' _ xmlnorm(nodeParam(etoken, entry.1));
 
28
    END %]
 
29
    </SPAN>
 
30
  </DIV>
 
31
[% END %]
 
32
</DIV>
 
33
 
 
34
 
 
35
</DIV><!-- Content -->[% global.contentFinished = 1 %]
 
36
<DIV CLASS="BottomMenu">
 
37
[% INCLUDE shortcut url=url(pathToken('/')) text="Datasources tree"
 
38
                    title="Back to the datasources tree" %]
 
39
[% INCLUDE searchdialog %]
 
40
</DIV>
 
41
 
 
42
[% INCLUDE htmlend %]