[Fusionforge-commits] FusionForge branch Branch_5_2 updated. 0550177696eb5d6cfeb0d9c9f77782f75aef18aa

Franck VILLAUME nerville at fusionforge.org
Wed Jan 22 15:22:08 CET 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_2 has been updated
       via  0550177696eb5d6cfeb0d9c9f77782f75aef18aa (commit)
      from  d1dba74acd638a34ea21bcf3f06b6f4a611f8928 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0550177696eb5d6cfeb0d9c9f77782f75aef18aa
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Mon Apr 1 15:38:01 2013 +0200

    add missing link to manage available roadmaps

diff --git a/src/common/tracker/actions/admin-ind.php b/src/common/tracker/actions/admin-ind.php
index 8bcad06..9e5ef7d 100644
--- a/src/common/tracker/actions/admin-ind.php
+++ b/src/common/tracker/actions/admin-ind.php
@@ -6,7 +6,7 @@
  * Copyright 2002-2003, Tim Perdue/GForge, LLC
  * Copyright 2010, FusionForge Team
  * Copyright 2011, Franck Villaume - Capgemini
- * Copyright 2012, Franck Villaume - TrivialDev
+ * Copyright 2012-2013, Franck Villaume - TrivialDev
  *
  * This file is part of FusionForge. FusionForge is free software;
  * you can redistribute it and/or modify it under the terms of the
@@ -111,14 +111,22 @@ if (!isset($at_arr) || !$at_arr || count($at_arr) < 1) {
 			</td>
 		</tr>';
 	}
-		echo $HTML->listTableBottom();
+	echo $HTML->listTableBottom();
+
+	$roadmap_factory = new RoadmapFactory($group);
+	$roadmaps = $roadmap_factory->getRoadmaps(true);
+	if (!empty($roadmaps)) {
+		echo '	<p id="roadmapadminlink">
+			<a href="'.util_make_url('/tracker/admin/?group_id='.$group_id.'&admin_roadmap=1').'" >'._('Manage your roadmaps.').'</a>
+			</p>';
 	}
+}
 
-	//
-	//	Set up blank ArtifactType
-	//
+//
+//	Set up blank ArtifactType
+//
 
-	if (forge_check_perm ('tracker_admin', $group->getID())) {
+if (forge_check_perm ('tracker_admin', $group->getID())) {
 	?><?php echo _('<h3>Create a new tracker</h3><p>You can use this system to track virtually any kind of data, with each tracker having separate user, group, category, and permission lists. You can also easily move items between trackers when needed.</p><p>Trackers are referred to as "Artifact Types" and individual pieces of data are "Artifacts". "Bugs" might be an Artifact Type, whiles a bug report would be an Artifact. You can create as many Artifact Types as you want, but remember you need to set up categories, groups, and permission for each type, which can get time-consuming.</p>') ?>
 	<form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id; ?>" method="post">
 	<input type="hidden" name="add_at" value="y" />
@@ -149,7 +157,7 @@ if (!isset($at_arr) || !$at_arr || count($at_arr) < 1) {
 	<input type="submit" name="post_changes" value="<?php echo _('Submit') ?>" /></p>
 	</form>
 	<?php
-	}
+}
 
 $atf->footer();
 
diff --git a/src/www/tracker/admin/index.php b/src/www/tracker/admin/index.php
index 4d2012e..bc19aca 100644
--- a/src/www/tracker/admin/index.php
+++ b/src/www/tracker/admin/index.php
@@ -36,6 +36,8 @@ require_once $gfcommon.'tracker/include/ArtifactHtml.class.php';
 require_once $gfcommon.'tracker/ArtifactCanned.class.php';
 require_once $gfcommon.'tracker/ArtifactExtraField.class.php';
 require_once $gfcommon.'tracker/ArtifactExtraFieldElement.class.php';
+require_once $gfcommon.'tracker/Roadmap.class.php';
+require_once $gfcommon.'tracker/RoadmapFactory.class.php';
 
 $group_id = getIntFromRequest('group_id');
 $atid = getIntFromRequest('atid');

-----------------------------------------------------------------------

Summary of changes:
 src/common/tracker/actions/admin-ind.php |   22 +++++++++++++++-------
 src/www/tracker/admin/index.php          |    2 ++
 2 files changed, 17 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list