[Fusionforge-commits] r15817 - trunk/src/common/widget

Franck VILLAUME nerville at fusionforge.org
Sun Jun 24 16:26:25 CEST 2012


Author: nerville
Date: 2012-06-24 16:26:25 +0200 (Sun, 24 Jun 2012)
New Revision: 15817

Modified:
   trunk/src/common/widget/Widget_ProjectLatestFileReleases.class.php
Log:
fix widget: wrong table closing tag

Modified: trunk/src/common/widget/Widget_ProjectLatestFileReleases.class.php
===================================================================
--- trunk/src/common/widget/Widget_ProjectLatestFileReleases.class.php	2012-06-24 13:07:07 UTC (rev 15816)
+++ trunk/src/common/widget/Widget_ProjectLatestFileReleases.class.php	2012-06-24 14:26:25 UTC (rev 15817)
@@ -1,15 +1,16 @@
 <?php
 /**
  * Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved
+ * Copyright 2012, Franck Villaume - TrivialDev
  *
- * This file is a part of Codendi.
+ * This file is a part of Fusionforge.
  *
- * Codendi is free software; you can redistribute it and/or modify
+ * Fusionforge is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
  *
- * Codendi is distributed in the hope that it will be useful,
+ * Fusionforge is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
@@ -25,28 +26,27 @@
 *
 */
 class Widget_ProjectLatestFileReleases extends Widget {
-    var $content;
-    function Widget_ProjectLatestFileReleases() {
-        $this->Widget('projectlatestfilereleases');
-        $request =& HTTPRequest::instance();
-        $pm = ProjectManager::instance();
-        $project = $pm->getProject($request->get('group_id'));
-        if ($project && $this->canBeUsedByProject($project)) {
-            $this->content['title'] = _('Latest File Releases');
-        }
-    }
-    function getTitle() {
-        return $this->content['title'];
-    }
-    function getContent() {
-        $request =& HTTPRequest::instance();
-        $pm = ProjectManager::instance();
-	$group_id=$request->get('group_id');
-        $project = $pm->getProject($group_id);
-	$unix_group_name = $project->getUnixName();
-$HTML=$GLOBALS['HTML'];
+	var $content;
+	function Widget_ProjectLatestFileReleases() {
+		$this->Widget('projectlatestfilereleases');
+		$request =& HTTPRequest::instance();
+		$pm = ProjectManager::instance();
+		$project = $pm->getProject($request->get('group_id'));
+		if ($project && $this->canBeUsedByProject($project)) {
+		$this->content['title'] = _('Latest File Releases');
+		}
+	}
+	function getTitle() {
+		return $this->content['title'];
+	}
+	function getContent() {
+		$request =& HTTPRequest::instance();
+		$pm = ProjectManager::instance();
+		$group_id=$request->get('group_id');
+		$project = $pm->getProject($group_id);
+		$unix_group_name = $project->getUnixName();
+		$HTML=$GLOBALS['HTML'];
 
-
 		//
 		//  Members of projects can see all packages
 		//  Non-members can only see public packages
@@ -107,14 +107,14 @@
 					$package_name = db_result($res_files, $f, 'package_name');
 					$package_release = db_result($res_files,$f,'release_name');
 					echo '
-                        <tr class="align-center">
+						<tr class="align-center">
 						<td class="align-left">
 							<strong>' . $package_name . '</strong>
 						</td>';
 					// Releases to display
 //print '<div about="" xmlns:sioc="http://rdfs.org/sioc/ns#" rel="container_of" resource="'.util_make_link ('/frs/?group_id=' . $group_id . '&release_id=' . db_result($res_files,$f,'release_id').'">';
 					echo '
-                        <td>'
+						<td>'
 						.$package_release.'
 						</td>
 						<td>'
@@ -148,11 +148,11 @@
 					echo util_make_link ($link, $link_content);
 					echo '</td>
 					</tr>';
-
 				}
+				echo '</table>';
 			}
 		}
-		echo '</table>';
+
 		echo '<div class="underline-link">' . util_make_link ('/frs/?group_id='.$group_id, _('View All Project Files')) . '</div>';
 
     }




More information about the Fusionforge-commits mailing list