]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/search.tmpl
Fix javascript code for long packages list
[deb/packages.git] / templates / html / search.tmpl
index 205e85bbb8c7d1ab36d49c23c3264a8267faa443..2cf2aeb1a249fe6d7f033b7efcc97dd92788f3aa 100644 (file)
@@ -48,7 +48,6 @@
 
 <div id="psearchres">
 
-[%# @translators: I'm really sorry :/ %]
 [% suite_wording = suite_enc.match("^(default|all)$") ? g("all suites") : g("suite(s) <em>$suite_enc</em>");
    section_wording = (section_enc == 'all') ? g("all sections") : g("section(s) <em>$section_enc</em>");
    arch_wording = (architectures_enc == 'any') ? g("all architectures") : g("architecture(s) <em>$architectures_enc</em>");
@@ -58,6 +57,7 @@
                source_wording, keyword_enc, suite_wording, section_wording, arch_wording);
     ELSE;
        exact_wording = opts.exact ? "" : g(" (including subword matching)");
+       # @translators: I'm really sorry :/
        msg = g("You have searched for <em>%s</em> in packages names and descriptions in %s, %s, and %s%s.",
                keyword_enc, suite_wording, section_wording, arch_wording, exact_wording);
     END %]
       [%- IF real_archive %] [<strong class="pmarker">[% real_archive %]</strong>][% END %]
     <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('%u binary packages', binaries.size) %])</script>
+       <script type="text/javascript">init_toggle_elem("[% js_id %]","[% g('%u binary packages', binaries.size) %]")</script>
        [% END %]
     </li>
   [% END %]