Update dashboard for newly shared projects

This commit is contained in:
Eike Foken
2011-09-20 22:23:14 +02:00
parent 986bf7b251
commit 73a112d509

View File

@@ -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);