svn: /pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/ Package.tpl.php PackageRelease.tpl.php
| From: | Amir Mohammad Saied | Date: | Fri, 11 Dec 2009 18:36:43 +0000 |
| Subject: | svn: /pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/ Package.tpl.php PackageRelease.tpl.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9104@lists.php.net to get a copy of this message | ||
amir Fri, 11 Dec 2009 18:36:43 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=292000
Log:
Default templates
Changed paths:
U pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php
A pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php
Modified: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php 2009-12-11 18:31:41 UTC
(rev 291999)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php 2009-12-11 18:36:43 UTC
(rev 292000)
@@ -23,6 +23,8 @@
<?php
foreach ($context as $version => $release): ?>
<li>
+ <a href="<?php echo pear2\SimpleChannelFrontend\Main::getURL() .
$context->name . '-' . $version; ?>"><?php echo $version; ?></a>
+ <span class="stability"><?php echo
$release['stability']; ?></span>
<?php echo $version; ?> <span class="stability"><?php echo
$release['stability']; ?></span>
<abbr class="releasedate" title="<?php echo
$context->date.' '.$context->time; ?>"><?php echo $context->date;
?></abbr>
<a class="download" href="<?php echo
$context->getDownloadURL('.tgz'); ?>">Download</a>
Added: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php
(rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php 2009-12-11
18:36:43 UTC (rev 292000)
@@ -0,0 +1,35 @@
+<?php
+// Set the title for the main template
+$parent->context->page_title = $context->name.' |
'.pear2\SimpleChannelFrontend\Main::$channel->name;
+?>
+<div class="package">
+ <div class="grid_8 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>
+ </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>
+ </div>
+ <div class="grid_4 right releases">
+ <h3>Release Notes</h3>
+ <?php echo nl2br($context->notes); ?>
+ </div>
+</div>