From bf2034b4160d09bca25030ad75d26247f0371a92 Mon Sep 17 00:00:00 2001 From: Busfreak Date: Thu, 17 Dec 2015 19:36:19 +0100 Subject: extend hook 'template:project:sidebar' with $project --- app/Template/project/sidebar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php index 2cc5ff2f..d484e2bc 100644 --- a/app/Template/project/sidebar.php +++ b/app/Template/project/sidebar.php @@ -60,7 +60,7 @@ - hook->render('template:project:sidebar') ?> + hook->render('template:project:sidebar', array('project' => $project)) ?> -- cgit v1.2.3 From a4a1cd9f0cfe6679540dad538703648be19f48b1 Mon Sep 17 00:00:00 2001 From: Busfreak Date: Thu, 17 Dec 2015 20:00:15 +0100 Subject: set class=active when selecting controller=ProjectPermission --- app/Template/project/sidebar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php index d484e2bc..92794038 100644 --- a/app/Template/project/sidebar.php +++ b/app/Template/project/sidebar.php @@ -33,7 +33,7 @@ url->link(t('Categories'), 'category', 'index', array('project_id' => $project['id'])) ?> -
  • app->getRouterController() === 'project' && $this->app->getRouterAction() === 'permissions' ? 'class="active"' : '' ?>> +
  • app->getRouterController() === 'ProjectPermission' ? 'class="active"' : '' ?>> url->link(t('Permissions'), 'ProjectPermission', 'index', array('project_id' => $project['id'])) ?>
  • -- cgit v1.2.3