[Fusionforge-commits] FusionForge branch Branch_5_3 updated. fc6566970348e675690bcf797236d5af2e16e54a

Franck Villaume nerville at fusionforge.org
Sun Mar 30 19:40:47 CEST 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_3 has been updated
       via  fc6566970348e675690bcf797236d5af2e16e54a (commit)
      from  3937655fd99d1e7c86e54b11fbb0b701711aff38 (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 fc6566970348e675690bcf797236d5af2e16e54a
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sun Mar 30 19:40:20 2014 +0200

    display tag_cloud only if there is something to display. Make forge stats a read box, not inside tag_cloud

diff --git a/src/www/include/features_boxes.php b/src/www/include/features_boxes.php
index bdb089a..1b35c76 100644
--- a/src/www/include/features_boxes.php
+++ b/src/www/include/features_boxes.php
@@ -35,12 +35,14 @@ function show_features_boxes() {
 	$return = '<h2 class="skip">' . _('Features Boxes') . '</h2>';
 
 	if (forge_get_config('use_project_tags')) {
-		$return .= $HTML->boxTop(_('Tag Cloud'), 'Tag_Cloud');
-		$return .= tag_cloud();
-		$return .= $HTML->boxMiddle(sprintf(_('%s Statistics'), forge_get_config ('forge_name')), 'Forge_Statistics');
-	} else {
-		$return .= $HTML->boxTop(sprintf(_('%s Statistics'), forge_get_config ('forge_name')), 'Forge_Statistics');
+		$contentTag = tag_cloud();
+		if (!empty($contentTag)) {
+			$return .= $HTML->boxTop(_('Tag Cloud'), 'Tag_Cloud');
+			$return .= $contentTag;
+			$return .= $HTML->boxBottom();
+		}
 	}
+	$return .= $HTML->boxTop(sprintf(_('%s Statistics'), forge_get_config ('forge_name')), 'Forge_Statistics');
 	$return .= show_sitestats();
 	if (forge_get_config('use_frs')) {
 		$return .= $HTML->boxMiddle(_('Top Project Downloads'), 'Top_Projects_Downloads');

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

Summary of changes:
 src/www/include/features_boxes.php |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list