]> git.deb.at Git - deb/packages.git/commitdiff
html/head.tmpl: Compactify the header
authorFrank Lichtenheld <frank@lichtenheld.de>
Sat, 9 Jun 2007 21:15:23 +0000 (23:15 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sat, 9 Jun 2007 21:53:31 +0000 (23:53 +0200)
Make search for more compact by changing radio buttons
to dropwdown select list.

Use smaller images for the logo.

static/Pics/debian-small.png [new file with mode: 0644]
static/Pics/openlogo-nd-25.png [new file with mode: 0644]
templates/config.tmpl
templates/html/head.tmpl

diff --git a/static/Pics/debian-small.png b/static/Pics/debian-small.png
new file mode 100644 (file)
index 0000000..61e4cf8
Binary files /dev/null and b/static/Pics/debian-small.png differ
diff --git a/static/Pics/openlogo-nd-25.png b/static/Pics/openlogo-nd-25.png
new file mode 100644 (file)
index 0000000..5ad4487
Binary files /dev/null and b/static/Pics/openlogo-nd-25.png differ
index 0d99856e98278bde22d094979a083266aebb5ffd..6fb12e0c8e214cb5f4cd88e8d969e806de646451 100644 (file)
@@ -18,7 +18,7 @@
    cn_help_url = homepage _ 'intro/cn'
    logo = {
        url => homepage,
-        src => '/Pics/openlogo-nd-50.png',
+        src => '/Pics/openlogo-nd-25.png',
         alt => organisation,
    }
    copyright = {
index d224ea36aa1d72d08c15da8253d9de6142a18fb1..308d3965f9256e5a53721e5a355ee64afbe92f35 100644 (file)
    <div id="logo">
   <!-- very Debian specific use of the logo stuff -->
   <a href="[% logo.url %]"><img src="[% logo.src %]" alt="" /></a>
-  <a href="[% logo.url %]"><img src="/Pics/debian.png" alt="[% logo.alt %]" width="179" height="61"></a>
+  <a href="[% logo.url %]"><img src="/Pics/debian-small.png" alt="[% logo.alt %]" width="90" height="31"></a>
 </div> <!-- end logo -->
 
 [%- IF print_search_field %]
-[% checked = 'checked="checked"' %]
+[% checked = 'checked="checked"'
+   selected = 'selected="selected"' %]
 <form method="GET" action="/search">
 <div id="hpacketsearch">
 [% IF search_field_values.mode %]<input type="hidden" name="mode" value="[% search_field_values.mode %]">[% END %]
 [% IF search_field_values.suite %]<input type="hidden" name="suite" value="[% search_field_values.suite %]">[% END %]
 [% IF search_field_values.sections %]<input type="hidden" name="section" value="[% search_field_values.sections %]">[% END %]
 [% IF search_field_values.architectures %]<input type="hidden" name="arch" value="[% search_field_values.architectures %]">[% END %]
-<input type="text" size="30" name="keywords" value="[% search_field_values.keywords | html %]" id="kw">
 <input type="submit" value="Search">
+<select size="1" name="searchon">
+<option value="names" [% selected IF search_field_values.searchon == 'names' || search_field_values.searchon == 'default' %]>
+package names</option>
+<option value="all" [% selected IF search_field_values.searchon == 'all' %]>descriptions</option>
+<option value="sourcenames" [% selected IF search_field_values.searchon == 'sourcenames' %]>source package names</option>
+<option value="contents" [% selected IF search_field_values.searchon == 'contents' %]>package contents</option
+</select>
+<input type="text" size="30" name="keywords" value="[% search_field_values.keywords | html %]" id="kw">
 <span style="font-size: 60%"><a href="[% searchformurl %]">all options</a></span>
-<br>
-<div style="font-size: 80%">search in:
-<input type="radio" name="searchon" value="names" id="onlynames" [% checked IF search_field_values.searchon == 'names' || search_field_values.searchon == 'default' %]>
-<label for="onlynames">package names</label>&nbsp;&nbsp;
-
-<input type="radio" name="searchon" value="all" id="descs" [% checked IF search_field_values.searchon == 'all' %]>
-<label for="descs">descriptions</label>
-<br>
-<input type="radio" name="searchon" value="sourcenames" id="src" [% checked IF search_field_values.searchon == 'sourcenames' %]>
-<label for="src">source package names</label>
-<input type="radio" name="searchon" value="contents" id="conts" [% checked IF search_field_values.searchon == 'contents' %]>
-<label for="conts">package contents</label>
-</div>
 </div> <!-- end hpacketsearch -->
 </form>
 [% END %]