[Fusionforge-commits] r7994 - in trunk/gforge/plugins: scmcvs/common scmsvn/common
Roland Mas
lolando at libremir.placard.fr.eu.org
Thu Aug 27 15:41:37 CEST 2009
Author: lolando
Date: 2009-08-27 15:41:36 +0200 (Thu, 27 Aug 2009)
New Revision: 7994
Modified:
trunk/gforge/plugins/scmcvs/common/CVSPlugin.class.php
trunk/gforge/plugins/scmsvn/common/SVNPlugin.class.php
Log:
Small display fixes
Modified: trunk/gforge/plugins/scmcvs/common/CVSPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmcvs/common/CVSPlugin.class.php 2009-08-27 13:41:26 UTC (rev 7993)
+++ trunk/gforge/plugins/scmcvs/common/CVSPlugin.class.php 2009-08-27 13:41:36 UTC (rev 7994)
@@ -75,7 +75,8 @@
}
function getSnapshotPara ($project) {
- $b = $filename=$project->getUnixName().'-scm-latest.tar.gz';
+ $b = "" ;
+ $filename = $project->getUnixName().'-scm-latest.tar.gz';
if (file_exists($sys_scm_snapshots_path.'/'.$filename)) {
$b .= '<p>[' ;
$b .= util_make_link ("/snapshots.php?group_id=".$project->getID(),
@@ -89,7 +90,7 @@
function getBrowserBlock ($project) {
global $HTML ;
$b = $HTML->boxMiddle(_('CVS Repository Browser'));
- $b = _('<p>Browsing the CVS tree gives you a view into the current status of this project\'s code. You may also view the complete histories of any file in the repository.</p>');
+ $b .= _('<p>Browsing the CVS tree gives you a view into the current status of this project\'s code. You may also view the complete histories of any file in the repository.</p>');
$b .= '<p>[' ;
$b .= util_make_link ("/scm/viewvc.php/?root=".$project->getUnixName(),
_('Browse CVS Repository')
@@ -100,12 +101,14 @@
function getStatsBlock ($project) {
global $HTML ;
- $b = $HTML->boxMiddle(_('Repository Statistics'));
+ $b = '' ;
$result = db_query_params('SELECT u.realname, u.user_name, u.user_id, sum(commits) as commits, sum(adds) as adds, sum(adds+commits) as combined FROM stats_cvs_user s, users u WHERE group_id=$1 AND s.user_id=u.user_id AND (commits>0 OR adds >0) GROUP BY u.user_id, realname, user_name, u.user_id ORDER BY combined DESC, realname',
array ($project->getID()));
if (db_numrows($result) > 0) {
+ $b .= $HTML->boxMiddle(_('Repository Statistics'));
+
$tableHeaders = array(
_('Name'),
_('Adds'),
Modified: trunk/gforge/plugins/scmsvn/common/SVNPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmsvn/common/SVNPlugin.class.php 2009-08-27 13:41:26 UTC (rev 7993)
+++ trunk/gforge/plugins/scmsvn/common/SVNPlugin.class.php 2009-08-27 13:41:36 UTC (rev 7994)
@@ -96,7 +96,7 @@
function getBrowserBlock ($project) {
global $HTML ;
$b = $HTML->boxMiddle(_('Subversion Repository Browser'));
- $b = _('<p>Browsing the Subversion tree gives you a view into the current status of this project\'s code. You may also view the complete histories of any file in the repository.</p>');
+ $b .= _('<p>Browsing the Subversion tree gives you a view into the current status of this project\'s code. You may also view the complete histories of any file in the repository.</p>');
$b .= '<p>[' ;
$b .= util_make_link ("/scm/viewvc.php/?root=".$project->getUnixName(),
_('Browse Subversion Repository')
@@ -107,12 +107,14 @@
function getStatsBlock ($project) {
global $HTML ;
- $b = $HTML->boxMiddle(_('Repository Statistics'));
+ $b = '' ;
$result = db_query_params('SELECT u.realname, u.user_name, u.user_id, sum(commits) as commits, sum(adds) as adds, sum(adds+commits) as combined FROM stats_cvs_user s, users u WHERE group_id=$1 AND s.user_id=u.user_id AND (commits>0 OR adds >0) GROUP BY u.user_id, realname, user_name, u.user_id ORDER BY combined DESC, realname',
array ($project->getID()));
if (db_numrows($result) > 0) {
+ $b .= $HTML->boxMiddle(_('Repository Statistics')) ;
+
$tableHeaders = array(
_('Name'),
_('Adds'),
More information about the Fusionforge-commits
mailing list