Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixing templates for project page.

  • Loading branch information...
commit b901b123ab49c23030d80176cbc0c06482c07bc1 1 parent 7b4aa02
Jonathan H. Wage authored February 13, 2011
1  .gitignore
@@ -4,3 +4,4 @@ web/api/*
4 4
 pear/*
5 5
 data/documentation/*
6 6
 data/source/*
  7
+web/frontend_dev.php
11  apps/frontend/modules/projects/templates/viewSuccess.php
@@ -12,7 +12,16 @@
12 12
       <h3><?php echo $project->getTitle() ?></h3>
13 13
       <p><?php echo $project->getDescription() ?></p>
14 14
 
15  
-      <p>The latest stable version for <strong><?php echo $project->getShortTitle() ?></strong> is <strong><?php echo $project->getLatestVersion() ?></strong> and is in <strong><?php echo $project->getLatestVersion()->getStability() ?></strong> condition.</p>
  15
+      <p>
  16
+        The latest version for <strong><?php echo $project->getShortTitle() ?></strong> is <strong><?php echo $project->getLatestVersion() ?></strong>.
  17
+
  18
+        <?php if ($latestRelease = $project->getLatestVersion()->getLatestRelease()): ?>
  19
+          Its latest release is <?php echo $latestRelease ?> (<?php echo $project->getLatestVersion()->getStability() ?>).
  20
+        <?php else: ?>
  21
+          It has not been released yet and is in <strong><?php echo $project->getLatestVersion()->getStability() ?></strong> condition.
  22
+        <?php endif; ?>
  23
+        
  24
+      </p>
16 25
 
17 26
       <ul>
18 27
         <li><?php echo link_to(image_tag('/images/disk.gif') . ' Download Information', '@download?slug='.$project->getSlug()) ?></li>
2  config/projects.yml
@@ -225,7 +225,7 @@ mongodb_odm:
225 225
   namespace: Doctrine\ODM\MongoDB
226 226
   versions:
227 227
     '1.0':
228  
-      stability: alpha
  228
+      stability: beta
229 229
       git_checkout_command: 'git clone git://github.com/doctrine/mongodb-odm.git mongodb_odm'
230 230
       svn_checkout_command: 'svn co http://svn.github.com/doctrine/mongodb-odm.git mongodb_odm'
231 231
       api_source_path: source/mongodb_odm1.0/lib
5  lib/projects/ProjectVersionRelease.class.php
@@ -45,4 +45,9 @@ public function getPearInstallCommand()
45 45
   {
46 46
     return $this->data['pear_install_command'];
47 47
   }
  48
+
  49
+  public function __toString()
  50
+  {
  51
+    return $this->getSlug();
  52
+  }
48 53
 }
6  web/frontend_dev.php
... ...
@@ -1,6 +0,0 @@
1  
-<?php
2  
-
3  
-require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
4  
-
5  
-$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true);
6  
-sfContext::createInstance($configuration)->dispatch();

0 notes on commit b901b12

Please sign in to comment.
Something went wrong with that request. Please try again.