From 0f1e5e133d9e2054478e8b7c355fafaf784e7acd Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 17 Mar 2016 04:31:20 +0000 Subject: [PATCH] enhanced the issue graph to open a issue view on click --- codepot/src/codepot/controllers/site.php | 11 ++- codepot/src/codepot/views/site_home.php | 113 +++++------------------ 2 files changed, 28 insertions(+), 96 deletions(-) diff --git a/codepot/src/codepot/controllers/site.php b/codepot/src/codepot/controllers/site.php index 093f2b35..d34dae11 100644 --- a/codepot/src/codepot/controllers/site.php +++ b/codepot/src/codepot/controllers/site.php @@ -84,10 +84,12 @@ class Site extends Controller } // get the issue for all users + /* $issues = $this->issues->getMyIssues ( - /*$login['id']*/ '', $this->issuehelper->_get_open_status_array($this->lang)); + '', $this->issuehelper->_get_open_status_array($this->lang)); $recently_resolved_issues = $this->issues->getMyIssues ( '', $this->issuehelper->_get_resolved_status_array($this->lang), 168); + */ $open_issue_counts_per_project = $this->issues->countIssuesPerProject ( '', $this->issuehelper->_get_open_status_array($this->lang), 0); @@ -102,7 +104,8 @@ class Site extends Controller $login['id'], $this->issuehelper->_get_open_status_array($this->lang), 0); } - if ($issues === FALSE || $recently_resolved_issues === FALSE || $open_issue_counts_per_project === FALSE) + if (/*$issues === FALSE || $recently_resolved_issues === FALSE ||*/ + $open_issue_counts_per_project === FALSE || $your_open_issue_counts_per_project === FALSE) { $data['login'] = $login; $data['message'] = 'DATABASE ERROR'; @@ -114,8 +117,8 @@ class Site extends Controller $data['latest_projects'] = $latest_projects; $data['log_entries'] = $log_entries; $data['site'] = $site; - $data['issues'] = $issues; - $data['recently_resolved_issues'] = $recently_resolved_issues; + /*$data['issues'] = $issues; + $data['recently_resolved_issues'] = $recently_resolved_issues;*/ $data['open_issue_counts_per_project'] = $open_issue_counts_per_project; $data['your_open_issue_counts_per_project'] = $your_open_issue_counts_per_project; $data['issue_type_array'] = $this->issuehelper->_get_type_array($this->lang); diff --git a/codepot/src/codepot/views/site_home.php b/codepot/src/codepot/views/site_home.php index 8a575648..fbc8fe8b 100644 --- a/codepot/src/codepot/views/site_home.php +++ b/codepot/src/codepot/views/site_home.php @@ -28,8 +28,6 @@ - -