svn: /pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ ReleaseFileBrowser.tpl.php

[email protected] (Michael Gauthier)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
gauthierm                                Tue, 13 Jul 2010 19:15:30 +0000

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

Log:
Clean up navbar links for browsing release-specific files.

Changed paths:
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ReleaseFileBrowser.tpl.php

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ReleaseFileBrowser.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ReleaseFileBrowser.tpl.php	2010-07-13 18:59:56 UTC (rev 301247)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ReleaseFileBrowser.tpl.php	2010-07-13 19:15:30 UTC (rev 301248)
@@ -7,6 +7,9 @@
     $releaseRoot = $context->package->name;
 }

+$packageURL = PEAR2\SimpleChannelFrontend\Main::getURL()
+    . $context->package->name;
+
 $releaseURL = PEAR2\SimpleChannelFrontend\Main::getURL()
     . $releaseRoot;

@@ -25,10 +28,19 @@
 <div class="file-title pearbox">
     <div class="pearbox-header">
         <h2>
-            <a href="<?php echo $releaseURL; ?>"><?php echo $releaseRoot; ?></a> ›
-            <?php if (isset($context->options['file'])) { ?>
-                <span><?php echo $context->options['file']; ?></span>
-            <?php } ?>
+            <?php
+            echo '<a href="' . $packageURL . '">' . $context->package->name . '</a>';
+
+            if (isset($context->options['packageVersion'])) {
+                echo '-<a href="' . $releaseURL . '">' . $context->package->version['release'] . '</a>';
+            }
+
+            echo ' › ';
+
+            if (isset($context->options['file'])) {
+                echo '<span>' . $context->options['file'] . '</span>';
+            }
+            ?>
         </h2>
     </div>
 </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.