[csw-devel] SF.net SVN: opencsw:[619] web/wordpresscsw/wp-content/themes/opencsw

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Wed May 23 18:47:25 CEST 2012


Revision: 619
          http://opencsw.svn.sourceforge.net/opencsw/?rev=619&view=rev
Author:   bdwalton
Date:     2012-05-23 16:47:24 +0000 (Wed, 23 May 2012)
Log Message:
-----------
direct messages to pkgrequests list instead of retired maintainers

Modified Paths:
--------------
    web/wordpresscsw/wp-content/themes/opencsw/maintainer.php
    web/wordpresscsw/wp-content/themes/opencsw/package.php
    web/wordpresscsw/wp-content/themes/opencsw/qa-package.php

Modified: web/wordpresscsw/wp-content/themes/opencsw/maintainer.php
===================================================================
--- web/wordpresscsw/wp-content/themes/opencsw/maintainer.php	2012-05-23 00:23:27 UTC (rev 618)
+++ web/wordpresscsw/wp-content/themes/opencsw/maintainer.php	2012-05-23 16:47:24 UTC (rev 619)
@@ -21,6 +21,13 @@
     $maintainerFullName = $arrayInfo[1] ;
     $maintainerStatus   = $arrayInfo[2] ;
 
+    // if a maintainer is retired, send query mails to the pkgrequests list
+    if ($maintainerStatus == "Retired") {
+    	$maintainerContact  = "pkgrequests";
+    } else {
+    	$maintainerContact  = $maintainerLogin;
+    }
+
     if ($arrayInfo == -1) {
         print "<div id=\"container\">";
         print "<div id=\"content\">";
@@ -84,7 +91,7 @@
         print "<p>Actions availables on maintainer $arrayInfo[1].</p>";
         print "<ul>";
         print "<li>";
-        print "<a href=\"/composeEmail?maintainerName=$maintainerLogin&emailSubject=OpenCSW contact maintainer&maintainerFullName=$maintainerFullName\">Contact maintainer</a>";
+        print "<a href=\"/composeEmail?maintainerName=$maintainerContact&emailSubject=OpenCSW contact maintainer&maintainerFullName=$maintainerFullName\">Contact maintainer</a>";
         print "</li>";
         print "</ul>";
 

Modified: web/wordpresscsw/wp-content/themes/opencsw/package.php
===================================================================
--- web/wordpresscsw/wp-content/themes/opencsw/package.php	2012-05-23 00:23:27 UTC (rev 618)
+++ web/wordpresscsw/wp-content/themes/opencsw/package.php	2012-05-23 16:47:24 UTC (rev 619)
@@ -24,6 +24,14 @@
     $packageVersion       = $pkgInfo[3];
     $upstreamURL          = $pkgInfo[4];
     $maintainerLogin      = $pkgInfo[5];
+
+    // for retired maintainers, direct inquiries to a place we'll receive them
+    if ($maintainerStatus == "Retired") {
+    	$maintainerContact = "pkgrequests";
+    } else {
+    	$maintainerContact = $maintainerLogin;
+    }
+
     $repositoryUrl        = $pkgInfo[6]; 
     $repositoryUrlBase    = "http://sourceforge.net/apps/trac/gar/browser/";
     $repositoryUrlSuffix  = "?rev=";
@@ -119,7 +127,7 @@
         print "<p>Actions availables on package $pkgName.</p>";
         print "<ul>";
         print     "<li>";
-        print         "<a href=\"/composeEmail?maintainerName=$maintainerLogin&emailSubject=OpenCSW question about package $pkgName&maintainerFullName=$maintainerName&softwareName=$softwareName\">Contact maintainer</a>";
+        print         "<a href=\"/composeEmail?maintainerName=$maintainerContact&emailSubject=OpenCSW question about package $pkgName&maintainerFullName=$maintainerName&softwareName=$softwareName\">Contact maintainer</a>";
         print     "</li>";
         print     "<li>";
         print         "<a href=\"/search/$softwareName\">View files in package</a>";

Modified: web/wordpresscsw/wp-content/themes/opencsw/qa-package.php
===================================================================
--- web/wordpresscsw/wp-content/themes/opencsw/qa-package.php	2012-05-23 00:23:27 UTC (rev 618)
+++ web/wordpresscsw/wp-content/themes/opencsw/qa-package.php	2012-05-23 16:47:24 UTC (rev 619)
@@ -22,6 +22,14 @@
     $packageVersion       = $pkgInfo[3];
     $upstreamURL          = $pkgInfo[4];
     $maintainerLogin      = $pkgInfo[5];
+
+    // for retired maintainers, direct inquiries to a place we'll receive them
+    if ($maintainerStatus == "Retired") {
+    	$maintainerContact = "pkgrequests";
+    } else {
+    	$maintainerContact = $maintainerLogin;
+    }
+
     $repositoryUrl        = $pkgInfo[6];
     $repositoryUrlBase    = "http://sourceforge.net/apps/trac/gar/browser/";
     $repositoryUrlSuffix  = "?rev=";
@@ -111,7 +119,7 @@
         print "<p>Actions availables on package $pkgName.</p>";
         print "<ul>";
         print     "<li>";
-        print         "<a href=\"/composeEmail?maintainerName=$maintainerLogin&emailSubject=OpenCSW question about package $pkgName&maintainerFullName=$maintainerName&softwareName=$softwareName\">Contact maintainer</a>";
+        print         "<a href=\"/composeEmail?maintainerName=$maintainerContact&emailSubject=OpenCSW question about package $pkgName&maintainerFullName=$maintainerName&softwareName=$softwareName\">Contact maintainer</a>";
         print     "</li>";
         print     "<li>";
         print         "<a href=\"/search/$softwareName\">View files in package</a>";

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list