]> git.deb.at Git - deb/packages.git/commitdiff
templates/html/search.tmpl: Add suite as class for search results
authorFrank Lichtenheld <frank@lichtenheld.de>
Sat, 9 Jun 2007 21:49:50 +0000 (23:49 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sat, 9 Jun 2007 21:49:50 +0000 (23:49 +0200)
And use this to display "unofficial" suites a bit smaller than the
others. Move the CSS information to a new css file packages-site.css
since this information will probably very site specific.

static/packages-site.css [new file with mode: 0644]
templates/html/head.tmpl
templates/html/search.tmpl

diff --git a/static/packages-site.css b/static/packages-site.css
new file mode 100644 (file)
index 0000000..8d61a6c
--- /dev/null
@@ -0,0 +1,3 @@
+.oldstable-volatile, .oldstable-backports, .etch-m68k, .stable-backports {
+       font-size: smaller;
+}
index 74d8b4ab39a6d025feee4b74e9b1e9cba168f657..d224ea36aa1d72d08c15da8253d9de6142a18fb1 100644 (file)
@@ -11,6 +11,7 @@
 
 <link href="/debian.css" rel="stylesheet" type="text/css" media="all">
 <link href="/packages.css" rel="stylesheet" type="text/css" media="all">
 
 <link href="/debian.css" rel="stylesheet" type="text/css" media="all">
 <link href="/packages.css" rel="stylesheet" type="text/css" media="all">
+<link href="/packages-site.css" rel="stylesheet" type="text/css" media="all">
 [% IF rss_alternate %]
 <link rel="alternate" type="application/rss+xml" title="RSS" href="[% rss_alternate %]">
 [% END %]
 [% IF rss_alternate %]
 <link rel="alternate" type="application/rss+xml" title="RSS" href="[% rss_alternate %]">
 [% END %]
index 16ca843fd4e24e924f58d05515fcd1f083b3a3c7..33a0b4256d4391cf43d8976d0a346b3c1395a4e4 100644 (file)
@@ -81,7 +81,7 @@ Please consider using a longer keyword or more keywords.</p>
   <h3>Package [% pkg %]</h3>
   <ul>
   [% FOREACH s IN suites %]
   <h3>Package [% pkg %]</h3>
   <ul>
   [% FOREACH s IN suites %]
-    <li><a class="resultlink" href="[% make_url(pkg,'','suite',s.suite,'arch','','section','') %]">[% s.suite %]</a>[% ' (' _ s.subsection _ ')' IF s.subsection %]: [% s.desc %]  [%- IF s.section != main_section %] [<strong class="pmarker">[% s.section %]</strong>][% END %]
+    <li class="[% s.suite %]"><a class="resultlink" href="[% make_url(pkg,'','suite',s.suite,'arch','','section','') %]">[% s.suite %]</a>[% ' (' _ s.subsection _ ')' IF s.subsection %]: [% s.desc %]  [%- IF s.section != main_section %] [<strong class="pmarker">[% s.section %]</strong>][% END %]
     [% FOREACH s.versions %]
       <br>[% version %] [%- IF archive != main_archive %] [<strong class="pmarker">[% archive %]</strong>][% END %]: [% architectures.join(' ') %]
     [% END %]
     [% FOREACH s.versions %]
       <br>[% version %] [%- IF archive != main_archive %] [<strong class="pmarker">[% archive %]</strong>][% END %]: [% architectures.join(' ') %]
     [% END %]