[med-svn] r1417 - trunk/community/infrastructure/scripts/qa/templates

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Mon Feb 18 09:57:05 UTC 2008


Author: hanska-guest
Date: 2008-02-18 09:57:04 +0000 (Mon, 18 Feb 2008)
New Revision: 1417

Added:
   trunk/community/infrastructure/scripts/qa/templates/debianmed
Modified:
   trunk/community/infrastructure/scripts/qa/templates/by_category
Log:
Adding new template -- hope it works.


Modified: trunk/community/infrastructure/scripts/qa/templates/by_category
===================================================================
--- trunk/community/infrastructure/scripts/qa/templates/by_category	2008-02-18 09:45:35 UTC (rev 1416)
+++ trunk/community/infrastructure/scripts/qa/templates/by_category	2008-02-18 09:57:04 UTC (rev 1417)
@@ -12,7 +12,6 @@
 <div class="bts-info"><div class=" popup"><a href="http://bugs.debian.org/$pkg.name"
 >$pkg.bts.keys.size</a>
 <!-- span class="paren">[</span -->
-foo test
 <table class="bts-info-details balloon">
 [% FOREACH bug IN pkg.bts.nsort %]
 <tr>

Copied: trunk/community/infrastructure/scripts/qa/templates/debianmed (from rev 1416, trunk/community/infrastructure/scripts/qa/templates/by_category)
===================================================================
--- trunk/community/infrastructure/scripts/qa/templates/debianmed	                        (rev 0)
+++ trunk/community/infrastructure/scripts/qa/templates/debianmed	2008-02-18 09:57:04 UTC (rev 1417)
@@ -0,0 +1,393 @@
+<?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">
+
+[% 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"
+>$pkg.bts.keys.size</a>
+<!-- span class="paren">[</span -->
+<table class="bts-info-details balloon">
+[% FOREACH bug IN pkg.bts.nsort %]
+<tr>
+    <td>
+        <a class="bts-${pkg.bts.$bug.severity}"
+            href="http://bugs.debian.org/$bug">#$bug</a>
+        [% IF pkg.bts.$bug.forwarded %]
+        [% SET F = pkg.bts.$bug.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 pkg.bts.$bug.keywordsA.size > 0 %]
+        <div style="font-size: smaller">
+            [% pkg.bts.$bug.keywordsA.join(", ") | html %]
+        </div>
+        [% END %]
+    </td>
+    <td>
+        [% qm = BLOCK %][% pkg | quotemeta %][% END %]
+        [% pkg.bts.$bug.subject.replace("^$qm:\\s*",'') | html %]</td>
+</tr>
+[% END #FOREACH %]
+</table>
+<!-- span class="paren">]</span -->
+</div></div>
+[% END #IF bugs %]
+[% END #BLOCK bts_link %]
+
+[% BLOCK package %]
+    [% SET arch_ver = pkg.archive.most_recent %]
+    [% SET arch_src = pkg.archive.most_recent_src %]
+    [% SET svn_ver = pkg.svn.version %]
+    [% SET svn_un_ver = pkg.svn.un_version %]
+    <tr>
+        <td>[% IF pkg.notes.size %]<span class="popup">$pkg.name<span
+                    class="balloon" style="margin-left:0">[% 
+                    pkg.notes.join(', ')
+                    %]</span></span>[% ELSE %]$pkg.name[% END %]
+            [% IF pkg.svn.section AND pkg.svn.section != "main" %]
+            <span class="section-$pkg.svn.section">[$pkg.svn.section]</span>
+            [% END #IF %]
+            [% IF ! hide_binaries
+                AND pkg.svn.binaries AND pkg.svn.binaries.size
+                AND (
+                    pkg.svn.binaries.size > 1
+                    OR pkg.svn.binaries.first != pkg.name
+                ) %]<br/><span style="font-size: smaller">([%
+                pkg.svn.binaries.join(', ') %])</span>[% END %]
+        </td>
+
+        <td[% IF pkg.hilight.svn %] class="todo"[% END %]>
+            [% chlog_url = BLOCK %][% pkg.name | format("$wsvn_url")
+            %]/debian/changelog?op=file&amp;rev=0&amp;sc=0[% END %]
+            <span class="popup"><a href="$chlog_url">$svn_ver</a><span
+                    id="${pkg.name}_rel_chlog_baloon" class="balloon"><a
+                        href="javascript:more_chlog('$pkg.name','rel')">[%
+                        pkg.svn.changer | html %] &mdash; [% pkg.svn.date |
+                        html %]</a>
+            </span></span>
+
+            [% IF svn_un_ver AND (svn_un_ver != svn_ver) %]
+            <span class="popup" style="font-size: smaller"><a
+                    href="$chlog_url">($svn_un_ver)</a><span
+                    id="${pkg.name}_unrel_chlog_baloon" class="balloon"><a
+                        href="javascript:more_chlog('$pkg.name','unrel')">[%
+                        pkg.svn.un_changer | html %] &mdash; [% pkg.svn.un_date
+                        | html %]</a></span></span>[% END #IF %]
+        </td>
+
+        <td[% IF pkg.hilight.archive %] class="todo"[% END %]>
+            [% IF arch_ver %]
+            [% IF arch_src != "new" OR pkg.archive.unstable %]
+            <a href="http://packages.qa.debian.org/$pkg.name">$arch_ver</a>
+            [% ELSE %]
+            <a href="http://ftp-master.debian.org/new/${pkg.name}_${arch_ver}.html">$arch_ver</a>
+            [% END #IF %]
+            [% END #IF %]
+            [% IF arch_src AND arch_src != "unstable" %]
+            ($arch_src)
+            [% END #IF %]
+        </td>
+
+        <td>[% INCLUDE bts_link pkg=pkg %]</td>
+
+        <td[% IF pkg.hilight.upstream %] class="todo"[% END %]><a href="[% IF
+                pkg.watch.upstream_mangled %][% pkg.watch.upstream_url | html
+                %][% ELSE %][% "${pkg.name}" | format("$wsvn_url")
+                %]/debian/watch?op=file&amp;rev=0&amp;sc=0[% END %]">[%
+                pkg.watch.upstream_mangled || pkg.watch.error
+            %]</a>
+            [% IF pkg.hilight.upstream AND pkg.watch.error %]<a
+                href="[% "${pkg.name}" | format("$wsvn_url")
+                        %]/debian/copyright?op=file&amp;rev=0&amp;sc=0"
+                >(copyright info)</a>
+            [% END %]
+            </td>
+    </tr>
+[% END #BLOCK package %]
+
+[% BLOCK section %]
+    [% IF list.0 %]
+    [% IF title and name %]
+    <thead>
+        <tr>
+            <th colspan="5" class="clickable"><a style="display: block" href="javascript:toggle_visibility('$name')">$title ($list.size)</a></th>
+        </tr>
+    </thead>
+    [% END #IF title and name %]
+    <tbody[% IF name %] id="$name" style="display: [% IF start_collapsed %]none[% ELSE %]table-row-group[% END %]"[% 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 %]
+        [% 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: white;
+            color: black;
+            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: #404040;
+            color: white;
+        }
+        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: #F5F5B5;
+            color: black;
+        }
+*/
+        #main_table {
+            width: 95%;
+        }
+        .todo {
+            background: #ADDBE6;    /* lightblue */
+        }
+        .section-non-free { color: red; }
+        .section-contrib { color: maroon; }
+        .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;
+        }
+        .popup .balloon,
+        .popup .paren,
+        .popup .expand {
+            display: none;
+        }
+        .popup:hover .balloon,
+        .popup:focus .balloon {
+            position: absolute;
+            display: block;
+            min-width: 15em;
+            max-width: 40em;
+            max-height: 75%;
+            overflow: auto;
+            margin: 0em 0 0 -15em;
+            padding: 0.5em;
+            border: 2px outset #F5F5B5;     /* light yellowish */
+            background: #F5F5B5;            /* light yellowish */
+            color: black;
+            /* 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;
+        }
+        div.bts-info div.popup {
+            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;
+        }
+        #options {
+            float: left;
+            padding: .5em;
+            border: 1px black dashed;
+            margin-bottom: 1em;
+        }
+        #options h2 { font-size: 110%; margin: 0; }
+        #options div { display: none }
+        #w3org { clear: both; }
+    </style>
+    <script type="text/javascript">
+        //<![CDATA[
+        <!--
+        function toggle_visibility(id)
+        {
+            var el = document.getElementById(id);
+            el.style.display = (el.style.display == 'none' ? 'table-row-group' : 'none');
+        }
+        function more_chlog(pkg,rel)
+        {
+            var xml;
+            if (window.XMLHttpRequest) {
+                xml = new XMLHttpRequest();
+            } else if (window.ActiveXObject) {
+                xml = new ActiveXObject("Microsoft.XMLHTTP");
+            } else {
+                alert("Your browser lacks the needed ability to use Ajax. Sorry.");
+                return false;
+            }
+
+            xml.open('GET', 'qareport-chlog.cgi?pkg='+pkg+';rel='+rel);
+
+            xml.onreadystatechange = function() {
+                ajaxStateChanged(xml, pkg, rel);
+            };
+
+            xml.send('');
+        }
+        function ajaxStateChanged(xml, pkg, rel)
+        {
+            var el = document.getElementById(pkg+'_'+rel+'_chlog_baloon');
+            if( !el )
+            {
+                alert('Element "'+pkg+'_'+rel+'_chlog_baloon'+'" not found');
+                return false;
+            }
+            if( xml.readyState <= 1 )
+            {
+                el.innerHTML = el.innerHTML + "<br/>Loading...";
+            }
+            if( xml.readyState == 3 )
+            {
+                el.innerHTML = el.innerHTML + ".";
+            }
+            if( xml.readyState == 4 )
+            {
+                if( xml.status == 200 )
+                {
+                    el.innerHTML = xml.responseText;
+                }
+                else
+                {
+                    el.innerHTML = xml.status+': '+xml.StatusText;
+                }
+            }
+        }
+        //-->
+        //]]>
+    </script>
+    <link href="/inc/style.css" type="text/css" rel="stylesheet" />
+</head>
+<body>
+<div style="text-align: center;">
+<a href="http://debian-med.alioth.debian.org/">
+	<img src="/img/logo.png" alt="Debian Med Project" />
+	</a>
+</div>
+<div class="heading">
+	<div class="tabBar" style="text-align: center;">
+		Aiutaci a vedere Debian usata dai medici e dai ricercatori! Unisciti a noi sulla <a
+		href="http://alioth.debian.org/projects/debian-med">pagina Alioth</a>.
+	</div>
+</div>
+<table class="columns">
+<tr>
+<td class="left">
+	<span class="section">informazioni</span>
+	<div class="section">
+		<div class="sectionTop"></div>
+		<div class="row" style="text-align: center;">
+			Sviluppatori, visitate la nostra<br />
+		</div>
+	</div>
+</td>
+<td class="main">
+	<span class="section"><?=_("QA report")?></span>
+	<div class="section">
+		<div class="sectionTop"></div>
+		<div class="row">
+			<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" %]
+				[% 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='unclassified' title='Unclassified' %]
+			</table>
+		</div>
+	</div>
+	<span class="section"><?=_("Options")?></span>
+	<div class="section">
+		<div class="sectionTop"></div>
+		<div class="row">
+			[% CGI.start_form({ Method => 'GET' }) %]
+			<p>
+				[% CGI.checkbox({ Name => 'show_all', Label => "Show all packages" }) %]
+				&nbsp;
+				[% CGI.checkbox({ Name => 'start_collapsed', Label => "Collapse tables" }) %]
+				&nbsp;
+				[% 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',
+					Labels => {
+						categories => "by category",
+						list => "by name",
+					}
+				}).join("\n") %]</p>
+			<p>Refresh: [% CGI.radio_group({
+					Name => 'refresh',
+					Values => [ 0, 1800, 3600, 7200 ],
+					Default => 0,
+					Labels => {
+						"0" => "No refresh",
+						"1800" => "30 min",
+						"3600" => "1 hour",
+						"7200" => "2 hours"
+					}
+				}).join("\n") %]</p>
+			<p>[% CGI.submit({ Label => 'Reload' }) %]</p>
+			[% CGI.end_form.join("\n") %]
+		</div>
+	</div>
+</td>
+</tr>
+</table>
+</body>
+</html>




More information about the debian-med-commit mailing list