1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 12:00:55 +01:00

Move icon inside link in ActionLink

Summary: Moves the icon into the link

Test Plan: Tested a form (Phrequent), disabled, and regular action link

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5331

Differential Revision: https://secure.phabricator.com/D9503
This commit is contained in:
Chad Little 2014-06-12 11:27:30 -07:00
parent 71d9a6be07
commit 5dca350e0e

View file

@ -140,7 +140,7 @@ final class PhabricatorActionView extends AphrontView {
array( array(
'class' => 'phabricator-action-view-item', 'class' => 'phabricator-action-view-item',
), ),
$this->name); array($icon, $this->name));
$item = phabricator_form( $item = phabricator_form(
$this->user, $this->user,
@ -160,7 +160,7 @@ final class PhabricatorActionView extends AphrontView {
'sigil' => $sigils, 'sigil' => $sigils,
'meta' => $this->metadata, 'meta' => $this->metadata,
), ),
$this->name); array($icon, $this->name));
} }
} else { } else {
$item = phutil_tag( $item = phutil_tag(
@ -168,7 +168,7 @@ final class PhabricatorActionView extends AphrontView {
array( array(
'class' => 'phabricator-action-view-item', 'class' => 'phabricator-action-view-item',
), ),
$this->name); array($icon, $this->name));
} }
$classes = array(); $classes = array();
@ -186,7 +186,7 @@ final class PhabricatorActionView extends AphrontView {
array( array(
'class' => implode(' ', $classes), 'class' => implode(' ', $classes),
), ),
array($icon, $item)); $item);
} }
} }