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:
parent
bbc1074ced
commit
3d4df1fe8f
1 changed files with 4 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue