From 3d4df1fe8f7c3e49253388a3ed29b562f35fda07 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Tue, 28 Jul 2015 10:41:42 -0700 Subject: [PATCH] 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 --- src/applications/pholio/view/PholioMockThumbGridView.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/applications/pholio/view/PholioMockThumbGridView.php b/src/applications/pholio/view/PholioMockThumbGridView.php index 8e9d3007c5..d7d174d928 100644 --- a/src/applications/pholio/view/PholioMockThumbGridView.php +++ b/src/applications/pholio/view/PholioMockThumbGridView.php @@ -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(