Author: maxfranz
Date: 2010-09-07 13:27:07 -0700 (Tue, 07 Sep 2010)
New Revision: 21724
Modified:
cytoscapeweb/trunk/website/src/php/content/download.php
Log:
show only x number of versions
Modified: cytoscapeweb/trunk/website/src/php/content/download.php
===================================================================
--- cytoscapeweb/trunk/website/src/php/content/download.php 2010-09-07
18:30:28 UTC (rev 21723)
+++ cytoscapeweb/trunk/website/src/php/content/download.php 2010-09-07
20:27:07 UTC (rev 21724)
@@ -1,10 +1,16 @@
<div class="left">
<?php
-
+
+ $versions_to_show = 2;
$first = true;
+ $i = 0;
foreach($apis as $api) {
+ if( $i >= $versions_to_show ){
+ break;
+ }
+
$version = $api->version;
$date = strtotime( $api->date );
$info = $api->release_info;
@@ -34,6 +40,7 @@
<?php
$first = false;
+ $i++;
}
?>
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.