]> git.deb.at Git - deb/packages.git/commitdiff
Show tooltips for non-main sections and non-main archives
authorPaul Wise <pabs@debian.org>
Sun, 24 Aug 2008 02:55:13 +0000 (10:55 +0800)
committerFrank Lichtenheld <frank@lichtenheld.de>
Fri, 24 Oct 2008 15:41:04 +0000 (17:41 +0200)
templates/config/mirrors.tmpl
templates/html/search.tmpl
templates/html/show.tmpl
templates/html/util.inc

index c5c1d33621bb319885491b072e2af626b5871d72..8a0d18e464f02b7057a5ddb463f4d17f6a119e13 100644 (file)
@@ -70,6 +70,7 @@ mirrors = {
        },
 
        volatile => {
        },
 
        volatile => {
+               title => g('volatile packages that need major changes during the life of a stable release'),
                mirror_list => 'http://www.debian.org/devel/debian-volatile/volatile-mirrors',
                europa => [
                        "volatile.debian.net/debian-volatile",
                mirror_list => 'http://www.debian.org/devel/debian-volatile/volatile-mirrors',
                europa => [
                        "volatile.debian.net/debian-volatile",
@@ -91,6 +92,7 @@ mirrors = {
        },
 
        backports => {
        },
 
        backports => {
+               title => g('newer packages that have been adapted to stable releases of Debian'),
                mirror_list => 'http://www.backports.org/debian/README.mirrors.html',
                europa => [
                        "www.backports.org/debian",
                mirror_list => 'http://www.backports.org/debian/README.mirrors.html',
                europa => [
                        "www.backports.org/debian",
@@ -118,6 +120,7 @@ mirrors = {
        },
 
        debports => {
        },
 
        debports => {
+               title => g('ports of packages to architectures not yet available in Debian'),
                mirror_list => 'http://wiki.debian.org/DebianPorts/Mirrors',
                unofficial_port => {
                        'kfreebsd-amd64' => {
                mirror_list => 'http://wiki.debian.org/DebianPorts/Mirrors',
                unofficial_port => {
                        'kfreebsd-amd64' => {
@@ -153,5 +156,11 @@ continents = {
                africa        => g('Africa'),
        }
 
                africa        => g('Africa'),
        }
 
+section_titles = {
+               'main' => g('packages that meet the Debian Free Software Guidelines'),
+               'contrib' => g('packages that meet the Debian Free Software Guidelines but need software not in Debian main'),
+               'non-free' => g('packages that do not meet the Debian Free Software Guidelines'),
+       }
+
 %]
 
 %]
 
index 3cd004c94910f66c9fe5f8ee7bba6dff107b4862..ede09eaa90c2dcb97bcbc27c7d46743774e1ae07 100644 (file)
   <h3>[% g('Package %s', pkg) %]</h3>
   <ul>
   [% FOREACH s IN suites;
   <h3>[% g('Package %s', pkg) %]</h3>
   <ul>
   [% FOREACH s IN suites;
-       suite = s.suite %]
+       suite = s.suite ; section = s.section %]
     <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 %]
     <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=s.section IF s.section && s.section != main_section %]
+       [%- PROCESS marker text=section title=section_titles.$section IF section && section != main_section %]
     [% FOREACH s.versions %]
     [% FOREACH s.versions %]
-      <br>[% version %] [%- IF archive != main_archive %] [<strong class="pmarker">[% archive %]</strong>][% END %]: [% architectures.join(' ') %]
+      <br>[% version %] [%- IF archive != main_archive %] [<strong class="pmarker" title="[% mirrors.$archive.title %]">[% archive %]</strong>][% END %]: [% architectures.join(' ') %]
     [% END %]
     [% IF s.providers %]
        <br>[% IF s.versions.size > 0; g('also provided by:'); ELSE; g('provided by:'); END %]
     [% 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 %]
      [% 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 IF section %] [%- PROCESS marker text=real_archive IF real_archive %]
+      [%- PROCESS marker text=section title=section_titles.$section IF section %] [%- PROCESS marker text=real_archive title=mirrors.$real_archive.title 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>
     <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>
index f18efe5c9ca13eb7b5c9dc64d95c2e38a896cd1b..936d3b4ca583e13fc54fe74fdad842d3656addd9 100644 (file)
@@ -56,9 +56,9 @@
 [% ELSE %]
 <h1>[% g('Package: %s (%s)', pkg, versions.short) %]
 [% END %]
 [% ELSE %]
 <h1>[% g('Package: %s (%s)', pkg, versions.short) %]
 [% END %]
-[%- PROCESS marker text=archive IF archive && archive != main_archive %]
-[%- PROCESS marker text=section IF section && section != main_section %]
-[%- PROCESS marker text=g('essential') IF page.get_newest('essential') == 'yes' %]</h1>
+[%- PROCESS marker text=archive title=mirrors.$archive.title IF archive && archive != main_archive %]
+[%- PROCESS marker text=section title=section_titles.$section IF section && section != main_section %]
+[%- PROCESS marker text=g('essential') title=g('package manager will refuse to remove this package by default') IF page.get_newest('essential') == 'yes' %]</h1>
 
 [% UNLESS is_virtual %]
 <div id="pmoreinfo">
 
 [% UNLESS is_virtual %]
 <div id="pmoreinfo">
index 731b8aec329800f3ce3263e202773dbee95cbe2b..cabc6a79aeb0404c2965ba3e205d0dfd296e7d12 100644 (file)
@@ -7,7 +7,7 @@
   [%- END -%]
   &nbsp;]
 [%- END -%]
   [%- END -%]
   &nbsp;]
 [%- END -%]
-[% BLOCK marker %] [<strong class="pmarker">[% text %]</strong>] [%- END %]
+[% BLOCK marker %] [<strong class="pmarker" [% 'title="' _ title _ '"' IF title %]>[% text %]</strong>] [%- END %]
 [%- BLOCK desc_i18n;
    IF trans_desc.$ddtp_lang;
       trans_desc.$ddtp_lang | html;
 [%- BLOCK desc_i18n;
    IF trans_desc.$ddtp_lang;
       trans_desc.$ddtp_lang | html;