From 7442499bb5b709e6a4d920098b92b21156ae4945 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 25 May 2015 14:58:24 -0400 Subject: Move swimlane title and add swimlane anchor --- app/Helper/Url.php | 10 ++++++---- app/Template/board/swimlane.php | 18 +++++++++--------- app/Template/task/layout.php | 2 +- 3 files changed, 16 insertions(+), 14 deletions(-) (limited to 'app') diff --git a/app/Helper/Url.php b/app/Helper/Url.php index 9bb38e59..64b2c83f 100644 --- a/app/Helper/Url.php +++ b/app/Helper/Url.php @@ -24,11 +24,12 @@ class Url extends \Core\Base * @param boolean $csrf Add a CSRF token * @param string $class CSS class attribute * @param boolean $new_tab Open the link in a new tab + * @param string $anchor Link Anchor * @return string */ - public function link($label, $controller, $action, array $params = array(), $csrf = false, $class = '', $title = '', $new_tab = false) + public function link($label, $controller, $action, array $params = array(), $csrf = false, $class = '', $title = '', $new_tab = false, $anchor = '') { - return ''.$label.''; + return ''.$label.''; } /** @@ -39,9 +40,10 @@ class Url extends \Core\Base * @param string $action Action name * @param array $params Url parameters * @param boolean $csrf Add a CSRF token + * @param string $anchor Link Anchor * @return string */ - public function href($controller, $action, array $params = array(), $csrf = false) + public function href($controller, $action, array $params = array(), $csrf = false, $anchor = '') { $values = array( 'controller' => $controller, @@ -54,7 +56,7 @@ class Url extends \Core\Base $values += $params; - return '?'.http_build_query($values, '', '&'); + return '?'.http_build_query($values, '', '&').(empty($anchor) ? '' : '#'.$anchor); } /** diff --git a/app/Template/board/swimlane.php b/app/Template/board/swimlane.php index a7741f8d..201ee2fc 100644 --- a/app/Template/board/swimlane.php +++ b/app/Template/board/swimlane.php @@ -1,19 +1,13 @@ - + - 0): ?> + e($swimlane['name']) ?> - - e($swimlane['name']) ?> - - - () - @@ -54,7 +48,13 @@ - + + e($swimlane['name']) ?> + + + () + + diff --git a/app/Template/task/layout.php b/app/Template/task/layout.php index 18ddea36..7bfda772 100644 --- a/app/Template/task/layout.php +++ b/app/Template/task/layout.php @@ -3,7 +3,7 @@