[evolvis-commits] r17632: I think someone’s auto-indenter ran amuk here; re-indent

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Oct 24 16:12:56 CEST 2011


Author: mirabilos
Date: 2011-10-24 16:12:56 +0200 (Mon, 24 Oct 2011)
New Revision: 17632

Added:
   trunk/gforge_base/evolvisforge-5.1/
Removed:
   trunk/gforge_base/evolvisforge-5.1/
Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/widget/Widget_ProjectPublicAreas.class.php
Log:
I think someone’s auto-indenter ran amuk here; re-indent

no other changes


Modified: trunk/gforge_base/evolvisforge-5.1/src/common/widget/Widget_ProjectPublicAreas.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/widget/Widget_ProjectPublicAreas.class.php	2011-10-24 12:08:55 UTC (rev 17630)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/widget/Widget_ProjectPublicAreas.class.php	2011-10-24 14:12:56 UTC (rev 17632)
@@ -90,112 +90,112 @@
 			$link_content = $HTML->getForumPic('') . ' ' . _('Public Forums');
 			echo util_make_link ( '/forum/?group_id=' . $group_id, $link_content);
 			print ' (';
-					$messages_count = project_get_public_forum_message_count($group_id);
-					$forums_count = project_get_public_forum_count($group_id);
-					printf(ngettext("<strong>%d</strong> message","<strong>%d</strong> messages",$messages_count),$messages_count);
-					print ' in ';
-					printf(ngettext("<strong>%d</strong> forum","<strong>%d</strong> forums",$forums_count),$forums_count);
-					print ')' ;
-					print "\n</div>";
-					}
+			$messages_count = project_get_public_forum_message_count($group_id);
+			$forums_count = project_get_public_forum_count($group_id);
+			printf(ngettext("<strong>%d</strong> message","<strong>%d</strong> messages",$messages_count),$messages_count);
+			print ' in ';
+			printf(ngettext("<strong>%d</strong> forum","<strong>%d</strong> forums",$forums_count),$forums_count);
+			print ')' ;
+			print "\n</div>";
+		}
 
-					// ##################### Doc Manager
+		// ##################### Doc Manager
 
-					if ($project->usesDocman()) {
-					echo '<div class="public-area-box">'."\n";
-					$link_content = $HTML->getDocmanPic('') . ' ' . _('DocManager: Project Documentation');
-					//	<a rel="sioc:container_of" xmlns:sioc="http://rdfs.org/sioc/ns#" href="'.util_make_url ('/docman/?group_id='.$group_id).'">';
-					print util_make_link( '/docman/?group_id='.$group_id, $link_content);
-					echo "\n</div>\n";
-					}
+		if ($project->usesDocman()) {
+			echo '<div class="public-area-box">'."\n";
+			$link_content = $HTML->getDocmanPic('') . ' ' . _('DocManager: Project Documentation');
+			//	<a rel="sioc:container_of" xmlns:sioc="http://rdfs.org/sioc/ns#" href="'.util_make_url ('/docman/?group_id='.$group_id).'">';
+			print util_make_link( '/docman/?group_id='.$group_id, $link_content);
+			echo "\n</div>\n";
+		}
 
-					// ##################### Mailing lists
+		// ##################### Mailing lists
 
-					if ($project->usesMail()) {
-						echo '<div class="public-area-box">'."\n";
-						$link_content = $HTML->getMailPic('') . ' ' . _('Mailing Lists');
-						print util_make_link( '/mail/?group_id='.$group_id, $link_content);
-						$n = project_get_mail_list_count($group_id);
-						echo ' ';
-						printf(ngettext('(<strong>%1$s</strong> public mailing list)', '(<strong>%1$s</strong> public mailing lists)', $n), $n);
-						echo "\n</div>\n";
-					}
+		if ($project->usesMail()) {
+			echo '<div class="public-area-box">'."\n";
+			$link_content = $HTML->getMailPic('') . ' ' . _('Mailing Lists');
+			print util_make_link( '/mail/?group_id='.$group_id, $link_content);
+			$n = project_get_mail_list_count($group_id);
+			echo ' ';
+			printf(ngettext('(<strong>%1$s</strong> public mailing list)', '(<strong>%1$s</strong> public mailing lists)', $n), $n);
+			echo "\n</div>\n";
+		}
 
-					// ##################### Task Manager
+		// ##################### Task Manager
 
-					if ($project->usesPm()) {
-						echo '<div class="public-area-box">'."\n";
-						$link_content = $HTML->getPmPic('') . ' ' . _('Tasks');
-						print util_make_link( '/pm/?group_id='.$group_id, $link_content);
+		if ($project->usesPm()) {
+			echo '<div class="public-area-box">'."\n";
+			$link_content = $HTML->getPmPic('') . ' ' . _('Tasks');
+			print util_make_link( '/pm/?group_id='.$group_id, $link_content);
 
-						$result = db_query_params ('SELECT * FROM project_group_list WHERE group_id=$1 AND is_public=1',
-								array ($group_id));
-						$rows = db_numrows($result);
-						if (!$result || $rows < 1) {
-							echo "<br />\n<em>"._('There are no public subprojects available').'</em>';
-						} else {
-							echo "\n".'<ul class="task-manager">';
-							for ($j = 0; $j < $rows; $j++) {
-								echo "\n\t<li>";
-								print util_make_link ('/pm/task.php?group_project_id='.db_result($result, $j, 'group_project_id').'&group_id='.$group_id.'&func=browse',db_result($result, $j, 'project_name'));
-								echo '</li>' ;
-							}
-							echo "\n</ul>";
-						}
-						echo "\n</div>\n";
-					}
+			$result = db_query_params ('SELECT * FROM project_group_list WHERE group_id=$1 AND is_public=1',
+					array ($group_id));
+			$rows = db_numrows($result);
+			if (!$result || $rows < 1) {
+				echo "<br />\n<em>"._('There are no public subprojects available').'</em>';
+			} else {
+				echo "\n".'<ul class="task-manager">';
+				for ($j = 0; $j < $rows; $j++) {
+					echo "\n\t<li>";
+					print util_make_link ('/pm/task.php?group_project_id='.db_result($result, $j, 'group_project_id').'&group_id='.$group_id.'&func=browse',db_result($result, $j, 'project_name'));
+					echo '</li>' ;
+				}
+				echo "\n</ul>";
+			}
+			echo "\n</div>\n";
+		}
 
