[Fusionforge-commits] r8809 - in trunk/gforge/www/tracker: admin include

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Feb 11 11:35:50 CET 2010


Author: lolando
Date: 2010-02-11 11:35:50 +0100 (Thu, 11 Feb 2010)
New Revision: 8809

Modified:
   trunk/gforge/www/tracker/admin/tracker.php
   trunk/gforge/www/tracker/include/ArtifactTypeHtml.class.php
Log:
Fix tracker admin page to avoid redundancy

Modified: trunk/gforge/www/tracker/admin/tracker.php
===================================================================
--- trunk/gforge/www/tracker/admin/tracker.php	2010-02-11 09:30:30 UTC (rev 8808)
+++ trunk/gforge/www/tracker/admin/tracker.php	2010-02-11 10:35:50 UTC (rev 8809)
@@ -3,23 +3,48 @@
 //  SHOW LINKS TO FUNCTIONS
 //
 
-		$ath->adminHeader(array ('title'=>_('Administration').': '.$ath->getName()));
-//
-//	Reference to build a selection box for a tracker like bugs, etc
-//
-		echo '<p>
-			<a href="'.getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&amp;atid='.$ath->getID().'&amp;add_extrafield=1"><strong>'._('Manage Custom Fields').'</strong></a><br />
-			'._('Add new boxes like Phases, Quality Metrics, Components, etc.  Once added they can be used with other selection boxes (for example, Categories or Groups) to describe and browse bugs or other artifact types').'</p>';
-		echo '<p>
-			<a href="'.getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&amp;atid='.$ath->getID().'&amp;add_canned=1"><strong>'._('Add/Update Canned Responses').'</strong></a><br />
-			'._('Create/Change generic response messages for the tracker').'</p>';
-		echo '<p>
-			<a href="'.getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&amp;atid='.$ath->getID().'&amp;delete=1"><strong>'._('Delete').'</strong></a><br />
-			'._('Permanently delete this tracker.').'</p>';
-		echo '<p>
-			<a href="'.getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&amp;atid='.$ath->getID().'&amp;update_type=1"><strong>'._('Update preferences').'</strong></a><br />
-			'._('Set up prefs like expiration times, email addresses').'.</p>';
+$ath->header(array ('title'=>_('Administration').': '.$ath->getName()));
 
-		$ath->footer(array());
+echo '<p>' . util_make_link ('/tracker/admin/?group_id='.$group_id,
+			     '<strong>'._('New Tracker').'</strong>').'<br />' ;
+echo _('Create a new tracker.') ;
+echo '</p>';
 
+echo '<p>' . util_make_link ('/tracker/admin/?group_id='.$group_id.'&amp;update_type=1',
+			     '<strong>'._('Update Settings').'</strong>').'<br />' ;
+echo _('Set up preferences like expiration times, email addresses.') ;
+echo '</p>';
+
+echo '<p>' . util_make_link ('/tracker/admin/?group_id='.$group_id.'&amp;atid='.$ath->getID().'&amp;add_extrafield=1',
+			     '<strong>'._('Manage Custom Fields').'</strong>').'<br />' ;
+echo _('Add new boxes like Phases, Quality Metrics, Components, etc.  Once added they can be used with other selection boxes (for example, Categories or Groups) to describe and browse bugs or other artifact types.') ;
+echo '</p>';
+
+echo '<p>' . util_make_link ('/tracker/admin/?group_id='.$group_id.'&amp;atid='.$ath->getID().'&amp;workflow=1',
+			     '<strong>'._('Manage Workflow').'</strong>').'<br />' ;
+echo _('Edit tracker workflow.') ;
+echo '</p>';
+
+echo '<p>' . util_make_link ('/tracker/admin/?group_id='.$group_id.'&amp;atid='.$ath->getID().'&amp;customize_list=1',
+			     '<strong>'._('Customize List').'</strong>').'<br />' ;
+echo _('Customize display for the tracker.') ;
+echo '</p>';
+
+echo '<p>' . util_make_link ('/tracker/admin/?group_id='.$group_id.'&amp;atid='.$ath->getID().'&amp;add_canned=1',
+			     '<strong>'._('Add/Update Canned Responses').'</strong>').'<br />' ;
+echo _('Create/change generic response messages for the tracker.') ;
+echo '</p>';
+
+echo '<p>' . util_make_link ('/tracker/admin/?group_id='.$group_id.'&amp;atid='.$ath->getID().'&amp;clone_tracker=1',
+			     '<strong>'._('Clone Tracker').'</strong>').'<br />' ;
+echo _('Create a new tracker as a copy of this one.') ;
+echo '</p>';
+
+echo '<p>' . util_make_link ('/tracker/admin/?group_id='.$group_id.'&amp;atid='.$ath->getID().'&amp;delete=1',
+			     '<strong>'._('Delete').'</strong>').'<br />' ;
+echo _('Permanently delete this tracker.') ;
+echo '</p>';
+
+$ath->footer(array());
+
 ?>

Modified: trunk/gforge/www/tracker/include/ArtifactTypeHtml.class.php
===================================================================
--- trunk/gforge/www/tracker/include/ArtifactTypeHtml.class.php	2010-02-11 09:30:30 UTC (rev 8808)
+++ trunk/gforge/www/tracker/include/ArtifactTypeHtml.class.php	2010-02-11 10:35:50 UTC (rev 8809)
@@ -105,12 +105,12 @@
 		$links_arr[]='/tracker/admin/?group_id='.$group_id.'&amp;atid='.$this->getID().'&amp;customize_list=1';
 		$title_arr[]=_('Customize List');
 
+		$links_arr[]='/tracker/admin/?group_id='.$group_id.'&amp;atid='.$this->getID().'&amp;add_canned=1';
+		$title_arr[]=_('Add/Update Canned Responses');
+
 		$links_arr[]='/tracker/admin/?group_id='.$group_id.'&amp;atid='.$this->getID().'&amp;clone_tracker=1';
 		$title_arr[]=_('Clone Tracker');
 
-		$links_arr[]='/tracker/admin/?group_id='.$group_id.'&amp;atid='.$this->getID().'&amp;add_canned=1';
-		$title_arr[]=_('Add Canned Responses');
-
 		$links_arr[]='/tracker/admin/?group_id='.$group_id.'&amp;atid='.$this->getID().'&amp;delete=1';
 		$title_arr[]=_('Delete');
 




More information about the Fusionforge-commits mailing list