зеркало из https://github.com/mozilla/gecko-dev.git
added the Breadcrumb helper link
This commit is contained in:
Родитель
5e45f40889
Коммит
f85fd20f51
|
@ -17,7 +17,7 @@ class ResultsController extends AppController {
|
|||
* Cake Helpers
|
||||
* @var array
|
||||
*/
|
||||
var $helpers = array('Html', 'Javascript', 'Export', 'Pagination','Time');
|
||||
var $helpers = array('Html', 'Javascript', 'Export', 'Pagination','Time','Breadcrumb');
|
||||
|
||||
/**
|
||||
* Pagination helper variable array
|
||||
|
@ -60,6 +60,9 @@ class ResultsController extends AppController {
|
|||
// Fill in all the data passed in $_GET
|
||||
$this->set('url_params',$this->decodeAndSanitize($this->params['url']));
|
||||
|
||||
// Give us some breadcrumbs
|
||||
$this->set('breadcrumbs', array('Home' => 'http://mozilla.org', 'Uninstall Survey Results' => ''));
|
||||
|
||||
// We'll need to include the graphing libraries
|
||||
$this->set('include_graph_libraries', true);
|
||||
|
||||
|
@ -78,6 +81,9 @@ class ResultsController extends AppController {
|
|||
// Fill in all the data passed in $_GET
|
||||
$this->set('url_params',$this->decodeAndSanitize($this->params['url']));
|
||||
|
||||
// Give us some breadcrumbs
|
||||
$this->set('breadcrumbs', array('Home' => 'http://mozilla.org', 'Uninstall Survey Results' => 'results/', 'Comments' => ''));
|
||||
|
||||
// Pagination settings
|
||||
$paging['style'] = 'html';
|
||||
$paging['link'] = "/results/comments/?product=".urlencode($this->params['url']['product'])."&start_date=".urlencode($this->params['url']['start_date'])."&end_date=".urlencode($this->params['url']['end_date'])."&show={$this->pagination_parameters['show']}&sort={$this->pagination_parameters['sortBy']}&direction={$this->pagination_parameters['direction']}&page=";
|
||||
|
|
Загрузка…
Ссылка в новой задаче