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, master has been updated
       via  ca9fb7e11135284a5d8a2b62e4a888df9e202168 (commit)
      from  a5c5600584c65c94b45e5374b421b1a1df9157b7 (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=ca9fb7e11135284a5d8a2b62e4a888df9e202168

commit ca9fb7e11135284a5d8a2b62e4a888df9e202168
Author: Franck Villaume <[email protected]>
Date:   Thu Sep 14 15:15:15 2017 +0000

    homogeneous display in widgets when no data found.

diff --git 
a/src/common/widget/Widget_HomeDetailActivityMostActiveProjectWeek.class.php 
b/src/common/widget/Widget_HomeDetailActivityMostActiveProjectWeek.class.php
index 86ea414..b8584d9 100644
--- a/src/common/widget/Widget_HomeDetailActivityMostActiveProjectWeek.class.php
+++ b/src/common/widget/Widget_HomeDetailActivityMostActiveProjectWeek.class.php
@@ -104,7 +104,7 @@ class Widget_HomeDetailActivityMostActiveProjectWeek 
extends Widget {
                                echo $HTML->listTableBottom();
                        }
                } else {
-                       echo $HTML->information(_('No activity during the last 
week'));
+                       echo $HTML->warning_msg(_('No activity during the last 
week.'));
                }
                return $return;
        }
diff --git a/src/common/widget/Widget_HomeLatestFileReleases.class.php 
b/src/common/widget/Widget_HomeLatestFileReleases.class.php
index 5a381af..f32ac2f 100644
--- a/src/common/widget/Widget_HomeLatestFileReleases.class.php
+++ b/src/common/widget/Widget_HomeLatestFileReleases.class.php
@@ -77,7 +77,7 @@ class Widget_HomeLatestFileReleases extends Widget {
                        }
                        $content .= $HTML->listTableBottom();
                } else {
-                       $content .= $HTML->information(_('No file releases 
found'));
+                       $content .= $HTML->warning_msg(_('No file releases 
found.'));
                }
                $content .= util_make_link('/new/', _('Browse all file 
releases'));
                return $content;
diff --git a/src/common/widget/Widget_MyArtifacts.class.php 
b/src/common/widget/Widget_MyArtifacts.class.php
index ea6ea6e..032c1d8 100644
--- a/src/common/widget/Widget_MyArtifacts.class.php
+++ b/src/common/widget/Widget_MyArtifacts.class.php
@@ -139,7 +139,7 @@ class Widget_MyArtifacts extends Widget {
                        $html_my_artifacts .= 
$this->_display_artifacts($my_artifacts, 1);
                        $html_my_artifacts .= $HTML->listTableBottom();
                } else {
-                       $html_my_artifacts = $HTML->information(_('You have no 
artifacts.'));
+                       $html_my_artifacts = $HTML->warning_msg(_('You have no 
artifacts.'));
                }
 
                return $html_my_artifacts;
diff --git a/src/common/widget/Widget_MyBookmarks.class.php 
b/src/common/widget/Widget_MyBookmarks.class.php
index 4788c17..4bc86f4 100644
--- a/src/common/widget/Widget_MyBookmarks.class.php
+++ b/src/common/widget/Widget_MyBookmarks.class.php
@@ -44,7 +44,7 @@ class Widget_MyBookmarks extends Widget {
                                        "user_id=$1 ORDER BY 
bookmark_title",array(user_getid()));
                $rows = db_numrows($result);
                if (!$result || $rows < 1) {
-                       $html_my_bookmarks .= $HTML->warning_msg(_('You 
currently do not have any bookmarks saved'));
+                       $html_my_bookmarks .= $HTML->warning_msg(_('You 
currently do not have any bookmarks saved.'));
                        $html_my_bookmarks .= db_error();
                } else {
                        $html_my_bookmarks .= $HTML->listTableTop();
diff --git a/src/common/widget/Widget_MyLatestCommits.class.php 
b/src/common/widget/Widget_MyLatestCommits.class.php
index 4b19c37..32736d7 100644
--- a/src/common/widget/Widget_MyLatestCommits.class.php
+++ b/src/common/widget/Widget_MyLatestCommits.class.php
@@ -106,13 +106,13 @@ class Widget_MyLatestCommits extends Widget {
                        }
                }
                if (!$global_nb_revisions) {
-                       $html .= $HTML->information(_('No commit found'));
+                       $html .= $HTML->warning_msg(_('No commit found.'));
                }
                return $html;
        }
 
        function getPreferences() {
-               $prefs  = _('Maximum number of commits to display per project');
+               $prefs  = _('Maximum number of commits to display per 
project.');
                $prefs .= html_e('input', array('name' => 'nb_commits', 'type' 
=> 'number', 'size' => 2, 'maxlenght' => 3, 'value' => 
UserManager::instance()->getCurrentUser()->getPreference('my_latests_commits_nb_display')));
                return $prefs;
        }
diff --git a/src/common/widget/Widget_MyTasks.class.php 
b/src/common/widget/Widget_MyTasks.class.php
index 88d03f2..7c62c6f 100644
--- a/src/common/widget/Widget_MyTasks.class.php
+++ b/src/common/widget/Widget_MyTasks.class.php
@@ -120,7 +120,7 @@ class Widget_MyTasks extends Widget {
                        }
                        $this->content .= $HTML->listTableBottom();
                } else {
-                       $this->content .= $HTML->warning_msg(_('No task yet'));
+                       $this->content .= $HTML->warning_msg(_('No task yet.'));
                }
        }
 
diff --git a/src/common/widget/Widget_ProjectDocumentsActivity.class.php 
b/src/common/widget/Widget_ProjectDocumentsActivity.class.php
index 5c4c8c8..c187013 100644
--- a/src/common/widget/Widget_ProjectDocumentsActivity.class.php
+++ b/src/common/widget/Widget_ProjectDocumentsActivity.class.php
@@ -238,7 +238,7 @@ class Widget_ProjectDocumentsActivity extends Widget {
                        $result .= '//]]></script>';
                        $result .= '<div id="chart1"></div>';
                } else {
-                       $result .= $HTML->information(_('No activity to 
display'));
+                       $result .= $HTML->warning_msg(_('No activity to 
display.'));
                }
                $result .= html_e('div', array('class' => 'underline-link'), 
util_make_link('/docman/?group_id='.$group_id, _('Browse Documents Manager')));
 
diff --git a/src/common/widget/Widget_ProjectLatestArtifacts.class.php 
b/src/common/widget/Widget_ProjectLatestArtifacts.class.php
index 90ec6b1..ef9de90 100644
--- a/src/common/widget/Widget_ProjectLatestArtifacts.class.php
+++ b/src/common/widget/Widget_ProjectLatestArtifacts.class.php
@@ -90,7 +90,7 @@ class Widget_ProjectLatestArtifacts extends Widget {
                        }
                        $html .= $HTML->listTableBottom();
                } else {
-                       $html .= $HTML->information(_('No artifact found'));
+                       $html .= $HTML->warning_msg(_('No artifact found.'));
                }
                $html .= html_e('div', array('class' => 'underline-link'), 
util_make_link('/tracker/?group_id='.$project->getID(), _('Browse Trackers')));
                return $html;
diff --git a/src/common/widget/Widget_ProjectLatestCommits.class.php 
b/src/common/widget/Widget_ProjectLatestCommits.class.php
index c67397f..531a86d 100644
--- a/src/common/widget/Widget_ProjectLatestCommits.class.php
+++ b/src/common/widget/Widget_ProjectLatestCommits.class.php
@@ -82,7 +82,7 @@ class Widget_ProjectLatestCommits extends Widget {
                                                        $revisionDescription));
                        }
                } else {
-                       $html .= $HTML->information(_('No commit found'));
+                       $html .= $HTML->warning_msg(_('No commit found.'));
                }
                $html .= html_e('div', array('class' => 'underline-link'), 
util_make_link('/scm/?group_id='.$project->getID(), _('Browse Source Content 
Management')));
                return $html;
diff --git a/src/common/widget/Widget_ProjectLatestDocuments.class.php 
b/src/common/widget/Widget_ProjectLatestDocuments.class.php
index b7bf3de..6498177 100644
--- a/src/common/widget/Widget_ProjectLatestDocuments.class.php
+++ b/src/common/widget/Widget_ProjectLatestDocuments.class.php
@@ -71,7 +71,7 @@ class Widget_ProjectLatestDocuments extends Widget {
 
                $keys = array_keys($df->Documents);
                if (!count($keys)) {
-                       $result .= $HTML->information(_('This project has not 
published any documents.'));
+                       $result .= $HTML->warning_msg(_('This project has not 
published any documents.'));
                } else {
                        html_use_tablesorter();
                        $result .= $HTML->getJavascripts();
diff --git a/src/plugins/scmgit/common/GitPlugin.class.php 
b/src/plugins/scmgit/common/GitPlugin.class.php
index db31cd4..a5e5eea 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -368,7 +368,7 @@ control over it to the project's administrator.");
                        $b .= $HTML->multiTableRow(array(), $cells);
                        $b .= $HTML->listTableBottom();
                } else {
-                       $b .= $HTML->information(_('No history yet'));
+                       $b .= $HTML->warning_msg(_('No history yet.'));
                }
 
                return $b;
diff --git a/src/plugins/scmgit/common/scmgit_Widget_MyRepositories.class.php 
b/src/plugins/scmgit/common/scmgit_Widget_MyRepositories.class.php
index cf5ed88..7a8331c 100644
--- a/src/plugins/scmgit/common/scmgit_Widget_MyRepositories.class.php
+++ b/src/plugins/scmgit/common/scmgit_Widget_MyRepositories.class.php
@@ -57,7 +57,7 @@ class scmgit_Widget_MyRepositories extends Widget {
                        $returnhtml .= $HTML->listTableBottom();
                        return $returnhtml;
                } else {
-                       return $HTML->information(_('No personal git 
repository'));
+                       return $HTML->warning_msg(_('No personal git 
repository.'));
                }
        }
 
diff --git a/src/plugins/scmhg/common/HgPlugin.class.php 
b/src/plugins/scmhg/common/HgPlugin.class.php
index 374aef2..1665271 100644
--- a/src/plugins/scmhg/common/HgPlugin.class.php
+++ b/src/plugins/scmhg/common/HgPlugin.class.php
@@ -221,7 +221,7 @@ Offer DAV or SSH access.");
                        $b .= $HTML->multiTableRow(array(), $cells);
                        $b .= $HTML->listTableBottom();
                } else {
-                       $b .= $HTML->information(_('No history yet'));
+                       $b .= $HTML->warning_msg(_('No history yet.'));
                }
 
                return $b;
diff --git a/src/plugins/scmsvn/common/SVNPlugin.class.php 
b/src/plugins/scmsvn/common/SVNPlugin.class.php
index fb8ee5b..e797606 100644
--- a/src/plugins/scmsvn/common/SVNPlugin.class.php
+++ b/src/plugins/scmsvn/common/SVNPlugin.class.php
@@ -262,7 +262,7 @@ some control over it to the project's administrator.");
                        $b .= $HTML->multiTableRow(array(), $cells);
                        $b .= $HTML->listTableBottom();
                } else {
-                       $b .= $HTML->information(_('No history yet'));
+                       $b .= $HTML->warning_msg(_('No history yet.'));
                }
 
                return $b;
diff --git a/src/www/include/features_boxes.php 
b/src/www/include/features_boxes.php
index d76e55b..17252a0 100644
--- a/src/www/include/features_boxes.php
+++ b/src/www/include/features_boxes.php
@@ -107,7 +107,7 @@ function show_top_downloads() {
                }
        }
        if ( $return == "" ) {
-               return $HTML->information(_('No stats available'));
+               return $HTML->warning_msg(_('No stats available.'));
        } else {
                $return = $HTML->listTableTop(). $return . 
$HTML->listTableBottom();
        }
@@ -188,7 +188,7 @@ function show_newest_projects() {
        }
 
        if ( $return == "" ) {
-               return $HTML->information(_('No stats available'));
+               return $HTML->warning_msg(_('No stats available.'));
        } else {
                $return = 
$HTML->listTableTop().$return.$HTML->listTableBottom();
        }
@@ -209,7 +209,7 @@ function show_highest_ranked_users() {
        } else {
                $rows = db_numrows($res);
                if ($rows < 1) {
-                       return  $HTML->information(_('No stats available'));
+                       return  $HTML->warning_msg(_('No stats available.'));
                } else {
                        $return = '';
                        for ($i=0; $i < $rows; $i++) {
@@ -245,7 +245,7 @@ function show_highest_ranked_projects() {
                $count++ ;
        }
        if ( $return == "" ) {
-               return $HTML->information(_('No stats available'));
+               return $HTML->warning_msg(_('No stats available.'));
        } else {
                $return = 
$HTML->listTableTop().$return.$HTML->listTableBottom();
        }
diff --git a/src/www/news/news_utils.php b/src/www/news/news_utils.php
index 523858f..b6fecff 100644
--- a/src/www/news/news_utils.php
+++ b/src/www/news/news_utils.php
@@ -87,7 +87,7 @@ function news_footer($params = array()) {
  * @return string
  */
 function news_show_latest($group_id = 0, $limit = 10, $show_summaries = true, 
$allow_submit = true, $flat = false, $tail_headlines = 0, $show_forum = true) {
-
+       global $HTML;
        if (!$group_id) {
                $group_id=forge_get_config('news_group');
        }
@@ -121,7 +121,7 @@ ORDER BY post_date DESC',
        $return = '';
 
        if (!$result || $rows < 1) {
-               $return .= _('No News Found');
+               $return .= $HTML->warning_msg(_('No news found.'));
                $return .= db_error();
 //             $return .= "</div>";
        } else {

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

Summary of changes:
 .../Widget_HomeDetailActivityMostActiveProjectWeek.class.php      | 2 +-
 src/common/widget/Widget_HomeLatestFileReleases.class.php         | 2 +-
 src/common/widget/Widget_MyArtifacts.class.php                    | 2 +-
 src/common/widget/Widget_MyBookmarks.class.php                    | 2 +-
 src/common/widget/Widget_MyLatestCommits.class.php                | 4 ++--
 src/common/widget/Widget_MyTasks.class.php                        | 2 +-
 src/common/widget/Widget_ProjectDocumentsActivity.class.php       | 2 +-
 src/common/widget/Widget_ProjectLatestArtifacts.class.php         | 2 +-
 src/common/widget/Widget_ProjectLatestCommits.class.php           | 2 +-
 src/common/widget/Widget_ProjectLatestDocuments.class.php         | 2 +-
 src/plugins/scmgit/common/GitPlugin.class.php                     | 2 +-
 src/plugins/scmgit/common/scmgit_Widget_MyRepositories.class.php  | 2 +-
 src/plugins/scmhg/common/HgPlugin.class.php                       | 2 +-
 src/plugins/scmsvn/common/SVNPlugin.class.php                     | 2 +-
 src/www/include/features_boxes.php                                | 8 ++++----
 src/www/news/news_utils.php                                       | 4 ++--
 16 files changed, 21 insertions(+), 21 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to