]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/search.tmpl
Remove mistaken closing div
[deb/packages.git] / templates / html / search.tmpl
index 4503526eced2bfe981ce1d8620e1b7380f507bab..317d424ccfea4a0700ae1a618a43debaba739b1d 100644 (file)
@@ -38,7 +38,7 @@
        [% END %]
 [% END %]
 
-<p>[% g('Search in specific suite:') %]
+<p>[% g('Limit to suite:') %]
 [% FOREACH s IN all_suites %]
        [% IF s != suite_str %]
        [<a href="[% make_search_url('',"keywords=$keyword_esc",'suite',s) %]">[% s %]</a>]
@@ -51,7 +51,7 @@
        make_search_url('',"keywords=$keyword_esc",'suite','all')) %]
 [% END %]
 
-<p>[% g('Limit search to a specific architecture:') %]
+<p>[% g('Limit to a architecture:') %]
 [% FOREACH a IN all_architectures %]
    [% IF a != arch_str %]
    [<a href="[% make_search_url('',"keywords=$keyword_esc",'arch',a) %]">[% a %]</a>]
@@ -70,7 +70,6 @@
 <p>[% g('<a href="%s">Some</a> results have not been displayed due to the search parameters.',
        "$search_url?keywords=$keyword_esc") %]</p>
 [% END %]
-</div>
 
 [%- PROCESS 'html/messages.tmpl' -%]
 
 
 [% IF too_many_hits %]
 [% IF opts.searchon != "names" %]
-<p id="psearchtoomanyhits">[% g("Note that this only shows the best matches, sorted by relevance. If the first few packages don't match what you searched for, try using more keywords or alternative keywords.") %]</p>
+<div class="note">
+<p>[% g("Note that this only shows the best matches, sorted by relevance. If the first few packages don't match what you searched for, try using more keywords or alternative keywords.") %]</p>
+</div>
 [% ELSE %]
-<p id="psearchtoomanyhits">
+<div class="note">
+<p>
 [%- IF results %]
 [% g("Your keyword was too generic, for optimizing reasons some results might have been suppressed.<br>Please consider using a longer keyword or more keywords.") %]
 [%- ELSE -%]
 [% g("Your keyword was too generic.<br>Please consider using a longer keyword or more keywords.") %]
 [% END -%]
 </p>
+</div>
 [% END; END %]
 
 [% UNLESS results || too_many_hits %]
     <li class="[% suite %]"><a class="resultlink" href="[% make_url(pkg,'','suite',suite,'arch','','section','') %]">[% suite %]
        [%- ' (' _ suite_aliases.$suite _ ')' IF suite_aliases.$suite %]</a>[% ' (' _ s.subsection _ ')' IF s.subsection %]:
        [% PROCESS desc_i18n trans_desc=s.trans_desc desc=s.desc %]
-       [%- PROCESS marker text=section title=section_titles.$section IF section && section != main_section %]
+       [%- PROCESS marker text=section title=section_titles.$section url=section_urls.$section IF section && section != main_section %]
     [% FOREACH s.versions %]
-      <br>[% version %] [%- IF archive != main_archive %] [<strong class="pmarker" title="[% mirrors.$archive.title %]">[% archive %]</strong>][% END %]: [% architectures.join(' ') %]
+      <br>[% version %] [%- IF archive != main_archive %] [[% IF mirrors.$archive.url %]<a href="[% mirrors.$archive.url %]">[% END %]<strong class="pmarker" title="[% mirrors.$archive.title %]">[% archive %]</strong>[% IF mirrors.$archive.url %]</a>[% END %]][% END %]: [% architectures.join(' ') %]
     [% END %]
     [% IF s.providers %]
        <br>[% IF s.versions.size > 0; g('also provided by:'); ELSE; g('provided by:'); END %]
      [% origin = (archive == main_archive) ? suite : "$suite/$archive";
        js_id = string2id("$pkg$suite$archive")  %]
     <li><a class="resultlink" href="[% make_url(pkg,'','source','source','suite',origin,'section','','arch','') %]">[% origin %]</a> ([% subsection %]): [% version %]
-      [%- PROCESS marker text=section title=section_titles.$section IF section %] [%- PROCESS marker text=real_archive title=mirrors.$real_archive.title IF real_archive %]
+      [%- PROCESS marker text=section title=section_titles.$section url=section_urls.$section IF section %] [%- PROCESS marker text=real_archive title=mirrors.$real_archive.title url=mirrors.$real_archive.url IF real_archive %]
     <br>[% g('Binary packages:') %] <span id="js_[% js_id %]" class="p_js_elem"></span> <span id="html_[% js_id %]" class="binaries">[% FOREACH binary IN binaries.sort %]<a href="[% make_url(binary,'','source','','suite',suite,'archive',archive,'arch','','archive','') %]">[% binary %]</a>[% ', ' UNLESS loop.last %][% END %]</span>
        [% IF binaries.size > 10 %]
        <script type="text/javascript">init_toggle_elem("[% js_id %]","[% g('show %u binary packages', binaries.size) %]","[% g('hide %u binary packages', binaries.size) %]")</script>