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 ef064c6094675746282e1a32bc9432a8bf878881 (commit)
from 12a44b62c85887262e3ec23290a86b5aa4dc9d64 (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=ef064c6094675746282e1a32bc9432a8bf878881
commit ef064c6094675746282e1a32bc9432a8bf878881
Author: Franck Villaume <[email protected]>
Date: Sun May 15 17:28:46 2016 +0200
use HTML helpers
diff --git a/src/common/widget/Widget_ProjectPublicAreas.class.php
b/src/common/widget/Widget_ProjectPublicAreas.class.php
index 9edb50b..a24e270 100644
--- a/src/common/widget/Widget_ProjectPublicAreas.class.php
+++ b/src/common/widget/Widget_ProjectPublicAreas.class.php
@@ -45,11 +45,8 @@ class Widget_ProjectPublicAreas extends Widget {
$HTML = $GLOBALS['HTML'];
// ################# Homepage Link
- $result .= '<div class="public-area-box" rel="doap:homepage">';
- $result .= util_make_link($project->getHomePage(),
- $HTML->getHomePic(_('Home Page')) . ' ' .
- _('Project Home Page'), false, true);
- $result .= "</div>\n";
+ $result .= html_e('div', array('class' => 'public-area-box',
'rel' => 'doap:homepage'),
+ util_make_link($project->getHomePage(),
$HTML->getHomePic(_('Home Page')). ' ' ._('Project Home Page'), false, true));
// ################## ArtifactTypes
@@ -76,22 +73,21 @@ class Widget_ProjectPublicAreas extends Widget {
if (count($rows) < 1) {
$result .= "<br />\n<em>"._('There are no
trackers available').'</em>';
} else {
- $result .= "\n".'<ul class="tracker"
rel="doap:bug-database">'."\n";
+ $elementsLi = array();
foreach ($rows as $row) {
// tracker REST paths are something
like : /tracker/cm/project/A_PROJECT/atid/NUMBER to plan compatibility
// with OSLC-CM server API
$group_artifact_id =
$row['group_artifact_id'];
$tracker_stdzd_uri =
util_make_url('/tracker/cm/project/'. $project->getUnixName() .'/atid/'.
$group_artifact_id);
- $result .= "\t".'<li about="'.
$tracker_stdzd_uri . '" typeof="sioc:Container">'."\n";
- $result .= '<span
rel="http://www.w3.org/2002/07/owl#sameAs">'."\n";
- $result .=
util_make_link('/tracker/?atid='. $group_artifact_id .
'&group_id='.$group_id.'&func=browse', $row['name']) . ' ' ;
- $result .= "</span>\n"; // /owl:sameAs
- $result .=
sprintf(ngettext('(<strong>%1$s</strong> open / <strong>%2$s</strong> total)',
'(<strong>%1$s</strong> open / <strong>%2$s</strong> total)',
$row['open_count']), $row['open_count'], $row['count']);
- $result .= '<br />';
- $result .= '<span rel="sioc:has_space"
resource="" ></span>'."\n";
- $result .= "</li>\n";
+ $contentLi .= '<span
rel="http://www.w3.org/2002/07/owl#sameAs">'."\n";
+ $contentLi .=
util_make_link('/tracker/?atid='. $group_artifact_id .
'&group_id='.$group_id.'&func=browse', $row['name']) . ' ' ;
+ $contentLi .= "</span>\n"; //
/owl:sameAs
+ $contentLi .=
sprintf(ngettext('(<strong>%1$s</strong> open / <strong>%2$s</strong> total)',
'(<strong>%1$s</strong> open / <strong>%2$s</strong> total)',
$row['open_count']), $row['open_count'], $row['count']);
+ $contentLi .= '<br />';
+ $contentLi .= '<span
rel="sioc:has_space" resource="" ></span>'."\n";
+ $elementLi[] = array('content' =>
$contentLi, 'attrs' => array('about' => $tracker_stdzd_uri, 'typeof' =>
'sioc:Container'));
}
- $result .= "</ul>\n";
+ $result .= $HTML->html_list($elementsLi,
array('class' => 'tracker', 'rel' => 'doap:bug-database'));
}
$result .= "</div>\n";
-----------------------------------------------------------------------
Summary of changes:
.../widget/Widget_ProjectPublicAreas.class.php | 26 +++++++++-------------
1 file changed, 11 insertions(+), 15 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits