[Fusionforge-commits] FusionForge branch master updated. cb0bc97197c261ffbc5414b8f0d002bb7d223c44

Franck Villaume nerville at fusionforge.org
Sun Nov 9 18:54:31 CET 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, master has been updated
       via  cb0bc97197c261ffbc5414b8f0d002bb7d223c44 (commit)
      from  0deea5d56489197fb26e5885c8ec17ac55b8240c (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 cb0bc97197c261ffbc5414b8f0d002bb7d223c44
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sun Nov 9 18:54:11 2014 +0100

    widgets: add direct link for browsing tab

diff --git a/src/common/widget/Widget_ProjectLatestCommits.class.php b/src/common/widget/Widget_ProjectLatestCommits.class.php
index bde64f6..c15deed 100644
--- a/src/common/widget/Widget_ProjectLatestCommits.class.php
+++ b/src/common/widget/Widget_ProjectLatestCommits.class.php
@@ -91,6 +91,7 @@ class Widget_ProjectLatestCommits extends Widget {
 		} else {
 			$html .= $HTML->information(_('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/plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php b/src/plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php
index 0581645..6f23ab2 100644
--- a/src/plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php
+++ b/src/plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php
@@ -92,8 +92,9 @@ class hudson_Widget_ProjectJobsOverview extends HudsonOverviewWidget {
 	function getContent() {
 		global $HTML;
 		$jobs = $this->getJobsByGroup($this->group_id);
+		$html = '';
 		if (sizeof($jobs) > 0) {
-			$html = $HTML->listTableTop();
+			$html .= $HTML->listTableTop();
 			foreach ($jobs as $job_id => $job) {
 				try {
 					$cells = array();
@@ -105,10 +106,11 @@ class hudson_Widget_ProjectJobsOverview extends HudsonOverviewWidget {
 				}
 			}
 			$html .= $HTML->listTableBottom();
-			return $html;
 		} else {
-			return $HTML->information(_('No job available.'));
+			$html .= $HTML->information(_('No job available.'));
 		}
+		$html .= html_e('div', array('class' => 'underline-link'), util_make_link('/plugins/hudson/?group_id='.$this->group_id, _('Browse Hudson/Jenkins plugin')));
+		return $html;
 	}
 
 	function isAvailable() {

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

Summary of changes:
 src/common/widget/Widget_ProjectLatestCommits.class.php        |    1 +
 .../hudson/include/hudson_Widget_ProjectJobsOverview.class.php |    8 +++++---
 2 files changed, 6 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list