From 73a112d5095760017cc8a3464de7f0c84e562ada Mon Sep 17 00:00:00 2001 From: Eike Foken Date: Tue, 20 Sep 2011 22:23:14 +0200 Subject: [PATCH] Update dashboard for newly shared projects --- application/controllers/dashboard.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/application/controllers/dashboard.php b/application/controllers/dashboard.php index 9732d15..ef667bd 100644 --- a/application/controllers/dashboard.php +++ b/application/controllers/dashboard.php @@ -53,29 +53,29 @@ class Dashboard extends MY_Controller { 'count' => $this->job->countUnseenResults(), 'text' => _('Jobs finished'), 'id' => 'jobs_finished', - 'title' => sprintf(_('%d jobs finished recently'), 3), - 'target' => '#', + 'title' => _('Show all finished jobs'), + 'target' => 'jobs#finished', ), array( - 'count' => 0, + 'count' => $this->share->countUnseen(), 'text' => _('Newly shared projects'), 'id' => 'shared_projects', - 'title' => sprintf(_('You were invited to join %d projects'), 2), - 'target' => '#', + 'title' => _('Show all projects shared with me'), + 'target' => 'shares', ), array( 'count' => $this->job->countRunning(), 'text' => _('Job running'), 'id' => 'jobs_running', - 'title' => sprintf(_('There is %d job currently running'), 1), - 'target' => '#', + 'title' => _('Show all running jobs'), + 'target' => 'jobs#running', ), array( 'count' => $this->job->countPending(), 'text' => _('Jobs pending'), 'id' => 'jobs_pending', - 'title' => sprintf(_('There are %2 job currently pending'), 1), - 'target' => '#', + 'title' => _('Show all pending jobs'), + 'target' => 'jobs#pending', ), ); $this->load->view('dashboard', $tpl);