Page MenuHomePhabricator

D8213.id19540.diff
No OneTemporary

D8213.id19540.diff

diff --git a/src/applications/maniphest/view/ManiphestTaskProjectsView.php b/src/applications/maniphest/view/ManiphestTaskProjectsView.php
--- a/src/applications/maniphest/view/ManiphestTaskProjectsView.php
+++ b/src/applications/maniphest/view/ManiphestTaskProjectsView.php
@@ -15,9 +15,9 @@
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 @@
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');

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 3:29 AM (11 h, 11 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6928317
Default Alt Text
D8213.id19540.diff (836 B)

Event Timeline