Use site_url for links in dashboard

This commit is contained in:
Karsten Heiken
2011-09-28 20:50:36 +02:00
parent 67730d4557
commit ceeb0ef08b

View File

@@ -54,28 +54,28 @@ class Dashboard extends MY_Controller {
'text' => _('Jobs finished'), 'text' => _('Jobs finished'),
'id' => 'jobs_finished', 'id' => 'jobs_finished',
'title' => _('Show all finished jobs'), 'title' => _('Show all finished jobs'),
'target' => 'jobs#finished', 'target' => site_url('jobs#finished'),
), ),
array( array(
'count' => $this->share->countUnseen(), 'count' => $this->share->countUnseen(),
'text' => _('Newly shared projects'), 'text' => _('Newly shared projects'),
'id' => 'shared_projects', 'id' => 'shared_projects',
'title' => _('Show all projects shared with me'), 'title' => _('Show all projects shared with me'),
'target' => 'shares', 'target' => site_url('shares'),
), ),
array( array(
'count' => $this->job->countRunning(), 'count' => $this->job->countRunning(),
'text' => _('Job running'), 'text' => _('Job running'),
'id' => 'jobs_running', 'id' => 'jobs_running',
'title' => _('Show all running jobs'), 'title' => _('Show all running jobs'),
'target' => 'jobs#running', 'target' => site_url('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' => _('Show all pending jobs'), 'title' => _('Show all pending jobs'),
'target' => 'jobs#pending', 'target' => site_url('jobs#pending'),
), ),
); );
$this->load->view('dashboard', $tpl); $this->load->view('dashboard', $tpl);