mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +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:
parent
574a9fa665
commit
08bd383aae
3 changed files with 5 additions and 4 deletions
|
@ -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())
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue