[Fusionforge-commits] r14723 - in trunk/src/www: pm project/admin

Alain Peyrat aljeux at fusionforge.org
Wed Oct 26 14:17:30 CEST 2011


Author: aljeux
Date: 2011-10-26 14:17:29 +0200 (Wed, 26 Oct 2011)
New Revision: 14723

Modified:
   trunk/src/www/pm/add_task.php
   trunk/src/www/project/admin/history.php
   trunk/src/www/project/admin/index.php
Log:
Improved messages

Modified: trunk/src/www/pm/add_task.php
===================================================================
--- trunk/src/www/pm/add_task.php	2011-10-26 12:00:31 UTC (rev 14722)
+++ trunk/src/www/pm/add_task.php	2011-10-26 12:17:29 UTC (rev 14723)
@@ -35,7 +35,7 @@
 <input type="hidden" name="func" value="postaddtask" />
 <input type="hidden" name="add_artifact_id[]" value="<?php echo $related_artifact_id; ?>" />
 
-<table border="0" width="100%">
+<table class="fullwidth">
 <tbody>
 	<tr>
 		<td>
@@ -124,13 +124,13 @@
 	</tr>
 
 	<tr>
-		<td valign="top">
+		<td class="top">
 		<strong><?php echo _('Assigned to') ?>:</strong><br />
 		<?php
 		echo $pt->multipleAssignedBox();
 		?>
 		</td>
-		<td valign="top">
+		<td class="top">
 		<strong><?php echo _('Dependent on task') ?>:</strong><br />
 		<?php
 		echo $pt->multipleDependBox();

Modified: trunk/src/www/project/admin/history.php
===================================================================
--- trunk/src/www/project/admin/history.php	2011-10-26 12:00:31 UTC (rev 14722)
+++ trunk/src/www/project/admin/history.php	2011-10-26 12:17:29 UTC (rev 14723)
@@ -29,8 +29,17 @@
 $group_id = getIntFromRequest('group_id');
 session_require_perm ('project_admin', $group_id) ;
 
-project_admin_header(array('title'=>_('Project History'),'group'=>$group_id));
+// get current information
+$group = group_get_object($group_id);
+if (!$group || !is_object($group)) {
+	exit_no_group();
+} elseif ($group->isError()) {
+	exit_error($group->getErrorMessage(),'admin');
+}
 
+project_admin_header(array('title'=>sprintf(_('Project History of %s'), $group->getPublicName()),
+						   'group'=>$group_id));
+
 echo show_grouphistory($group_id);
 
 project_admin_footer(array());

Modified: trunk/src/www/project/admin/index.php
===================================================================
--- trunk/src/www/project/admin/index.php	2011-10-26 12:00:31 UTC (rev 14722)
+++ trunk/src/www/project/admin/index.php	2011-10-26 12:17:29 UTC (rev 14723)
@@ -118,9 +118,9 @@
 
 if (forge_get_config('use_shell')) {
 ?>
-<p><?php echo _('Group shell (SSH) server: ') ?><strong><?php echo $group->getUnixName().'.'.forge_get_config('web_host'); ?></strong></p>
-<p><?php echo _('Group directory on shell server: ') ?><br/><strong><?php echo account_group_homedir($group->getUnixName()); ?></strong></p>
-<p><?php echo _('Project WWW directory on shell server: ') ?><br /><strong><?php echo account_group_homedir($group->getUnixName()).'/htdocs'; ?></strong></p>
+<p><?php echo _('Group shell (SSH) server:') ?> <strong><?php echo $group->getUnixName().'.'.forge_get_config('web_host'); ?></strong></p>
+<p><?php echo _('Group directory on shell server:') ?><br/><strong><?php echo account_group_homedir($group->getUnixName()); ?></strong></p>
+<p><?php echo _('Project WWW directory on shell server:') ?><br /><strong><?php echo account_group_homedir($group->getUnixName()).'/htdocs'; ?></strong></p>
 <?php
 	} //end of use_shell condition
 ?>




More information about the Fusionforge-commits mailing list