1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-29 08:50:58 +01:00

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

@ -2996,7 +2996,7 @@ celerity_register_resource_map(array(
), ),
'phabricator-object-item-list-view-css' => 'phabricator-object-item-list-view-css' =>
array( array(
'uri' => '/res/f5dcfaf4/rsrc/css/layout/phabricator-object-item-list-view.css', 'uri' => '/res/527ed374/rsrc/css/layout/phabricator-object-item-list-view.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -3694,7 +3694,7 @@ celerity_register_resource_map(array(
), array( ), array(
'packages' => 'packages' =>
array( array(
'5515b5b4' => '2f159460' =>
array( array(
'name' => 'core.pkg.css', 'name' => 'core.pkg.css',
'symbols' => 'symbols' =>
@ -3736,7 +3736,7 @@ celerity_register_resource_map(array(
34 => 'phabricator-object-item-list-view-css', 34 => 'phabricator-object-item-list-view-css',
35 => 'global-drag-and-drop-css', 35 => 'global-drag-and-drop-css',
), ),
'uri' => '/res/pkg/5515b5b4/core.pkg.css', 'uri' => '/res/pkg/2f159460/core.pkg.css',
'type' => 'css', 'type' => 'css',
), ),
'95ceba95' => '95ceba95' =>
@ -3927,16 +3927,16 @@ celerity_register_resource_map(array(
'reverse' => 'reverse' =>
array( array(
'aphront-attached-file-view-css' => '6b1fccc6', 'aphront-attached-file-view-css' => '6b1fccc6',
'aphront-dialog-view-css' => '5515b5b4', 'aphront-dialog-view-css' => '2f159460',
'aphront-error-view-css' => '5515b5b4', 'aphront-error-view-css' => '2f159460',
'aphront-form-view-css' => '5515b5b4', 'aphront-form-view-css' => '2f159460',
'aphront-list-filter-view-css' => '5515b5b4', 'aphront-list-filter-view-css' => '2f159460',
'aphront-pager-view-css' => '5515b5b4', 'aphront-pager-view-css' => '2f159460',
'aphront-panel-view-css' => '5515b5b4', 'aphront-panel-view-css' => '2f159460',
'aphront-table-view-css' => '5515b5b4', 'aphront-table-view-css' => '2f159460',
'aphront-tokenizer-control-css' => '5515b5b4', 'aphront-tokenizer-control-css' => '2f159460',
'aphront-tooltip-css' => '5515b5b4', 'aphront-tooltip-css' => '2f159460',
'aphront-typeahead-control-css' => '5515b5b4', 'aphront-typeahead-control-css' => '2f159460',
'differential-changeset-view-css' => '8aaacd1b', 'differential-changeset-view-css' => '8aaacd1b',
'differential-core-view-css' => '8aaacd1b', 'differential-core-view-css' => '8aaacd1b',
'differential-inline-comment-editor' => '322728f3', 'differential-inline-comment-editor' => '322728f3',
@ -3950,7 +3950,7 @@ celerity_register_resource_map(array(
'differential-table-of-contents-css' => '8aaacd1b', 'differential-table-of-contents-css' => '8aaacd1b',
'diffusion-commit-view-css' => 'c8ce2d88', 'diffusion-commit-view-css' => 'c8ce2d88',
'diffusion-icons-css' => 'c8ce2d88', 'diffusion-icons-css' => 'c8ce2d88',
'global-drag-and-drop-css' => '5515b5b4', 'global-drag-and-drop-css' => '2f159460',
'inline-comment-summary-css' => '8aaacd1b', 'inline-comment-summary-css' => '8aaacd1b',
'javelin-aphlict' => '95ceba95', 'javelin-aphlict' => '95ceba95',
'javelin-behavior' => 'fe22443b', 'javelin-behavior' => 'fe22443b',
@ -4022,48 +4022,48 @@ celerity_register_resource_map(array(
'javelin-util' => 'fe22443b', 'javelin-util' => 'fe22443b',
'javelin-vector' => 'fe22443b', 'javelin-vector' => 'fe22443b',
'javelin-workflow' => 'fe22443b', 'javelin-workflow' => 'fe22443b',
'lightbox-attachment-css' => '5515b5b4', 'lightbox-attachment-css' => '2f159460',
'maniphest-task-summary-css' => '6b1fccc6', 'maniphest-task-summary-css' => '6b1fccc6',
'maniphest-transaction-detail-css' => '6b1fccc6', 'maniphest-transaction-detail-css' => '6b1fccc6',
'phabricator-busy' => '95ceba95', 'phabricator-busy' => '95ceba95',
'phabricator-content-source-view-css' => '8aaacd1b', 'phabricator-content-source-view-css' => '8aaacd1b',
'phabricator-core-buttons-css' => '5515b5b4', 'phabricator-core-buttons-css' => '2f159460',
'phabricator-core-css' => '5515b5b4', 'phabricator-core-css' => '2f159460',
'phabricator-crumbs-view-css' => '5515b5b4', 'phabricator-crumbs-view-css' => '2f159460',
'phabricator-directory-css' => '5515b5b4', 'phabricator-directory-css' => '2f159460',
'phabricator-drag-and-drop-file-upload' => '322728f3', 'phabricator-drag-and-drop-file-upload' => '322728f3',
'phabricator-dropdown-menu' => '95ceba95', 'phabricator-dropdown-menu' => '95ceba95',
'phabricator-file-upload' => '95ceba95', 'phabricator-file-upload' => '95ceba95',
'phabricator-filetree-view-css' => '5515b5b4', 'phabricator-filetree-view-css' => '2f159460',
'phabricator-flag-css' => '5515b5b4', 'phabricator-flag-css' => '2f159460',
'phabricator-form-view-css' => '5515b5b4', 'phabricator-form-view-css' => '2f159460',
'phabricator-header-view-css' => '5515b5b4', 'phabricator-header-view-css' => '2f159460',
'phabricator-jump-nav' => '5515b5b4', 'phabricator-jump-nav' => '2f159460',
'phabricator-keyboard-shortcut' => '95ceba95', 'phabricator-keyboard-shortcut' => '95ceba95',
'phabricator-keyboard-shortcut-manager' => '95ceba95', 'phabricator-keyboard-shortcut-manager' => '95ceba95',
'phabricator-main-menu-view' => '5515b5b4', 'phabricator-main-menu-view' => '2f159460',
'phabricator-menu-item' => '95ceba95', 'phabricator-menu-item' => '95ceba95',
'phabricator-nav-view-css' => '5515b5b4', 'phabricator-nav-view-css' => '2f159460',
'phabricator-notification' => '95ceba95', 'phabricator-notification' => '95ceba95',
'phabricator-notification-css' => '5515b5b4', 'phabricator-notification-css' => '2f159460',
'phabricator-notification-menu-css' => '5515b5b4', 'phabricator-notification-menu-css' => '2f159460',
'phabricator-object-item-list-view-css' => '5515b5b4', 'phabricator-object-item-list-view-css' => '2f159460',
'phabricator-object-selector-css' => '8aaacd1b', 'phabricator-object-selector-css' => '8aaacd1b',
'phabricator-paste-file-upload' => '95ceba95', 'phabricator-paste-file-upload' => '95ceba95',
'phabricator-prefab' => '95ceba95', 'phabricator-prefab' => '95ceba95',
'phabricator-project-tag-css' => '6b1fccc6', 'phabricator-project-tag-css' => '6b1fccc6',
'phabricator-remarkup-css' => '5515b5b4', 'phabricator-remarkup-css' => '2f159460',
'phabricator-shaped-request' => '322728f3', 'phabricator-shaped-request' => '322728f3',
'phabricator-side-menu-view-css' => '5515b5b4', 'phabricator-side-menu-view-css' => '2f159460',
'phabricator-standard-page-view' => '5515b5b4', 'phabricator-standard-page-view' => '2f159460',
'phabricator-textareautils' => '95ceba95', 'phabricator-textareautils' => '95ceba95',
'phabricator-tooltip' => '95ceba95', 'phabricator-tooltip' => '95ceba95',
'phabricator-transaction-view-css' => '5515b5b4', 'phabricator-transaction-view-css' => '2f159460',
'phabricator-zindex-css' => '5515b5b4', 'phabricator-zindex-css' => '2f159460',
'sprite-apps-large-css' => '5515b5b4', 'sprite-apps-large-css' => '2f159460',
'sprite-gradient-css' => '5515b5b4', 'sprite-gradient-css' => '2f159460',
'sprite-icon-css' => '5515b5b4', 'sprite-icon-css' => '2f159460',
'sprite-menu-css' => '5515b5b4', 'sprite-menu-css' => '2f159460',
'syntax-highlighting-css' => '5515b5b4', 'syntax-highlighting-css' => '2f159460',
), ),
)); ));

View file

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

View file

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

View file

@ -92,7 +92,8 @@ final class PonderFeedController extends PonderController {
$view->setNoDataString(pht('No matching questions.')); $view->setNoDataString(pht('No matching questions.'));
foreach ($questions as $question) { foreach ($questions as $question) {
$item = new PhabricatorObjectItemView(); $item = new PhabricatorObjectItemView();
$item->setHeader('Q'.$question->getID().' '.$question->getTitle()); $item->setObjectName('Q'.$question->getID());
$item->setHeader($question->getTitle());
$item->setHref('/Q'.$question->getID()); $item->setHref('/Q'.$question->getID());
$item->setObject($question); $item->setObject($question);

View file

@ -347,10 +347,10 @@
.phabricator-object-list-cards .phabricator-object-item-name { .phabricator-object-list-cards .phabricator-object-item-name {
font-size: 13px; font-size: 13px;
white-space: nowrap;
} }
.phabricator-object-list-cards .phabricator-object-item-link { .phabricator-object-list-cards .phabricator-object-item-link {
white-space: nowrap;
padding: 6px 0; padding: 6px 0;
} }