svn: /pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/ InstallInstructions.tpl.php Package.tpl.php PackageRelease.tpl.php
| From: | Brett Bieber | Date: | Sat, 12 Dec 2009 03:10:01 +0000 |
| Subject: | svn: /pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/ InstallInstructions.tpl.php Package.tpl.php PackageRelease.tpl.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9106@lists.php.net to get a copy of this message | ||
saltybeagle Sat, 12 Dec 2009 03:10:01 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=292009
Log:
Use one template for the install instructions, just pass the package name as the context.
Changed paths:
A pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/InstallInstructions.tpl.php
U pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php
U pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php
Added: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/InstallInstructions.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/InstallInstructions.tpl.php
(rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/InstallInstructions.tpl.php 2009-12-12
03:10:01 UTC (rev 292009)
@@ -0,0 +1,5 @@
+<h3>Installation</h3>
+<ol class="instructions">
+ <li><code>$>php pyrus.phar channel-discover <?php echo
pear2\SimpleChannelFrontend\Main::$channel->name; ?></code></li>
+ <li><code>$>php pyrus.phar install <?php echo $context;
?></code></li>
+</ol>
Modified: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php 2009-12-11 23:54:03 UTC
(rev 292008)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php 2009-12-12 03:10:01 UTC
(rev 292009)
@@ -11,11 +11,7 @@
echo nl2br(trim($context->description));
?>
</p>
- <h3>Installation</h3>
- <ol class="instructions">
- <li><code>$>php pyrus.phar channel-discover <?php echo
$context->channel; ?></code></li>
- <li><code>$>php pyrus.phar install <?php echo $context->channel .
'/' . $context->name . '-' . $context->version['release'];
?></code></li>
- </ol>
+ <?php echo $savant->render($context->channel . '/' . $context->name .
'-' . $context->version['release'], 'InstallInstructions.tpl.php');
?>
</div>
<div class="grid_4 right releases">
<h3>Releases</h3>
Modified: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php 2009-12-11
23:54:03 UTC (rev 292008)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php 2009-12-12
03:10:01 UTC (rev 292009)
@@ -22,11 +22,7 @@
<span><?php echo $context->license['name'];
?></span>
</li>
</ul>
- <h3>Installation</h3>
- <ol class="instructions">
- <li><code>$>php pyrus.phar channel-discover <?php echo
$context->channel; ?></code></li>
- <li><code>$>php pyrus.phar install <?php echo $context->channel .
'/' . $context->name . '-' . $context->version['release'];
?></code></li>
- </ol>
+ <?php echo $savant->render($context->channel . '/' . $context->name .
'-' . $context->version['release'],
'InstallInstructions.tpl.php')?>
</div>
<div class="grid_4 right releases">
<h3>Release Notes</h3>