r13040 - /scripts/qa/templates/by_category
tincho-guest at users.alioth.debian.org
tincho-guest at users.alioth.debian.org
Sat Jan 19 14:04:51 UTC 2008
Author: tincho-guest
Date: Sat Jan 19 14:04:50 2008
New Revision: 13040
URL: http://svn.debian.org/wsvn/?sc=1&rev=13040
Log:
- Drop some markup done with CGI, and do it with real tags.
- Changed tbody to thead for correct semantic.
- Made table have fixed width so it doesn't change when collapsing.
- Added two new CGI options: start_collapsed and hide_binaries (for pkg-java).
Modified:
scripts/qa/templates/by_category
Modified: scripts/qa/templates/by_category
URL: http://svn.debian.org/wsvn/scripts/qa/templates/by_category?rev=13040&op=diff
==============================================================================
--- scripts/qa/templates/by_category (original)
+++ scripts/qa/templates/by_category Sat Jan 19 14:04:50 2008
@@ -4,6 +4,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+[% USE CGI %]
+[% SET hide_binaries = CGI.param("hide_binaries") %]
+[% SET start_collapsed = CGI.param("start_collapsed") %]
[% BLOCK bts_link %]
[% IF pkg.bts.size %]
<div class="bts-info"><div class=" popup"><a href="http://bugs.debian.org/$pkg.name"
@@ -57,8 +60,11 @@
[% IF pkg.svn.section AND pkg.svn.section != "main" %]
<span class="section-$pkg.svn.section">[$pkg.svn.section]</span>
[% END #IF %]
- [% IF pkg.svn.binaries and pkg.svn.binaries.size > 1 or (
- pkg.svn.binaries.size and pkg.svn.binaries.first != pkg.name
+ [% IF ! hide_binaries AND pkg.svn.binaries
+ AND pkg.svn.binaries.size > 1
+ OR (
+ pkg.svn.binaries.size
+ AND pkg.svn.binaries.first != pkg.name
) %]<br/><span style="font-size: smaller">([%
pkg.svn.binaries.join(', ') %])</span>[% END %]
</td>
@@ -110,13 +116,13 @@
[% BLOCK section %]
[% IF list.0 %]
[% IF title and name %]
- <tbody>
+ <thead>
<tr>
<th colspan="5" class="clickable"><a style="display: block" href="javascript:toggle_visibility('$name')">$title ($list.size)</a></th>
</tr>
- </tbody>
+ </thead>
[% END #IF title and name %]
- <tbody[% IF name %] id="$name"[% END %]>
+ <tbody[% IF name %] id="$name" style="display: [% IF start_collapsed %]none[% ELSE %]table-row-group[% END %]"[% END %]>
<tr>
<th>Package</th>
<th>Repository</th>
@@ -163,6 +169,9 @@
color: black;
}
*/
+ #main_table {
+ width: 95%;
+ }
.todo {
background: #ADDBE6; /* lightblue */
}
@@ -295,7 +304,7 @@
</head>
<body>
<h1><a href="${group_url}">${group_name}</a></h1>
-<table>
+<table id="main_table">
[% INCLUDE section data=data list=for_upgrade name="for_upgrade" title="Newer upstream available" %]
[% INCLUDE section data=data list=for_upload name="for_upload" title="Ready for upload" %]
[% INCLUDE section data=data list=waiting name="waiting" title="NEW and incoming" %]
@@ -309,10 +318,16 @@
<div id="options">
<h2>Options</h2>
-[% USE CGI %]
[% CGI.start_form({ Method => 'GET' }) %]
-[% CGI.p(CGI.checkbox({ Name => 'show_all', Label => "Show all packages" })) %]
-[% CGI.p("Order:", CGI.radio_group({
+<p>
+[% CGI.checkbox({ Name => 'show_all', Label => "Show all packages" }) %]
+
+[% CGI.checkbox({ Name => 'start_collapsed', Label => "Collapse tables" }) %]
+
+[% CGI.checkbox({ Name => 'hide_binaries',
+ Label => "Don't show binary package names" }) %]
+</p>
+<p>Order: [% CGI.radio_group({
Name => 'format',
Values => [ 'list', 'categories' ],
Default => 'categories',
@@ -320,8 +335,8 @@
categories => "by category",
list => "by name",
}
-}).join("\n")) %]
-[% CGI.p("Refresh:", CGI.radio_group({
+}).join("\n") %]</p>
+<p>Refresh: [% CGI.radio_group({
Name => 'refresh',
Values => [ 0, 1800, 3600, 7200 ],
Default => 0,
@@ -331,8 +346,8 @@
"3600" => "1 hour",
"7200" => "2 hours"
}
-}).join("\n")) %]
-[% CGI.p( CGI.submit({ Label => 'Reload' }) ) %]
+}).join("\n") %]</p>
+<p>[% CGI.submit({ Label => 'Reload' }) %]</p>
[% CGI.end_form.join("\n") %]
</div>
<p id="w3org">
More information about the Pkg-perl-cvs-commits
mailing list