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

From: Date: Thu, 15 Jul 2010 18:06:35 +0000
Subject: svn: /pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ Package.tpl.php PackageDetails.tpl.php PackageRelease.tpl.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9588@lists.php.net to get a copy of this message
gauthierm Thu, 15 Jul 2010 18:06:35 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=301297 Log: Add file browse button to package release page. Changed paths: U pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php U pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDetails.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-07-15 17:57:22 UTC (rev 301296) +++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php 2010-07-15 18:06:35 UTC (rev 301297) @@ -42,13 +42,7 @@ echo $savant->render($context, 'PackageDetails.tpl.php'); ?> -<?php -$filesURL = PEAR2\SimpleChannelFrontend\Main::getURL() - . $context->name . '/files'; - -?> - <div class="package-releases"> <h3>Release History</h3> <table> @@ -109,6 +103,12 @@ </table> </div> +<?php + +$filesURL = PEAR2\SimpleChannelFrontend\Main::getURL() + . $context->name . '/files'; + +?> <div class="package-files"> <h3><a class="button" href="<?php echo $filesURL; ?>">Browse Files</a></h3> <span class="package-files-info"><?php echo $savant->render($context, 'PackageFileInfo.tpl.php'); ?> 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-07-15 17:57:22 UTC (rev 301296) +++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDetails.tpl.php 2010-07-15 18:06:35 UTC (rev 301297) @@ -94,6 +94,9 @@ echo '<span class="package-maintained">yes</span>'; } +// TODO: Counting the maintainers somehow resets the package version +// I'm not sure what's up with that. + ?> </td> </tr> 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-07-15 17:57:22 UTC (rev 301296) +++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageRelease.tpl.php 2010-07-15 18:06:35 UTC (rev 301297) @@ -36,6 +36,28 @@ ); echo $savant->render($context, 'PackageDetails.tpl.php'); + +?> + +<?php + +// reset version, maintainer count resets version for some reason +$context->setRawVersion( + null, + array('release' => $parent->context->options['packageVersion']) +); + +$filesURL = PEAR2\SimpleChannelFrontend\Main::getURL() + . $context->name . '-' . $context->version['release'] + . '/files'; + +?> + <div class="package-files"> + <h3><a class="button" href="<?php echo $filesURL; ?>">Browse Files</a></h3> + <span class="package-files-info"><?php echo $savant->render($context, 'PackageFileInfo.tpl.php'); ?> + </div> +<?php + echo $savant->render($context, 'PackageDependencies.tpl.php'); ?>

« previous php.pear.core (#9588) next »