-					// ######################### Surveys
+		// ######################### Surveys
 
-					if ($project->usesSurvey()) {
-						echo '<div class="public-area-box">'."\n";
-						$link_content = $HTML->getSurveyPic('') . ' ' . _('Surveys');
-						echo util_make_link( '/survey/?group_id='.$group_id, $link_content);
-						echo ' (<strong>'. project_get_survey_count($group_id) .'</strong> ' . _('surveys').')';
-								echo "\n</div>\n";
-								}
+		if ($project->usesSurvey()) {
+			echo '<div class="public-area-box">'."\n";
+			$link_content = $HTML->getSurveyPic('') . ' ' . _('Surveys');
+			echo util_make_link( '/survey/?group_id='.$group_id, $link_content);
+			echo ' (<strong>'. project_get_survey_count($group_id) .'</strong> ' . _('surveys').')';
+			echo "\n</div>\n";
+		}
 
-								// ######################### SCM
+		// ######################### SCM
 
-								if ($project->usesSCM()) {
-								echo '<div class="public-area-box">'."\n";
+		if ($project->usesSCM()) {
+			echo '<div class="public-area-box">'."\n";
 
-								$link_content = $HTML->getScmPic('') . ' ' . _('SCM Repository');
-								//	print '<hr size="1" /><a rel="doap:repository" href="'.util_make_url ('/scm/?group_id='.$group_id).'">';
-								print util_make_link( '/scm/?group_id='.$group_id, $link_content);
+			$link_content = $HTML->getScmPic('') . ' ' . _('SCM Repository');
+			//	print '<hr size="1" /><a rel="doap:repository" href="'.util_make_url ('/scm/?group_id='.$group_id).'">';
+			print util_make_link( '/scm/?group_id='.$group_id, $link_content);
 
-								$hook_params = array () ;
-								$hook_params['group_id'] = $group_id ;
-								plugin_hook ("scm_stats", $hook_params) ;
-								echo "\n</div>\n";
-								}
+			$hook_params = array () ;
+			$hook_params['group_id'] = $group_id ;
+			plugin_hook ("scm_stats", $hook_params) ;
+			echo "\n</div>\n";
+		}
 
-								// ######################### Plugins
+		// ######################### Plugins
 
-								$hook_params = array ();
-								$hook_params['group_id'] = $group_id;
-								plugin_hook ("project_public_area", $hook_params);
+		$hook_params = array ();
+		$hook_params['group_id'] = $group_id;
+		plugin_hook ("project_public_area", $hook_params);
 
-								// ######################## AnonFTP
+		// ######################## AnonFTP
 
-								// CB hide FTP if desired
-								if ($project->usesFTP()) {
-									if ($project->isActive()) {
-										echo '<div class="public-area-box">'."\n";
+		// CB hide FTP if desired
+		if ($project->usesFTP()) {
+			if ($project->isActive()) {
+				echo '<div class="public-area-box">'."\n";
 
-										$link_content = $HTML->getFtpPic('') . ' ' . _('Anonymous FTP Space');
-										//		print '<a rel="doap:anonymous root" href="ftp://' . $project->getUnixName() . '.' . forge_get_config('web_host') . '/pub/'. $project->getUnixName() .'/">';
-										if (forge_get_config('use_project_vhost')) {
-											print util_make_link('ftp://' . $project->getUnixName() . '.' . forge_get_config('web_host') . '/pub/'. $project->getUnixName(), $link_content, false, true);
-										} else {
-											print util_make_link('ftp://' . forge_get_config('web_host') . '/pub/'. $project->getUnixName(), $link_content, false, true);
-										}
-										echo "\n</div>\n";
-									}
-								}
+				$link_content = $HTML->getFtpPic('') . ' ' . _('Anonymous FTP Space');
+				//		print '<a rel="doap:anonymous root" href="ftp://' . $project->getUnixName() . '.' . forge_get_config('web_host') . '/pub/'. $project->getUnixName() .'/">';
+				if (forge_get_config('use_project_vhost')) {
+					print util_make_link('ftp://' . $project->getUnixName() . '.' . forge_get_config('web_host') . '/pub/'. $project->getUnixName(), $link_content, false, true);
+				} else {
+					print util_make_link('ftp://' . forge_get_config('web_host') . '/pub/'. $project->getUnixName(), $link_content, false, true);
+				}
+				echo "\n</div>\n";
+			}
+		}
 
-								//webcalendar
-								plugin_hook("cal_link_group",$group_id);
+		//webcalendar
+		plugin_hook("cal_link_group",$group_id);
 	}
 	function canBeUsedByProject(&$project) {
 		return true;



More information about the evolvis-commits mailing list