Bug#416473: DDPO: should contain the name of the developer in question</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=debian-bugs-dist@lists.debian.org&q=from:%22Joachim+Breitner%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Joachim Breitner</span></span></a></span> <span class="date"><a href="/search?l=debian-bugs-dist@lists.debian.org&q=date:20130525" rel="nofollow">Sat, 25 May 2013 09:09:23 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>Control: tag -1 + patch Hi,</pre><pre> while working on ddpo, I implemented this. Greetings, Joachim -- Joachim "nomeata" Breitner Debian Developer nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nome...@joachim-breitner.de | <a rel="nofollow" href="http://people.debian.org/~nomeata">http://people.debian.org/~nomeata</a> </pre><pre>From 95b24e4f6edd09f92e9b206bd181a595d91e849b Mon Sep 17 00:00:00 2001 From: Joachim Breitner <m...@joachim-breitner.de> Date: Sat, 25 May 2013 18:04:01 +0200 Subject: [PATCH 2/2] Show developer name in title Closes: #416473 --- wml/developer.wml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/wml/developer.wml b/wml/developer.wml index 8f8a6c3..78e5fe0 100644 --- a/wml/developer.wml +++ b/wml/developer.wml @@ -127,7 +127,7 @@ if($_GET['reset'] != 'yes') if ($_GET['set'] == 'yes') setcookie('columnsinfo', base64_encode(serialize($arg_cookie)), strtotime('+3 month')); } -function start_output () +function start_output ( $name ) { global $called_start_output; @@ -141,8 +141,14 @@ function start_output () header('Content-Style-Type: text/css'); header('Pragma: no-cache'); + /* We build the title from the value passed in the first invocation of start_output + which is almost always right, and never completely wrong. */ + $title = ""; + if ($name) + $title = " for $name"; + ?> -#use wml::templ::template title="Debian Developer's Packages Overview" author="Igor Genibel, Christoph Berg, and others" +#use wml::templ::template title="Debian Developer's Packages Overview<? print $title ?>" author="Igor Genibel, Christoph Berg, and others" {#style#: <link rel="stylesheet" type="text/css" href="developer.css" /> @@ -1461,7 +1467,6 @@ function output_emails( $emails ) { if( email_has_packages( $email ) ) { - start_output(); $name = dba_fetch( "name:".strtolower($email), $pack_db ); if( ! $name ) { @@ -1469,6 +1474,7 @@ function output_emails( $emails ) $name = $names[0]; } $global_carnivoreid = carnivoreemail2carnivoreid( $email ); + start_output( $name ); print_developer( $email, $name ); $global_carnivoreid = ""; } @@ -1540,8 +1546,6 @@ function output_carnivoreid( $carnivoreid ) global $seen_packages; $seen_packages = array(); - start_output(); - $email = ""; foreach( $emails as $email_candidate ) if( preg_match( "/\@debian\.org$/", $email_candidate ) ) @@ -1556,6 +1560,7 @@ function output_carnivoreid( $carnivoreid ) $name = $names[0]; } + start_output( $name ); print html_h(htmlspecialchars("Packages overview for $name"), 2, "center"); foreach( $emails as $email ) -- 1.8.3.rc3 </pre> <p><strong><a href="msg1124318/signature.asc" ><img src="../attachment.png" alt="Attachment:" width=27 height=28></a> <a href="msg1124318/signature.asc" >signature.asc</a></strong><br> <em>Description:</em> This is a digitally signed message part</p> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg1124314.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd2.html#1124318">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail3.html#1124318">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg1124320.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Bug#416473: DDPO: <title> should contain the name of the developer in question"> <input type="hidden" name="msgid" value="1369497904.5873.24.camel@kirk"> <input type="hidden" name="relpath" value="debian-bugs-dist@lists.debian.org/msg1124318.html"> <input type="submit" value=" Joachim Breitner "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="debian-bugs-dist@lists.debian.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search debian-bugs-dist"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/debian-bugs-dist@lists.debian.org/">debian-bugs-dist - all messages</a></li> <li class="icons-about"><a href="/debian-bugs-dist@lists.debian.org/info.html">debian-bugs-dist - about the list</a></li> <li class="icons-expand"><a href="/search?l=debian-bugs-dist@lists.debian.org&q=subject:%22Bug%23416473%5C%3A+DDPO%5C%3A+%3Ctitle%3E+should+contain+the+name+of+the+developer+in+question%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg1124314.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg1124320.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> <a href="#"><img src="/debian-bugs-dist@lists.debian.org/logo.png" alt="debian-bugs-dist"></a> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">1369497904.5873.24.camel@kirk</li> </ul> </div> </body> </html>