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

@@ -90,7 +90,6 @@ final class PhabricatorFileListController extends PhabricatorFileController {
$id = $file->getID();
$phid = $file->getPHID();
$name = $file->getName();
$file_name = "F{$id} {$name}";
$file_uri = $this->getApplicationURI("/info/{$phid}/");
$date_created = phabricator_date($file->getDateCreated(), $user);
@@ -104,7 +103,8 @@ final class PhabricatorFileListController extends PhabricatorFileController {
$item = id(new PhabricatorObjectItemView())
->setObject($file)
->setHeader($file_name)
->setObjectName("F{$id}")
->setHeader($name)
->setHref($file_uri)
->addAttribute($uploaded)
->addIcon('none', phabricator_format_bytes($file->getByteSize()));