svn: /pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ Package.tpl.php PackageDescription.tpl.php PackageRelease.tpl.php

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

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

Log:
Clean up package release page.

Changed paths:
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php
    A   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDescription.tpl.php
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageRelease.tpl.php

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php	2010-06-17 21:55:37 UTC (rev 300554)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php	2010-06-17 22:02:04 UTC (rev 300555)
@@ -12,19 +12,8 @@
         </div>

         <div class="pearbox-content">
-            <p>
-                <?php
-                $description = preg_replace("|\&lt\;\?php(.*)\?\&gt\;|Use", "highlight_string('<?php'.html_entity_decode('\\1').'?>', true)", $context->description);
-                echo nl2br(trim($description));
-                ?>
-            </p>

-            <div class="package-release-notes">
-                <h3>Release Notes - <?php echo $context->version['release']; ?></h3>
-                <p>
-                    <?php echo nl2br(trim($context->notes)); ?>
-                </p>
-            </div>
+            <?php echo $savant->render($context, 'PackageDescription.tpl.php'); ?>

             <div class="package-categories">
                 <h3>Categories</h3>

Added: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDescription.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDescription.tpl.php	                        (rev 0)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDescription.tpl.php	2010-06-17 22:02:04 UTC (rev 300555)
@@ -0,0 +1,13 @@
+            <p>
+                <?php
+                $description = preg_replace("|\&lt\;\?php(.*)\?\&gt\;|Use", "highlight_string('<?php'.html_entity_decode('\\1').'?>', true)", $context->description);
+                echo nl2br(trim($description));
+                ?>
+            </p>
+
+            <div class="package-release-notes">
+                <h3>Release Notes - <?php echo $context->version['release']; ?></h3>
+                <p>
+                    <?php echo nl2br(trim($context->notes)); ?>
+                </p>
+            </div>


Property changes on: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDescription.tpl.php
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision
Added: svn:eol-style
   + native

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageRelease.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageRelease.tpl.php	2010-06-17 21:55:37 UTC (rev 300554)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageRelease.tpl.php	2010-06-17 22:02:04 UTC (rev 300555)
@@ -1,30 +1,57 @@
 <?php
 // Set the title for the main template
-$parent->context->page_title = $context->name.' | pear2.php.net';
+$parent->context->page_title = $context->name . '-' . $context->version['release'] . ' | pear2.php.net';
 ?>
-<div class="package">
-    <div class="left">
-        <h2>
-            <a href="<?php echo pear2\SimpleChannelFrontend\Main::getURL() . $context->name; ?>"><?php echo $context->name; ?></a>-<?php echo $context->version['release']; ?>
-        </h2>
-        <ul class="package-info">
-            <li><strong>Version:</strong>
-                <span><?php echo $context->version['release']; ?></span>
-            </li>
-            <li><strong>Stability:</strong>
-                <span><?php echo $context->stability['release']; ?></span>
-            </li>
-            <li><strong>Released on:</strong>
-                <span><abbr class="releasedate" title="<?php echo $context->date.' '.$context->time; ?>"><?php echo $context->date; ?></abbr></span>
-            </li>
-            <li><strong>License:</strong>
-                <span><?php echo $context->license['name']; ?></span>
-            </li>
+
+<div class="left">
+
+    <div class="pearbox package-description">
+
+        <div class="pearbox-header navbar">
+            <h2>
+                <a href="<?php echo pear2\SimpleChannelFrontend\Main::getURL() . $context->name; ?>"><?php echo $context->name; ?></a>-<?php echo $context->version['release']; ?>
+            </h2>
+        </div>
+
+        <div class="pearbox-content">
+
+            <?php echo $savant->render($context, 'PackageDescription.tpl.php'); ?>
+
+        </div>
+
+    </div>
+
+</div>
+<div class="right">
+
+<?php
+
+echo $savant->render(
+    $context->name . '-' . $context->version['release'],
+    'InstallInstructions.tpl.php'
+);
+
+echo $savant->render($context, 'PackageDetails.tpl.php');
+
+?>
+
+<?php
+if (count($context->dependencies['required']->package) > 0):
+?>
+    <div class="package-dependencies">
+        <h3>Dependencies for <?php echo $context->name; ?></h3>
+        <ul>
+
+<?php
+
+foreach ($context->dependencies['required']->package as $name => $package) {
+    echo '<li><a href="http://'.$name.'">' . $name . '</a></li>';
+}
+
+?>
         </ul>
-        <h3>Release Notes</h3>
-        <div class="release-notes"><?php echo nl2br($context->notes); ?></div>
     </div>
-    <div class="right releases">
-        <?php echo $savant->render($context->name . '-' . $context->version['release'], 'InstallInstructions.tpl.php'); ?>
-    </div>
+
+<?php endif; ?>
+
 </div>
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.