diff --git a/app/Helper/Url.php b/app/Helper/Url.php index 9bb38e591..64b2c83f9 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 a7741f8d8..201ee2fc8 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 18ddea36a..7bfda7729 100644 --- a/app/Template/task/layout.php +++ b/app/Template/task/layout.php @@ -3,7 +3,7 @@