Pinboard view updates and Pholio List
Summary: Adds hover states to pinboard-items, adds date created and author on pholio home mock. Test Plan: Review Pholio and Macro home pages Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2645 Differential Revision: https://secure.phabricator.com/D5200
This commit is contained in:
@@ -2869,7 +2869,7 @@ celerity_register_resource_map(array(
|
||||
),
|
||||
'phabricator-pinboard-view-css' =>
|
||||
array(
|
||||
'uri' => '/res/549998d0/rsrc/css/layout/phabricator-pinboard-view.css',
|
||||
'uri' => '/res/e0f29265/rsrc/css/layout/phabricator-pinboard-view.css',
|
||||
'type' => 'css',
|
||||
'requires' =>
|
||||
array(
|
||||
|
||||
@@ -39,14 +39,33 @@ final class PholioMockListController extends PholioController {
|
||||
|
||||
$mocks = $query->executeWithCursorPager($pager);
|
||||
|
||||
$author_phids = array();
|
||||
foreach ($mocks as $mock) {
|
||||
$author_phids[] = $mock->getAuthorPHID();
|
||||
}
|
||||
$this->loadHandles($author_phids);
|
||||
|
||||
|
||||
$board = new PhabricatorPinboardView();
|
||||
foreach ($mocks as $mock) {
|
||||
$board->addItem(
|
||||
id(new PhabricatorPinboardItemView())
|
||||
->setHeader('M'.$mock->getID().' '.$mock->getName())
|
||||
->setURI('/M'.$mock->getID())
|
||||
->setImageURI($mock->getCoverFile()->getThumb220x165URI())
|
||||
->setImageSize(220, 165));
|
||||
$item = new PhabricatorPinboardItemView();
|
||||
$item->setHeader('M'.$mock->getID().' '.$mock->getName())
|
||||
->setURI('/M'.$mock->getID())
|
||||
->setImageURI($mock->getCoverFile()->getThumb220x165URI())
|
||||
->setImageSize(220, 165);
|
||||
|
||||
if ($mock->getAuthorPHID()) {
|
||||
$author_handle = $this->getHandle($mock->getAuthorPHID());
|
||||
$item->appendChild(
|
||||
pht('Created by %s', $author_handle->renderLink()));
|
||||
}
|
||||
$datetime = phabricator_date($mock->getDateCreated(), $user);
|
||||
$item->appendChild(
|
||||
phutil_tag(
|
||||
'div',
|
||||
array(),
|
||||
pht('Created on %s', $datetime)));
|
||||
$board->addItem($item);
|
||||
}
|
||||
|
||||
$content = array(
|
||||
|
||||
Reference in New Issue
Block a user