Separate object names from object links in other applications

Summary: Move `Fnn`, `Pnn`, etc., out of the link text so they can be double-clicked to select.

Test Plan: Viewed Paste, Files, Ponder.

Reviewers: chad

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D5433
This commit is contained in:
epriestley
2013-03-23 15:01:05 -07:00
parent 8696b8c64c
commit dcfe011fc7
5 changed files with 48 additions and 44 deletions

View File

@@ -97,8 +97,11 @@ final class PhabricatorPasteListController extends PhabricatorPasteController {
'%s Line(s)',
new PhutilNumber($line_count));
$title = nonempty($paste->getTitle(), pht('(An Untitled Masterwork)'));
$item = id(new PhabricatorObjectItemView())
->setHeader($paste->getFullName())
->setObjectName('P'.$paste->getID())
->setHeader($title)
->setHref('/P'.$paste->getID())
->setObject($paste)
->addAttribute(pht('Created %s by %s', $created, $author))