mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +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;
|
||||
$xform = PhabricatorFileTransform::getTransformByKey($preview_key);
|
||||
Javelin::initBehavior('phabricator-tooltips');
|
||||
|
||||
$attributes = array(
|
||||
'class' => 'pholio-mock-thumb-grid-image',
|
||||
|
@ -161,11 +162,13 @@ final class PholioMockThumbGridView extends AphrontView {
|
|||
return javelin_tag(
|
||||
'a',
|
||||
array(
|
||||
'sigil' => 'mock-thumbnail',
|
||||
'sigil' => 'mock-thumbnail has-tooltip',
|
||||
'class' => implode(' ', $classes),
|
||||
'href' => '#',
|
||||
'meta' => array(
|
||||
'imageID' => $image->getID(),
|
||||
'tip' => $image->getName(),
|
||||
'align' => 'N',
|
||||
),
|
||||
),
|
||||
array(
|
||||
|
|
Loading…
Reference in a new issue