r9050 - /scripts/qa/templates/by_category_colours

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Thu Nov 8 17:44:15 UTC 2007


Author: gregoa-guest
Date: Thu Nov  8 17:44:15 2007
New Revision: 9050

URL: http://svn.debian.org/wsvn/?sc=1&rev=9050
Log:
experimental template with good old colours

Added:
    scripts/qa/templates/by_category_colours

Added: scripts/qa/templates/by_category_colours
URL: http://svn.debian.org/wsvn/scripts/qa/templates/by_category_colours?rev=9050&op=file
==============================================================================
--- scripts/qa/templates/by_category_colours (added)
+++ scripts/qa/templates/by_category_colours Thu Nov  8 17:44:15 2007
@@ -1,0 +1,223 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vim:ts=4:sw=4:et:ai:sts=4:syntax=xhtml
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+[% BLOCK bts_link %]
+[% IF data.bts.$pkg.size %]
+<div class="bts-info popup"><a href="http://bugs.debian.org/$pkg"
+>${data.bts.$pkg.size} bug[% IF data.bts.$pkg.size > 1 %]s[% END %]</a>
+<span class="paren">[</span>
+<table class="bts-info-details balloon">
+[% FOREACH s IN data.bts.$pkg.keys.sort %]
+<tr>
+    <td>
+        <a class="bts-${data.bts.$pkg.$s.severity}"
+            href="http://bugs.debian.org/$s">#$s</a>
+        [% IF data.bts.$pkg.$s.forwarded %]
+        [% SET F = data.bts.$pkg.$s.forwarded %]
+        [% qm = BLOCK %]^https?:[% FILTER quotemeta %]//rt.cpan.org/[% END %].+html\?id=(\d+)[% '$' %][% END %]
+        [% rt = F.match(qm) %]
+        <div style="font-size: smaller">
+            [% IF rt.0 %]
+            <a href="$F">cpan#[% rt.0 %]</a>
+            [% ELSE %]
+            <a href="[% IF F.match("^http") %][% GET F | html %][% ELSE %]mailto:[% GET F | uri %][% END %]">forwarded</a>
+            [% END %]
+        </div>
+        [% END %]
+        [% IF data.bts.$pkg.$s.keywords.length > 0 %]
+        <div style="font-size: smaller">
+            [% data.bts.$pkg.$s.keywords.split(" ").join(", ") | html %]
+        </div>
+        [% END %]
+    </td>
+    <td>
+        [% qm = BLOCK %][% pkg | quotemeta %][% END %]
+        [% data.bts.$pkg.$s.subject.replace("^$qm:\\s*",'') | html %]</td>
+</tr>
+[% END #FOREACH %]
+</table>
+<span class="paren">]</span>
+</div>
+[% END #IF bugs %]
+[% END #BLOCK bts_link %]
+
+[% BLOCK package %]
+    [% SET arch_ver = data.archive.$pkg.most_recent %]
+    [% SET svn_ver = data.svn.$pkg.version %]
+    [% SET svn_un_ver = data.svn.$pkg.un_version %]
+    <tr>
+        <td>$pkg</td>
+        <td[% IF arch_ver != svn_ver %] class="to_upload"[% END #IF %]><a
+        href="[% "$pkg" | format("$wsvn_url") %]/debian/changelog?op=file&amp;rev=0&amp;sc=0"
+        ><span class="popup">$svn_ver<span class="balloon"
+        >[% data.svn.$pkg.changer | html %] &mdash; [% data.svn.$pkg.date | html %]</span></span>
+        [% IF svn_un_ver AND (svn_un_ver != svn_ver) %]<span
+        style="font-size: smaller"> (<span class="popup">$svn_un_ver<span
+        class="balloon">[% data.svn.$pkg.un_changer | html %] &mdash; [% data.svn.$pkg.un_date | html %]</span></span
+        >)</span>[% END #IF %]</a></td>
+        <td>[% IF arch_ver %]<a href="http://packages.qa.debian.org/$pkg">$arch_ver</a>[% END #IF %]</td>
+        <td[% IF data.bts.$pkg.size %] class="to_debug"[% END #IF %]>[% INCLUDE bts_link data=data pkg=pkg %]</td>
+        <td[% IF data.svn.$pkg.mangled_ver != data.watch.$pkg.upstream_unmangled %] class="to_upgrade"[% END #IF %]><a href="[% IF data.watch.$pkg.upstream_unmangled %][%
+                data.watch.$pkg.upstream_url | html %][% ELSE %][% "$pkg"
+                | format("$wsvn_url") %][% END %]">[%
+            data.watch.$pkg.upstream_unmangled || ${data.watch.$pkg.error}
+            %]</a></td>
+    </tr>
+[% END #BLOCK package %]
+
+[% BLOCK section %]
+    [% IF list.0 %]
+    [% IF title and name %]
+    <tbody>
+        <tr>
+            <th colspan="5" class="clickable"><a style="display: block" href="javascript:toggle_visibility('$name')">$title ($list.size)</a></th>
+        </tr>
+    </tbody>
+    [% END #IF title and name %]
+    <tbody[% IF name %] id="$name"[% END %]>
+        <tr>
+            <th>Package</th>
+            <th>Repository</th>
+            <th>Archive</th>
+            <th>Bugs</th>
+            <th>Upstream</th>
+        </tr>
+        [% FOREACH pkg IN list %]
+        [% INCLUDE package pkg=pkg data=data %]
+        [% END #FOREACH list %]
+    </tbody>
+    [% END #IF list.size %]
+[% END #BLOCK section %]
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+    <title>${group_name} packages overview</title>
+    <style type="text/css">
+        body {
+            background: Window;
+            color: WindowText;
+            margin: 0;
+            padding: 8px;
+        }
+        table {
+            border: 1px solid black;
+            border-collapse: collapse;
+            empty-cells: show;
+        }
+        td, th {
+            border: 1px solid black;
+            padding: 0.2em;
+        }
+        th.clickable, th.clickable a, th.clickable a:visited {
+            background: Menu;
+            color: MenuText;
+        }
+        a {
+            text-decoration: none;
+        }
+/*  before enabling this, think about the link colors -- they all have to
+    be visible with the new background
+        tr:hover td, tr:hover th {
+            background: Highlight;
+            color: HighlightText;
+        }
+*/
+        .bts-wishlist {
+            color: green;
+        }
+        .bts-minor {
+            color: #004000;  /* darkgreen */
+        }
+        .bts-normal, .bts-important {
+        }
+        .bts-grave, .bts-serious {
+            color: red;
+        }
+        .bts-critical {
+            color: red;
+            text-decoration: blink;
+        }
+        /* From ikiwiki templates */
+        .popup {
+                border-bottom: 1px dotted #366;
+                color: #366;
+        }
+        .popup .balloon,
+        .popup .paren,
+        .popup .expand {
+                display: none;
+        }
+        .popup:hover .balloon,
+        .popup:focus .balloon {
+                position: absolute;
+                display: block;
+                min-width: 15em;
+                margin: 0em 0 0 -15em;
+                padding: 0.5em;
+                border: 2px outset InfoBackground;
+                background: InfoBackground;
+                color: InfoText;
+                /* Nonstandard, but very nice. */
+                opacity: 0.95;
+                -moz-opacity: 0.95;
+                filter: alpha(opacity=95);
+        }
+        table.bts-info-details td:first-child {
+            text-align: center;
+        }
+        .bts-info-details p {
+            text-indent: -3em;
+            margin: 0 0 0 3em;
+        }
+        table.bts-info-details td {
+            border: 0;
+            vertical-align: top;
+            text-align: left;
+        }
+        .to_upload {
+            background: lightsalmon;
+        }
+        .to_debug {
+            background: lightseagreen;
+        }
+        .to_upgrade {
+            background: lightblue;
+        }
+    </style>
+    <script type="text/javascript">
+        function toggle_visibility(id)
+        {
+            var el = document.getElementById(id);
+            el.style.display = (el.style.display == 'none' ? 'table-row-group' : 'none');
+        }
+    </script>
+</head>
+<body>
+<h1><a href="${group_url}">${group_name}</a></h1>
+<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" %]
+    [% INCLUDE section data=data list=weird name="weird" title="Packages with strange versions in the repository" %]
+    [% INCLUDE section data=data list=wip name="wip" title="Work in progress" %]
+    [% INCLUDE section data=data list=with_bugs name="with_bugs" title="With bugs" %]
+    [% INCLUDE section data=data list=all name='' title='' %]
+</table>
+<p>
+    <a href="http://validator.w3.org/check?uri=referer"><img
+        style="border:0;width:88px;height:31px"
+        src="http://www.w3.org/Icons/valid-xhtml10-blue"
+        alt="Valid XHTML 1.0 Strict"/></a>
+    <a href="http://jigsaw.w3.org/css-validator/check/referer">
+        <img style="border:0;width:88px;height:31px"
+        src="http://jigsaw.w3.org/css-validator/images/vcss" 
+        alt="Valid CSS!" /></a>
+</p>
+[% META id='$Id: by_category 9046 2007-11-08 15:03:39Z dmn $' %]
+<p style="border-top: 1px solid black">
+    <code>$template.id</code>
+</p>
+</body>
+</html>




More information about the Pkg-perl-cvs-commits mailing list