1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 23:40:57 +01:00

Add title to PHUIObjectItemView's name for hover display

Summary: This adds back the title to the header link and scans through the codebase for instances where

Test Plan: Tested as many ObjectItemLists as I could find (each app homepage), there may be outliers, but can resolve those individually.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D10961
This commit is contained in:
Chad Little 2014-12-10 10:26:55 -08:00
parent 574a9fa665
commit 08bd383aae
3 changed files with 5 additions and 4 deletions

View file

@ -121,9 +121,8 @@ final class DifferentialRevisionListView extends AphrontView {
}
$item->setObjectName('D'.$revision->getID());
$item->setHeader(phutil_tag('a',
array('href' => '/D'.$revision->getID()),
$revision->getTitle()));
$item->setHeader($revision->getTitle());
$item->setHref('/D'.$revision->getID());
if (isset($icons['draft'])) {
$draft = id(new PHUIIconView())

View file

@ -149,7 +149,8 @@ final class PhabricatorFlagSearchEngine
$item = id(new PHUIObjectItemView())
->addHeadIcon($flag_icon)
->setHeader($flag->getHandle()->renderLink());
->setHeader($flag->getHandle()->getFullName())
->setHref($flag->getHandle()->getURI());
$item->addAction(
id(new PHUIListItemView())

View file

@ -329,6 +329,7 @@ final class PHUIObjectItemView extends AphrontTagView {
array(
'href' => $this->href,
'class' => 'phui-object-item-link',
'title' => ($this->href) ? $this->header : null,
),
$this->header);