Update dashboard for newly shared projects
This commit is contained in:
@@ -53,29 +53,29 @@ class Dashboard extends MY_Controller {
|
|||||||
'count' => $this->job->countUnseenResults(),
|
'count' => $this->job->countUnseenResults(),
|
||||||
'text' => _('Jobs finished'),
|
'text' => _('Jobs finished'),
|
||||||
'id' => 'jobs_finished',
|
'id' => 'jobs_finished',
|
||||||
'title' => sprintf(_('%d jobs finished recently'), 3),
|
'title' => _('Show all finished jobs'),
|
||||||
'target' => '#',
|
'target' => 'jobs#finished',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'count' => 0,
|
'count' => $this->share->countUnseen(),
|
||||||
'text' => _('Newly shared projects'),
|
'text' => _('Newly shared projects'),
|
||||||
'id' => 'shared_projects',
|
'id' => 'shared_projects',
|
||||||
'title' => sprintf(_('You were invited to join %d projects'), 2),
|
'title' => _('Show all projects shared with me'),
|
||||||
'target' => '#',
|
'target' => 'shares',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'count' => $this->job->countRunning(),
|
'count' => $this->job->countRunning(),
|
||||||
'text' => _('Job running'),
|
'text' => _('Job running'),
|
||||||
'id' => 'jobs_running',
|
'id' => 'jobs_running',
|
||||||
'title' => sprintf(_('There is %d job currently running'), 1),
|
'title' => _('Show all running jobs'),
|
||||||
'target' => '#',
|
'target' => 'jobs#running',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'count' => $this->job->countPending(),
|
'count' => $this->job->countPending(),
|
||||||
'text' => _('Jobs pending'),
|
'text' => _('Jobs pending'),
|
||||||
'id' => 'jobs_pending',
|
'id' => 'jobs_pending',
|
||||||
'title' => sprintf(_('There are %2 job currently pending'), 1),
|
'title' => _('Show all pending jobs'),
|
||||||
'target' => '#',
|
'target' => 'jobs#pending',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
$this->load->view('dashboard', $tpl);
|
$this->load->view('dashboard', $tpl);
|
||||||
|
|||||||
Reference in New Issue
Block a user