Improve design of PhabricatorObjectListView
Summary: See discussion in T2014. Aligns this element more closely with @chad's `frame_v3.psd` mock, and implements the icon/label element. Removes "details".
Test Plan: {F27062} {F27063} {F27064} {F27065}
Reviewers: btrahan, chad
Reviewed By: btrahan
CC: aran
Maniphest Tasks: T2014
Differential Revision: https://secure.phabricator.com/D4179
This commit is contained in:
@@ -78,39 +78,34 @@ final class PhabricatorMacroListController
|
||||
|
||||
$nav->appendChild($filter_view);
|
||||
|
||||
if ($macros) {
|
||||
$pinboard = new PhabricatorPinboardView();
|
||||
foreach ($macros as $macro) {
|
||||
$file_phid = $macro->getFilePHID();
|
||||
$file = idx($files_map, $file_phid);
|
||||
$pinboard = new PhabricatorPinboardView();
|
||||
$pinboard->setNoDataString($nodata);
|
||||
foreach ($macros as $macro) {
|
||||
$file_phid = $macro->getFilePHID();
|
||||
$file = idx($files_map, $file_phid);
|
||||
|
||||
$item = new PhabricatorPinboardItemView();
|
||||
if ($file) {
|
||||
$item->setImageURI($file->getThumb220x165URI());
|
||||
$item->setImageSize(220, 165);
|
||||
if ($file->getAuthorPHID()) {
|
||||
$author_handle = $this->getHandle($file->getAuthorPHID());
|
||||
$item->appendChild(
|
||||
'Created by '.$author_handle->renderLink());
|
||||
}
|
||||
$datetime = phabricator_date($file->getDateCreated(), $viewer);
|
||||
$item = new PhabricatorPinboardItemView();
|
||||
if ($file) {
|
||||
$item->setImageURI($file->getThumb220x165URI());
|
||||
$item->setImageSize(220, 165);
|
||||
if ($file->getAuthorPHID()) {
|
||||
$author_handle = $this->getHandle($file->getAuthorPHID());
|
||||
$item->appendChild(
|
||||
phutil_render_tag(
|
||||
'div',
|
||||
array(),
|
||||
'Created on '.$datetime));
|
||||
'Created by '.$author_handle->renderLink());
|
||||
}
|
||||
$item->setURI($this->getApplicationURI('/view/'.$macro->getID().'/'));
|
||||
$item->setHeader($macro->getName());
|
||||
|
||||
$pinboard->addItem($item);
|
||||
$datetime = phabricator_date($file->getDateCreated(), $viewer);
|
||||
$item->appendChild(
|
||||
phutil_render_tag(
|
||||
'div',
|
||||
array(),
|
||||
'Created on '.$datetime));
|
||||
}
|
||||
$nav->appendChild($pinboard);
|
||||
} else {
|
||||
$list = new PhabricatorObjectItemListView();
|
||||
$list->setNoDataString($nodata);
|
||||
$nav->appendChild($list);
|
||||
$item->setURI($this->getApplicationURI('/view/'.$macro->getID().'/'));
|
||||
$item->setHeader($macro->getName());
|
||||
|
||||
$pinboard->addItem($item);
|
||||
}
|
||||
$nav->appendChild($pinboard);
|
||||
|
||||
if (!strlen($filter)) {
|
||||
$nav->appendChild($pager);
|
||||
|
||||
Reference in New Issue
Block a user