Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/storage/PhabricatorProjectColumn.php
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | final class PhabricatorProjectColumn | ||||
} | } | ||||
public function isDeleted() { | public function isDeleted() { | ||||
return ($this->getStatus() == self::STATUS_DELETED); | return ($this->getStatus() == self::STATUS_DELETED); | ||||
} | } | ||||
public function getDisplayName() { | public function getDisplayName() { | ||||
if ($this->isDefaultColumn()) { | if ($this->isDefaultColumn()) { | ||||
return pht('Backlog'); | $name = pht('Backlog'); | ||||
} | } | ||||
return $this->getName(); | else { | ||||
$name = $this->getName(); | |||||
} | |||||
return sprintf('%s (%s %s)', | |||||
$name, | |||||
pht('on board'), | |||||
$this->getProject()->getName()); | |||||
bluehawk: I modified the PhabricatorProjectColumn->getDisplayName() to show "ColumnName (on board Board)"… | |||||
} | } | ||||
public function getHeaderColor() { | public function getHeaderColor() { | ||||
if ($this->isDefaultColumn()) { | if ($this->isDefaultColumn()) { | ||||
return PhabricatorActionHeaderView::HEADER_DARK_GREY; | return PhabricatorActionHeaderView::HEADER_DARK_GREY; | ||||
} | } | ||||
return PhabricatorActionHeaderView::HEADER_GREY; | return PhabricatorActionHeaderView::HEADER_GREY; | ||||
} | } | ||||
Show All 38 Lines |
I modified the PhabricatorProjectColumn->getDisplayName() to show "ColumnName (on board Board)" so that it showed up correctly in the tokenizer. Otherwise, it's impossible to tell which board the 20 "Backlog"s are coming from. However, now that shows up everywhere else and is horribly ugly. I'm not sure how to make it show up that way only in the tokenizer.
Ugliness:
Without this change, this is what you get when searching: