1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 05:42:40 +01:00

Add toolip to Mock History in Pholio

Summary: Fixes T8985, Adds a tooltip with the filename

Test Plan: Update a few Pholio mocks, see names when hovering

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T8985

Differential Revision: https://secure.phabricator.com/D13746
This commit is contained in:
Chad Little 2015-07-28 10:41:42 -07:00
parent bbc1074ced
commit 3d4df1fe8f

View file

@ -116,6 +116,7 @@ final class PholioMockThumbGridView extends AphrontView {
$preview_key = PhabricatorFileThumbnailTransform::TRANSFORM_THUMBGRID; $preview_key = PhabricatorFileThumbnailTransform::TRANSFORM_THUMBGRID;
$xform = PhabricatorFileTransform::getTransformByKey($preview_key); $xform = PhabricatorFileTransform::getTransformByKey($preview_key);
Javelin::initBehavior('phabricator-tooltips');
$attributes = array( $attributes = array(
'class' => 'pholio-mock-thumb-grid-image', 'class' => 'pholio-mock-thumb-grid-image',
@ -161,11 +162,13 @@ final class PholioMockThumbGridView extends AphrontView {
return javelin_tag( return javelin_tag(
'a', 'a',
array( array(
'sigil' => 'mock-thumbnail', 'sigil' => 'mock-thumbnail has-tooltip',
'class' => implode(' ', $classes), 'class' => implode(' ', $classes),
'href' => '#', 'href' => '#',
'meta' => array( 'meta' => array(
'imageID' => $image->getID(), 'imageID' => $image->getID(),
'tip' => $image->getName(),
'align' => 'N',
), ),
), ),
array( array(