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 ec6499875bbe23919f1edd10ffb848faf0369894 (commit)
from 0c9b9b9b76f7e627a45962a0aea295ce0150c70d (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=ec6499875bbe23919f1edd10ffb848faf0369894
commit ec6499875bbe23919f1edd10ffb848faf0369894
Author: Franck Villaume <[email protected]>
Date: Sat Oct 1 10:24:34 2016 +0200
use HTML information helper
diff --git a/src/common/tracker/include/ArtifactHtml.class.php
b/src/common/tracker/include/ArtifactHtml.class.php
index fc32c21..d5bdc4f 100644
--- a/src/common/tracker/include/ArtifactHtml.class.php
+++ b/src/common/tracker/include/ArtifactHtml.class.php
@@ -5,7 +5,7 @@
* Copyright 1999-2001 (c) VA Linux Systems
* Copyright (C) 2011-2012 Alain Peyrat - Alcatel-Lucent
* Copyright 2011, Franck Villaume - Capgemini
- * Copyright 2015, 2016, Franck Villaume - TrivialDev
+ * Copyright 2015-2016, Franck Villaume - TrivialDev
* http://fusionforge.org
*
* This file is part of FusionForge. FusionForge is free software;
@@ -57,7 +57,7 @@ class ArtifactHtml extends Artifact {
}
function showMessages() {
-
+ global $HTML;
if (session_loggedin()) {
$u = session_get_user();
$order = $u->getPreference('tracker_messages_order');
@@ -130,8 +130,7 @@ function hide_edit_button(id) {
echo '</tbody></table>';
} else {
- echo '
- <p>'._('No Comments Have Been Posted').'</p>';
+ echo $HTML->information(_('No Comments Have Been
Posted'));
}
}
@@ -148,7 +147,7 @@ function hide_edit_button(id) {
$title_arr[]=_('Date');
$title_arr[]=_('By');
- echo $HTML->listTableTop ($title_arr);
+ echo $HTML->listTableTop($title_arr);
$artifactType =& $this->getArtifactType();
@@ -169,7 +168,7 @@ function hide_edit_button(id) {
if (db_result($result, $i, 'old_value'))
echo date(_('Y-m-d
H:i'),db_result($result, $i, 'old_value'));
else
- echo '<i>None</i>';
+ echo '<i>'._('None').'</i>';
} else {
echo db_result($result, $i,
'old_value');
@@ -183,8 +182,7 @@ function hide_edit_button(id) {
echo $HTML->listTableBottom();
} else {
- echo '
- <p>'._('No Changes Have Been Made to This Item').'</p>';
+ echo $HTML->information(_('No Changes Have Been Made to
This Item'));
}
}
diff --git a/src/common/tracker/include/ArtifactTypeHtml.class.php
b/src/common/tracker/include/ArtifactTypeHtml.class.php
index 2305b6a..8abd2a0 100644
--- a/src/common/tracker/include/ArtifactTypeHtml.class.php
+++ b/src/common/tracker/include/ArtifactTypeHtml.class.php
@@ -548,6 +548,8 @@ EOS;
echo $HTML->listTableBottom();
echo '</td></tr>';
+ } else {
+ echo $HTML->information(_('No attached documents'));
}
}
-----------------------------------------------------------------------
Summary of changes:
src/common/tracker/include/ArtifactHtml.class.php | 14 ++++++--------
src/common/tracker/include/ArtifactTypeHtml.class.php | 2 ++
2 files changed, 8 insertions(+), 8 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits