svn: /pear2/sandbox/pear2.php.net/trunk/www/ css/category.css css/package.css templates/pear2/html/Categories.tpl.php templates/pear2/html/Category.tpl.php templates/pear2/html/PackageDetails.tpl.php

[email protected] (Michael Gauthier)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
gauthierm                                Tue, 22 Jun 2010 17:56:25 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=300667

Log:
Tidy up styles on category page and strip PEAR2_ prefix from package titles in category and package lists.

Changed paths:
    U   pear2/sandbox/pear2.php.net/trunk/www/css/category.css
    U   pear2/sandbox/pear2.php.net/trunk/www/css/package.css
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Categories.tpl.php
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Category.tpl.php
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDetails.tpl.php

Modified: pear2/sandbox/pear2.php.net/trunk/www/css/category.css
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/css/category.css	2010-06-22 17:41:01 UTC (rev 300666)
+++ pear2/sandbox/pear2.php.net/trunk/www/css/category.css	2010-06-22 17:56:25 UTC (rev 300667)
@@ -26,3 +26,38 @@
 }

 /* }}} */
+/* {{{ Category package list */
+
+.view-category .package-title {
+	font-weight: bold;
+	font-size: 17px;
+}
+
+.view-category .package {
+	margin-bottom: 1em;
+	padding-bottom: 1em;
+	border-bottom: 1px solid #d8e7d0;
+}
+
+.view-category .package:last-child {
+	margin-bottom: 0;
+	padding-bottom: 0;
+	border-bottom: none;
+}
+
+.view-category .package-info {
+	float: left;
+	width: 415px;
+	padding-right: 10px;
+}
+
+.view-category .package-more-info {
+	margin-left: 425px;
+	padding-left: 10px;
+}
+
+.view-category .package-more-info table.package-details {
+	margin: 0;
+}
+
+/* }}} */

Modified: pear2/sandbox/pear2.php.net/trunk/www/css/package.css
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/css/package.css	2010-06-22 17:41:01 UTC (rev 300666)
+++ pear2/sandbox/pear2.php.net/trunk/www/css/package.css	2010-06-22 17:56:25 UTC (rev 300667)
@@ -115,6 +115,7 @@
 	color: #af351a;
 }

+.package-devel,
 .package-alpha {
 	color: #af351a;
 }

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Categories.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Categories.tpl.php	2010-06-22 17:41:01 UTC (rev 300666)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Categories.tpl.php	2010-06-22 17:56:25 UTC (rev 300667)
@@ -49,10 +49,11 @@
                 echo '…';
                 break;
             } else {
-                $packageHref = PEAR2\SimpleChannelFrontend\Main::getURL()
+                $packageTitle = str_replace('PEAR2_', '', $package->name);
+                $packageHref  = PEAR2\SimpleChannelFrontend\Main::getURL()
                     . $package->name;

-                echo '<a href="' . $packageHref . '">' . $package->name . '</a>';
+                echo '<a href="' . $packageHref . '">' . $packageTitle . '</a>';
             }

             echo '</li>';

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Category.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Category.tpl.php	2010-06-22 17:41:01 UTC (rev 300666)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Category.tpl.php	2010-06-22 17:56:25 UTC (rev 300667)
@@ -18,14 +18,16 @@
 <?php

 foreach ($context as $key => $package) {
+    $packageTitle = str_replace('PEAR2_', '', $package->name);
+    $packageHref  = PEAR2\SimpleChannelFrontend\Main::getURL()
+        . $package->name;
+
     echo '<div class="package">';

     echo '<div class="package-info">';

     echo '<div class="package-title">';
-    echo '<a href="' . PEAR2\SimpleChannelFrontend\Main::getURL()
-        . $package->name . '">' . $package->name . '</a>';
-
+    echo '<a href="' . $packageHref . '">' . $packageTitle . '</a>';
     echo '</div>';
     echo '<div class="package-description">';
     echo '<p>' . $package->summary . '</p>';

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDetails.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDetails.tpl.php	2010-06-22 17:41:01 UTC (rev 300666)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDetails.tpl.php	2010-06-22 17:56:25 UTC (rev 300667)
@@ -1,6 +1,9 @@
 <?php

 switch ($context->stability['release']) {
+case 'devel':
+    $statusClass = 'package-devel';
+    break;
 case 'alpha':
     $statusClass = 'package-alpha';
     break;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.