diff --git a/src/applications/maniphest/view/ManiphestTaskProjectsView.php b/src/applications/maniphest/view/ManiphestTaskProjectsView.php index 419b082ce0..3ce8d08d99 100644 --- a/src/applications/maniphest/view/ManiphestTaskProjectsView.php +++ b/src/applications/maniphest/view/ManiphestTaskProjectsView.php @@ -15,9 +15,9 @@ final class ManiphestTaskProjectsView extends ManiphestView { public function render() { require_celerity_resource('phabricator-project-tag-css'); + $max_visible_tags = 4; - - $show = array_slice($this->handles, 0, 2); + $show = array_slice($this->handles, 0, $max_visible_tags); $tags = array(); if ($show) { @@ -39,7 +39,7 @@ final class ManiphestTaskProjectsView extends ManiphestView { pht('No Project')); } - if (count($this->handles) > 2) { + if (count($this->handles) > $max_visible_tags) { require_celerity_resource('aphront-tooltip-css'); Javelin::initBehavior('phabricator-tooltips');