mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 13:30:55 +01:00
Convert all calls to 'IconFont' to just 'Icon'
Summary: Mostly for consistency, we're not using other forms of icons and this makes all classes that use an icon call it in the same way. Test Plan: tested uiexamples, lots of other random pages. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15125
This commit is contained in:
parent
43b8581d72
commit
36158dbdc0
130 changed files with 212 additions and 306 deletions
|
@ -33,7 +33,7 @@ abstract class AlmanacController
|
||||||
Javelin::initBehavior('phabricator-tooltips', array());
|
Javelin::initBehavior('phabricator-tooltips', array());
|
||||||
|
|
||||||
$icon_builtin = id(new PHUIIconView())
|
$icon_builtin = id(new PHUIIconView())
|
||||||
->setIconFont('fa-circle')
|
->setIcon('fa-circle')
|
||||||
->addSigil('has-tooltip')
|
->addSigil('has-tooltip')
|
||||||
->setMetadata(
|
->setMetadata(
|
||||||
array(
|
array(
|
||||||
|
@ -42,7 +42,7 @@ abstract class AlmanacController
|
||||||
));
|
));
|
||||||
|
|
||||||
$icon_custom = id(new PHUIIconView())
|
$icon_custom = id(new PHUIIconView())
|
||||||
->setIconFont('fa-circle-o grey')
|
->setIcon('fa-circle-o grey')
|
||||||
->addSigil('has-tooltip')
|
->addSigil('has-tooltip')
|
||||||
->setMetadata(
|
->setMetadata(
|
||||||
array(
|
array(
|
||||||
|
@ -166,9 +166,7 @@ abstract class AlmanacController
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setDisabled(!$can_edit)
|
->setDisabled(!$can_edit)
|
||||||
->setText(pht('Add Property'))
|
->setText(pht('Add Property'))
|
||||||
->setIcon(
|
->setIcon('fa-plus');
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-plus'));
|
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader(pht('Properties'))
|
->setHeader(pht('Properties'))
|
||||||
|
|
|
@ -132,9 +132,7 @@ final class AlmanacDeviceViewController
|
||||||
->setWorkflow(!$can_edit)
|
->setWorkflow(!$can_edit)
|
||||||
->setDisabled(!$can_edit)
|
->setDisabled(!$can_edit)
|
||||||
->setText(pht('Add Interface'))
|
->setText(pht('Add Interface'))
|
||||||
->setIcon(
|
->setIcon('fa-plus'));
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-plus')));
|
|
||||||
|
|
||||||
return id(new PHUIObjectBoxView())
|
return id(new PHUIObjectBoxView())
|
||||||
->setHeader($header)
|
->setHeader($header)
|
||||||
|
@ -185,7 +183,7 @@ final class AlmanacDeviceViewController
|
||||||
->setText(pht('Generate Keypair'))
|
->setText(pht('Generate Keypair'))
|
||||||
->setIcon(
|
->setIcon(
|
||||||
id(new PHUIIconView())
|
id(new PHUIIconView())
|
||||||
->setIconFont('fa-lock')))
|
->setIcon('fa-lock')))
|
||||||
->addActionLink(
|
->addActionLink(
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
|
@ -195,7 +193,7 @@ final class AlmanacDeviceViewController
|
||||||
->setText(pht('Upload Public Key'))
|
->setText(pht('Upload Public Key'))
|
||||||
->setIcon(
|
->setIcon(
|
||||||
id(new PHUIIconView())
|
id(new PHUIIconView())
|
||||||
->setIconFont('fa-upload')));
|
->setIcon('fa-upload')));
|
||||||
|
|
||||||
return id(new PHUIObjectBoxView())
|
return id(new PHUIObjectBoxView())
|
||||||
->setHeader($header)
|
->setHeader($header)
|
||||||
|
@ -221,7 +219,7 @@ final class AlmanacDeviceViewController
|
||||||
$handles = $viewer->loadHandles(mpull($services, 'getPHID'));
|
$handles = $viewer->loadHandles(mpull($services, 'getPHID'));
|
||||||
|
|
||||||
$icon_lock = id(new PHUIIconView())
|
$icon_lock = id(new PHUIIconView())
|
||||||
->setIconFont('fa-lock');
|
->setIcon('fa-lock');
|
||||||
|
|
||||||
$rows = array();
|
$rows = array();
|
||||||
foreach ($services as $service) {
|
foreach ($services as $service) {
|
||||||
|
|
|
@ -134,9 +134,7 @@ final class AlmanacServiceViewController
|
||||||
->setWorkflow(!$can_edit)
|
->setWorkflow(!$can_edit)
|
||||||
->setDisabled(!$can_edit)
|
->setDisabled(!$can_edit)
|
||||||
->setText(pht('Add Binding'))
|
->setText(pht('Add Binding'))
|
||||||
->setIcon(
|
->setIcon('fa-plus'));
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-plus')));
|
|
||||||
|
|
||||||
return id(new PHUIObjectBoxView())
|
return id(new PHUIObjectBoxView())
|
||||||
->setHeader($header)
|
->setHeader($header)
|
||||||
|
|
|
@ -147,13 +147,11 @@ final class PhabricatorAuthListController
|
||||||
->setSeverity($severity)
|
->setSeverity($severity)
|
||||||
->setErrors($issues);
|
->setErrors($issues);
|
||||||
|
|
||||||
$image = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-plus');
|
|
||||||
$button = id(new PHUIButtonView())
|
$button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setColor(PHUIButtonView::SIMPLE)
|
->setColor(PHUIButtonView::SIMPLE)
|
||||||
->setHref($this->getApplicationURI('config/new/'))
|
->setHref($this->getApplicationURI('config/new/'))
|
||||||
->setIcon($image)
|
->setIcon('fa-plus')
|
||||||
->setDisabled(!$can_manage)
|
->setDisabled(!$can_manage)
|
||||||
->setText(pht('Add Provider'));
|
->setText(pht('Add Provider'));
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ final class PhabricatorAuthInviteAction extends Phobject {
|
||||||
}
|
}
|
||||||
|
|
||||||
return id(new PHUIIconView())
|
return id(new PHUIIconView())
|
||||||
->setIconFont("{$icon} {$color}");
|
->setIcon("{$icon} {$color}");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function newActionListFromAddresses(
|
public static function newActionListFromAddresses(
|
||||||
|
|
|
@ -45,9 +45,9 @@ final class PhabricatorAuthSSHKeyTableView extends AphrontView {
|
||||||
}
|
}
|
||||||
|
|
||||||
$trusted_icon = id(new PHUIIconView())
|
$trusted_icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-star blue');
|
->setIcon('fa-star blue');
|
||||||
$untrusted_icon = id(new PHUIIconView())
|
$untrusted_icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-times grey');
|
->setIcon('fa-times grey');
|
||||||
|
|
||||||
$rows = array();
|
$rows = array();
|
||||||
foreach ($keys as $key) {
|
foreach ($keys as $key) {
|
||||||
|
|
|
@ -400,7 +400,7 @@ abstract class PhabricatorController extends AphrontController {
|
||||||
}
|
}
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont($icon_name);
|
->setIcon($icon_name);
|
||||||
|
|
||||||
require_celerity_resource('policy-css');
|
require_celerity_resource('policy-css');
|
||||||
|
|
||||||
|
|
|
@ -125,16 +125,14 @@ final class PhabricatorCalendarEventViewController
|
||||||
if ($is_invite_pending) {
|
if ($is_invite_pending) {
|
||||||
$decline_button = id(new PHUIButtonView())
|
$decline_button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon(id(new PHUIIconView())
|
->setIcon('fa-times grey')
|
||||||
->setIconFont('fa-times grey'))
|
|
||||||
->setHref($this->getApplicationURI("/event/decline/{$id}/"))
|
->setHref($this->getApplicationURI("/event/decline/{$id}/"))
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setText(pht('Decline'));
|
->setText(pht('Decline'));
|
||||||
|
|
||||||
$accept_button = id(new PHUIButtonView())
|
$accept_button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon(id(new PHUIIconView())
|
->setIcon('fa-check green')
|
||||||
->setIconFont('fa-check green'))
|
|
||||||
->setHref($this->getApplicationURI("/event/accept/{$id}/"))
|
->setHref($this->getApplicationURI("/event/accept/{$id}/"))
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setText(pht('Accept'));
|
->setText(pht('Accept'));
|
||||||
|
|
|
@ -213,7 +213,7 @@ final class PhabricatorChatLogChannelLogController
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref('#latest')
|
->setHref('#latest')
|
||||||
->setText(pht('Jump to Bottom'))
|
->setText(pht('Jump to Bottom'))
|
||||||
->setIconFont('fa-arrow-circle-down');
|
->setIcon('fa-arrow-circle-down');
|
||||||
|
|
||||||
$jump_target = phutil_tag(
|
$jump_target = phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
|
|
|
@ -140,7 +140,7 @@ final class PhabricatorConduitLogSearchEngine
|
||||||
break;
|
break;
|
||||||
case ConduitAPIMethod::METHOD_STATUS_UNSTABLE:
|
case ConduitAPIMethod::METHOD_STATUS_UNSTABLE:
|
||||||
$status = id(new PHUIIconView())
|
$status = id(new PHUIIconView())
|
||||||
->setIconFont('fa-exclamation-triangle yellow')
|
->setIcon('fa-exclamation-triangle yellow')
|
||||||
->addSigil('has-tooltip')
|
->addSigil('has-tooltip')
|
||||||
->setMetadata(
|
->setMetadata(
|
||||||
array(
|
array(
|
||||||
|
@ -149,7 +149,7 @@ final class PhabricatorConduitLogSearchEngine
|
||||||
break;
|
break;
|
||||||
case ConduitAPIMethod::METHOD_STATUS_DEPRECATED:
|
case ConduitAPIMethod::METHOD_STATUS_DEPRECATED:
|
||||||
$status = id(new PHUIIconView())
|
$status = id(new PHUIIconView())
|
||||||
->setIconFont('fa-exclamation-triangle red')
|
->setIcon('fa-exclamation-triangle red')
|
||||||
->addSigil('has-tooltip')
|
->addSigil('has-tooltip')
|
||||||
->setMetadata(
|
->setMetadata(
|
||||||
array(
|
array(
|
||||||
|
@ -158,7 +158,7 @@ final class PhabricatorConduitLogSearchEngine
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$status = id(new PHUIIconView())
|
$status = id(new PHUIIconView())
|
||||||
->setIconFont('fa-question-circle')
|
->setIcon('fa-question-circle')
|
||||||
->addSigil('has-tooltip')
|
->addSigil('has-tooltip')
|
||||||
->setMetadata(
|
->setMetadata(
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -87,23 +87,19 @@ final class PhabricatorConduitTokensSettingsPanel
|
||||||
'action',
|
'action',
|
||||||
));
|
));
|
||||||
|
|
||||||
$generate_icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-plus');
|
|
||||||
$generate_button = id(new PHUIButtonView())
|
$generate_button = id(new PHUIButtonView())
|
||||||
->setText(pht('Generate API Token'))
|
->setText(pht('Generate API Token'))
|
||||||
->setHref('/conduit/token/edit/?objectPHID='.$user->getPHID())
|
->setHref('/conduit/token/edit/?objectPHID='.$user->getPHID())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setIcon($generate_icon);
|
->setIcon('fa-plus');
|
||||||
|
|
||||||
$terminate_icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-exclamation-triangle');
|
|
||||||
$terminate_button = id(new PHUIButtonView())
|
$terminate_button = id(new PHUIButtonView())
|
||||||
->setText(pht('Terminate All Tokens'))
|
->setText(pht('Terminate All Tokens'))
|
||||||
->setHref('/conduit/token/terminate/?objectPHID='.$user->getPHID())
|
->setHref('/conduit/token/terminate/?objectPHID='.$user->getPHID())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setIcon($terminate_icon);
|
->setIcon('fa-exclamation-triangle');
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader(pht('Active API Tokens'))
|
->setHeader(pht('Active API Tokens'))
|
||||||
|
|
|
@ -39,15 +39,12 @@ final class PhabricatorConfigCacheController
|
||||||
|
|
||||||
$this->renderCommonProperties($properties, $cache);
|
$this->renderCommonProperties($properties, $cache);
|
||||||
|
|
||||||
$purge_icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-exclamation-triangle');
|
|
||||||
|
|
||||||
$purge_button = id(new PHUIButtonView())
|
$purge_button = id(new PHUIButtonView())
|
||||||
->setText(pht('Purge Caches'))
|
->setText(pht('Purge Caches'))
|
||||||
->setHref('/config/cache/purge/')
|
->setHref('/config/cache/purge/')
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setIcon($purge_icon);
|
->setIcon('fa-exclamation-triangle');
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader(pht('Opcode Cache'))
|
->setHeader(pht('Opcode Cache'))
|
||||||
|
@ -161,7 +158,7 @@ final class PhabricatorConfigCacheController
|
||||||
|
|
||||||
private function renderYes($info) {
|
private function renderYes($info) {
|
||||||
return array(
|
return array(
|
||||||
id(new PHUIIconView())->setIconFont('fa-check', 'green'),
|
id(new PHUIIconView())->setIcon('fa-check', 'green'),
|
||||||
' ',
|
' ',
|
||||||
$info,
|
$info,
|
||||||
);
|
);
|
||||||
|
@ -169,7 +166,7 @@ final class PhabricatorConfigCacheController
|
||||||
|
|
||||||
private function renderNo($info) {
|
private function renderNo($info) {
|
||||||
return array(
|
return array(
|
||||||
id(new PHUIIconView())->setIconFont('fa-times-circle', 'red'),
|
id(new PHUIIconView())->setIcon('fa-times-circle', 'red'),
|
||||||
' ',
|
' ',
|
||||||
$info,
|
$info,
|
||||||
);
|
);
|
||||||
|
@ -177,7 +174,7 @@ final class PhabricatorConfigCacheController
|
||||||
|
|
||||||
private function renderInfo($info) {
|
private function renderInfo($info) {
|
||||||
return array(
|
return array(
|
||||||
id(new PHUIIconView())->setIconFont('fa-info-circle', 'grey'),
|
id(new PHUIIconView())->setIcon('fa-info-circle', 'grey'),
|
||||||
' ',
|
' ',
|
||||||
$info,
|
$info,
|
||||||
);
|
);
|
||||||
|
|
|
@ -36,7 +36,7 @@ abstract class PhabricatorConfigDatabaseController
|
||||||
}
|
}
|
||||||
|
|
||||||
return id(new PHUIIconView())
|
return id(new PHUIIconView())
|
||||||
->setIconFont($icon);
|
->setIcon($icon);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function renderAttr($attr, $issue) {
|
protected function renderAttr($attr, $issue) {
|
||||||
|
@ -71,9 +71,7 @@ abstract class PhabricatorConfigDatabaseController
|
||||||
->addActionLink(
|
->addActionLink(
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon(
|
->setIcon('fa-book')
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-book'))
|
|
||||||
->setHref($doc_link)
|
->setHref($doc_link)
|
||||||
->setText(pht('Learn More')));
|
->setText(pht('Learn More')));
|
||||||
}
|
}
|
||||||
|
|
|
@ -374,7 +374,7 @@ final class PhabricatorConfigWelcomeController
|
||||||
$viewer = $request->getUser();
|
$viewer = $request->getUser();
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont($icon.' fa-2x');
|
->setIcon($icon.' fa-2x');
|
||||||
|
|
||||||
$content = PhabricatorMarkupEngine::renderOneObject(
|
$content = PhabricatorMarkupEngine::renderOneObject(
|
||||||
id(new PhabricatorMarkupOneOff())->setContent($content),
|
id(new PhabricatorMarkupOneOff())->setContent($content),
|
||||||
|
|
|
@ -25,7 +25,7 @@ final class PhabricatorConfigPHIDModule extends PhabricatorConfigModule {
|
||||||
|
|
||||||
$icon = $app->getFontIcon();
|
$icon = $app->getFontIcon();
|
||||||
if ($icon) {
|
if ($icon) {
|
||||||
$app_icon = id(new PHUIIconView())->setIconFont($icon);
|
$app_icon = id(new PHUIIconView())->setIcon($icon);
|
||||||
} else {
|
} else {
|
||||||
$app_icon = null;
|
$app_icon = null;
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ final class PhabricatorConfigPHIDModule extends PhabricatorConfigModule {
|
||||||
|
|
||||||
$icon = $type->getTypeIcon();
|
$icon = $type->getTypeIcon();
|
||||||
if ($icon) {
|
if ($icon) {
|
||||||
$type_icon = id(new PHUIIconView())->setIconFont($icon);
|
$type_icon = id(new PHUIIconView())->setIcon($icon);
|
||||||
} else {
|
} else {
|
||||||
$type_icon = null;
|
$type_icon = null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ final class ConpherenceWidgetController extends ConpherenceController {
|
||||||
|
|
||||||
$widgets = array();
|
$widgets = array();
|
||||||
$new_icon = id(new PHUIIconView())
|
$new_icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-plus')
|
->setIcon('fa-plus')
|
||||||
->setHref($this->getWidgetURI())
|
->setHref($this->getWidgetURI())
|
||||||
->setMetadata(array('widget' => null))
|
->setMetadata(array('widget' => null))
|
||||||
->addSigil('conpherence-widget-adder');
|
->addSigil('conpherence-widget-adder');
|
||||||
|
|
|
@ -149,7 +149,7 @@ final class ConpherenceThreadSearchEngine
|
||||||
|
|
||||||
$icon_name = $conpherence->getPolicyIconName($policy_objects);
|
$icon_name = $conpherence->getPolicyIconName($policy_objects);
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont($icon_name);
|
->setIcon($icon_name);
|
||||||
$item = id(new PHUIObjectItemView())
|
$item = id(new PHUIObjectItemView())
|
||||||
->setObjectName($conpherence->getMonogram())
|
->setObjectName($conpherence->getMonogram())
|
||||||
->setHeader($title)
|
->setHeader($title)
|
||||||
|
|
|
@ -214,7 +214,7 @@ final class ConpherenceDurableColumnView extends AphrontTagView {
|
||||||
$icon = $conpherence->getPolicyIconName($policy_objects);
|
$icon = $conpherence->getPolicyIconName($policy_objects);
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->addClass('mmr')
|
->addClass('mmr')
|
||||||
->setIconFont($icon);
|
->setIcon($icon);
|
||||||
return $icon;
|
return $icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -277,9 +277,7 @@ final class ConpherenceDurableColumnView extends AphrontTagView {
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref('/conpherence/search/')
|
->setHref('/conpherence/search/')
|
||||||
->setColor(PHUIButtonView::GREY)
|
->setColor(PHUIButtonView::GREY)
|
||||||
->setIcon(
|
->setIcon('fa-search')));
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-search'))));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function buildHeader() {
|
private function buildHeader() {
|
||||||
|
|
|
@ -23,7 +23,7 @@ final class ConpherencePeopleWidgetView extends ConpherenceWidgetView {
|
||||||
$remove_html = '';
|
$remove_html = '';
|
||||||
if ($user_phid == $user->getPHID()) {
|
if ($user_phid == $user->getPHID()) {
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-times lightbluetext');
|
->setIcon('fa-times lightbluetext');
|
||||||
$remove_html = javelin_tag(
|
$remove_html = javelin_tag(
|
||||||
'a',
|
'a',
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -59,7 +59,7 @@ final class ConpherenceThreadListView extends AphrontView {
|
||||||
$data = $thread->getDisplayData($user);
|
$data = $thread->getDisplayData($user);
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->addClass('msr')
|
->addClass('msr')
|
||||||
->setIconFont($thread->getPolicyIconName($policy_objects));
|
->setIcon($thread->getPolicyIconName($policy_objects));
|
||||||
$title = phutil_tag(
|
$title = phutil_tag(
|
||||||
'span',
|
'span',
|
||||||
array(),
|
array(),
|
||||||
|
@ -109,7 +109,7 @@ final class ConpherenceThreadListView extends AphrontView {
|
||||||
'conpherence-room-list-header');
|
'conpherence-room-list-header');
|
||||||
$header->appendChild(
|
$header->appendChild(
|
||||||
id(new PHUIIconView())
|
id(new PHUIIconView())
|
||||||
->setIconFont('fa-search')
|
->setIcon('fa-search')
|
||||||
->setHref('/conpherence/search/')
|
->setHref('/conpherence/search/')
|
||||||
->setText(pht('Search')));
|
->setText(pht('Search')));
|
||||||
$menu->addMenuItem($header);
|
$menu->addMenuItem($header);
|
||||||
|
|
|
@ -165,7 +165,7 @@ final class PhabricatorDashboardPanelRenderingEngine extends Phobject {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-warning red msr');
|
->setIcon('fa-warning red msr');
|
||||||
$content = id(new PHUIBoxView())
|
$content = id(new PHUIBoxView())
|
||||||
->addClass('dashboard-box')
|
->addClass('dashboard-box')
|
||||||
->appendChild($icon)
|
->appendChild($icon)
|
||||||
|
@ -250,7 +250,7 @@ final class PhabricatorDashboardPanelRenderingEngine extends Phobject {
|
||||||
$edit_uri->setQueryParam('dashboardID', $dashboard_id);
|
$edit_uri->setQueryParam('dashboardID', $dashboard_id);
|
||||||
}
|
}
|
||||||
$action_edit = id(new PHUIIconView())
|
$action_edit = id(new PHUIIconView())
|
||||||
->setIconFont('fa-pencil')
|
->setIcon('fa-pencil')
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setHref((string)$edit_uri);
|
->setHref((string)$edit_uri);
|
||||||
$header->addActionIcon($action_edit);
|
$header->addActionIcon($action_edit);
|
||||||
|
@ -260,7 +260,7 @@ final class PhabricatorDashboardPanelRenderingEngine extends Phobject {
|
||||||
'/dashboard/removepanel/'.$dashboard_id.'/'))
|
'/dashboard/removepanel/'.$dashboard_id.'/'))
|
||||||
->setQueryParam('panelPHID', $panel->getPHID());
|
->setQueryParam('panelPHID', $panel->getPHID());
|
||||||
$action_remove = id(new PHUIIconView())
|
$action_remove = id(new PHUIIconView())
|
||||||
->setIconFont('fa-trash-o')
|
->setIcon('fa-trash-o')
|
||||||
->setHref((string)$uri)
|
->setHref((string)$uri)
|
||||||
->setWorkflow(true);
|
->setWorkflow(true);
|
||||||
$header->addActionIcon($action_remove);
|
$header->addActionIcon($action_remove);
|
||||||
|
|
|
@ -117,7 +117,7 @@ final class PhabricatorDashboardQueryPanelType
|
||||||
$key = $panel->getProperty('key');
|
$key = $panel->getProperty('key');
|
||||||
$href = $search_engine->getQueryResultsPageURI($key);
|
$href = $search_engine->getQueryResultsPageURI($key);
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-search')
|
->setIcon('fa-search')
|
||||||
->setHref($href);
|
->setHref($href);
|
||||||
$header->addActionIcon($icon);
|
$header->addActionIcon($icon);
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ final class DifferentialRevisionStatus extends Phobject {
|
||||||
ArcanistDifferentialRevisionStatus::getNameForRevisionStatus($status);
|
ArcanistDifferentialRevisionStatus::getNameForRevisionStatus($status);
|
||||||
|
|
||||||
$img = id(new PHUIIconView())
|
$img = id(new PHUIIconView())
|
||||||
->setIconFont(self::getRevisionStatusIcon($status));
|
->setIcon(self::getRevisionStatusIcon($status));
|
||||||
|
|
||||||
$tag = phutil_tag(
|
$tag = phutil_tag(
|
||||||
'span',
|
'span',
|
||||||
|
|
|
@ -206,7 +206,7 @@ final class DifferentialChangesetDetailView extends AphrontView {
|
||||||
$display_filename = $changeset->getDisplayFilename();
|
$display_filename = $changeset->getDisplayFilename();
|
||||||
$display_icon = $this->getFileIcon($display_filename);
|
$display_icon = $this->getFileIcon($display_filename);
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont($display_icon);
|
->setIcon($display_icon);
|
||||||
|
|
||||||
$renderer = DifferentialChangesetHTMLRenderer::getHTMLRendererByKey(
|
$renderer = DifferentialChangesetHTMLRenderer::getHTMLRendererByKey(
|
||||||
$this->getRenderer());
|
$this->getRenderer());
|
||||||
|
|
|
@ -91,12 +91,12 @@ final class DifferentialChangesetFileTreeSideNavBuilder extends Phobject {
|
||||||
$href = '#'.$data->getAnchorName();
|
$href = '#'.$data->getAnchorName();
|
||||||
$title = $name;
|
$title = $name;
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-file-text-o bluetext');
|
->setIcon('fa-file-text-o bluetext');
|
||||||
} else {
|
} else {
|
||||||
$name .= '/';
|
$name .= '/';
|
||||||
$title = $path->getFullPath().'/';
|
$title = $path->getFullPath().'/';
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-folder-open blue');
|
->setIcon('fa-folder-open blue');
|
||||||
}
|
}
|
||||||
|
|
||||||
$name_element = phutil_tag(
|
$name_element = phutil_tag(
|
||||||
|
|
|
@ -131,7 +131,7 @@ final class DifferentialRevisionListView extends AphrontView {
|
||||||
|
|
||||||
if (isset($icons['draft'])) {
|
if (isset($icons['draft'])) {
|
||||||
$draft = id(new PHUIIconView())
|
$draft = id(new PHUIIconView())
|
||||||
->setIconFont('fa-comment yellow')
|
->setIcon('fa-comment yellow')
|
||||||
->addSigil('has-tooltip')
|
->addSigil('has-tooltip')
|
||||||
->setMetadata(
|
->setMetadata(
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -832,13 +832,11 @@ final class DiffusionBrowseController extends DiffusionController {
|
||||||
$editor_link = $user->loadEditorLink($path, $line, $repository);
|
$editor_link = $user->loadEditorLink($path, $line, $repository);
|
||||||
$template = $user->loadEditorLink($path, '%l', $repository);
|
$template = $user->loadEditorLink($path, '%l', $repository);
|
||||||
|
|
||||||
$icon_edit = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-pencil');
|
|
||||||
$button = id(new PHUIButtonView())
|
$button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setText(pht('Open in Editor'))
|
->setText(pht('Open in Editor'))
|
||||||
->setHref($editor_link)
|
->setHref($editor_link)
|
||||||
->setIcon($icon_edit)
|
->setIcon('fa-pencil')
|
||||||
->setID('editor_link')
|
->setID('editor_link')
|
||||||
->setMetadata(array('link_template' => $template))
|
->setMetadata(array('link_template' => $template))
|
||||||
->setDisabled(!$editor_link);
|
->setDisabled(!$editor_link);
|
||||||
|
@ -860,13 +858,11 @@ final class DiffusionBrowseController extends DiffusionController {
|
||||||
$icon = 'fa-file-text';
|
$icon = 'fa-file-text';
|
||||||
}
|
}
|
||||||
|
|
||||||
$iconview = id(new PHUIIconView())
|
|
||||||
->setIconFont($icon);
|
|
||||||
$button = id(new PHUIButtonView())
|
$button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setText($text)
|
->setText($text)
|
||||||
->setHref($href)
|
->setHref($href)
|
||||||
->setIcon($iconview);
|
->setIcon($icon);
|
||||||
|
|
||||||
return $button;
|
return $button;
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,14 +221,12 @@ final class DiffusionCommitController extends DiffusionController {
|
||||||
$change_panel->setID('toc');
|
$change_panel->setID('toc');
|
||||||
|
|
||||||
if ($count > self::CHANGES_LIMIT && !$show_all_details) {
|
if ($count > self::CHANGES_LIMIT && !$show_all_details) {
|
||||||
$icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-files-o');
|
|
||||||
|
|
||||||
$button = id(new PHUIButtonView())
|
$button = id(new PHUIButtonView())
|
||||||
->setText(pht('Show All Changes'))
|
->setText(pht('Show All Changes'))
|
||||||
->setHref('?show_all=true')
|
->setHref('?show_all=true')
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon($icon);
|
->setIcon('fa-files-o');
|
||||||
|
|
||||||
$warning_view = id(new PHUIInfoView())
|
$warning_view = id(new PHUIInfoView())
|
||||||
->setSeverity(PHUIInfoView::SEVERITY_WARNING)
|
->setSeverity(PHUIInfoView::SEVERITY_WARNING)
|
||||||
|
|
|
@ -390,13 +390,10 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||||
$header->setSubHeader(pht('Showing %d branches.', $limit));
|
$header->setSubHeader(pht('Showing %d branches.', $limit));
|
||||||
}
|
}
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-code-fork');
|
|
||||||
|
|
||||||
$button = new PHUIButtonView();
|
$button = new PHUIButtonView();
|
||||||
$button->setText(pht('Show All Branches'));
|
$button->setText(pht('Show All Branches'));
|
||||||
$button->setTag('a');
|
$button->setTag('a');
|
||||||
$button->setIcon($icon);
|
$button->setIcon('fa-code-fork');
|
||||||
$button->setHref($drequest->generateURI(
|
$button->setHref($drequest->generateURI(
|
||||||
array(
|
array(
|
||||||
'action' => 'branches',
|
'action' => 'branches',
|
||||||
|
@ -462,13 +459,10 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||||
pht('Showing the %d most recent tags.', $tag_limit));
|
pht('Showing the %d most recent tags.', $tag_limit));
|
||||||
}
|
}
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-tag');
|
|
||||||
|
|
||||||
$button = new PHUIButtonView();
|
$button = new PHUIButtonView();
|
||||||
$button->setText(pht('Show All Tags'));
|
$button->setText(pht('Show All Tags'));
|
||||||
$button->setTag('a');
|
$button->setTag('a');
|
||||||
$button->setIcon($icon);
|
$button->setIcon('fa-tag');
|
||||||
$button->setHref($drequest->generateURI(
|
$button->setHref($drequest->generateURI(
|
||||||
array(
|
array(
|
||||||
'action' => 'tags',
|
'action' => 'tags',
|
||||||
|
@ -557,7 +551,7 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||||
$history_table->setIsHead(true);
|
$history_table->setIsHead(true);
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-list-alt');
|
->setIcon('fa-list-alt');
|
||||||
|
|
||||||
$button = id(new PHUIButtonView())
|
$button = id(new PHUIButtonView())
|
||||||
->setText(pht('View Full History'))
|
->setText(pht('View Full History'))
|
||||||
|
@ -620,7 +614,7 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||||
->setHeader(pht('Repository'));
|
->setHeader(pht('Repository'));
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-folder-open');
|
->setIcon('fa-folder-open');
|
||||||
|
|
||||||
$button = new PHUIButtonView();
|
$button = new PHUIButtonView();
|
||||||
$button->setText(pht('Browse Repository'));
|
$button->setText(pht('Browse Repository'));
|
||||||
|
|
|
@ -81,7 +81,7 @@ final class DiffusionBranchTableView extends DiffusionView {
|
||||||
}
|
}
|
||||||
|
|
||||||
$status_icon = id(new PHUIIconView())
|
$status_icon = id(new PHUIIconView())
|
||||||
->setIconFont($icon)
|
->setIcon($icon)
|
||||||
->addSigil('has-tooltip')
|
->addSigil('has-tooltip')
|
||||||
->setHref($doc_href)
|
->setHref($doc_href)
|
||||||
->setMetadata(
|
->setMetadata(
|
||||||
|
|
|
@ -55,7 +55,7 @@ abstract class DiffusionView extends AphrontView {
|
||||||
'align' => 'E',
|
'align' => 'E',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
id(new PHUIIconView())->setIconFont('fa-history bluegrey'));
|
id(new PHUIIconView())->setIcon('fa-history bluegrey'));
|
||||||
}
|
}
|
||||||
|
|
||||||
final public function linkBrowse($path, array $details = array()) {
|
final public function linkBrowse($path, array $details = array()) {
|
||||||
|
@ -95,7 +95,7 @@ abstract class DiffusionView extends AphrontView {
|
||||||
}
|
}
|
||||||
|
|
||||||
$icon = DifferentialChangeType::getIconForFileType($file_type);
|
$icon = DifferentialChangeType::getIconForFileType($file_type);
|
||||||
$icon_view = id(new PHUIIconView())->setIconFont("{$icon} blue");
|
$icon_view = id(new PHUIIconView())->setIcon($icon);
|
||||||
|
|
||||||
// If we're rendering a file or directory name, don't show the tooltip.
|
// If we're rendering a file or directory name, don't show the tooltip.
|
||||||
if ($display_name !== null) {
|
if ($display_name !== null) {
|
||||||
|
@ -183,7 +183,7 @@ abstract class DiffusionView extends AphrontView {
|
||||||
$name = HarbormasterBuildable::getBuildableStatusName($status);
|
$name = HarbormasterBuildable::getBuildableStatusName($status);
|
||||||
|
|
||||||
$icon_view = id(new PHUIIconView())
|
$icon_view = id(new PHUIIconView())
|
||||||
->setIconFont($icon.' '.$color);
|
->setIcon($icon.' '.$color);
|
||||||
|
|
||||||
$tooltip_view = javelin_tag(
|
$tooltip_view = javelin_tag(
|
||||||
'span',
|
'span',
|
||||||
|
|
|
@ -33,7 +33,7 @@ final class DivinerBookController extends DivinerController {
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setText(pht('Actions'))
|
->setText(pht('Actions'))
|
||||||
->setHref('#')
|
->setHref('#')
|
||||||
->setIconFont('fa-bars')
|
->setIcon('fa-bars')
|
||||||
->addClass('phui-mobile-menu')
|
->addClass('phui-mobile-menu')
|
||||||
->setDropdownMenu($actions);
|
->setDropdownMenu($actions);
|
||||||
|
|
||||||
|
|
|
@ -17,14 +17,11 @@ final class DivinerMainController extends DivinerController {
|
||||||
$crumbs->setBorder(true);
|
$crumbs->setBorder(true);
|
||||||
$crumbs->addTextCrumb(pht('Books'));
|
$crumbs->addTextCrumb(pht('Books'));
|
||||||
|
|
||||||
$search_icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-search');
|
|
||||||
|
|
||||||
$query_button = id(new PHUIButtonView())
|
$query_button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref($this->getApplicationURI('query/'))
|
->setHref($this->getApplicationURI('query/'))
|
||||||
->setText(pht('Advanced Search'))
|
->setText(pht('Advanced Search'))
|
||||||
->setIcon($search_icon);
|
->setIcon('fa-search');
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader(pht('Documentation Books'))
|
->setHeader(pht('Documentation Books'))
|
||||||
|
|
|
@ -168,7 +168,7 @@ final class DrydockBlueprintViewController extends DrydockBlueprintController {
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref($resources_uri)
|
->setHref($resources_uri)
|
||||||
->setIconFont('fa-search')
|
->setIcon('fa-search')
|
||||||
->setText(pht('View All')));
|
->setText(pht('View All')));
|
||||||
|
|
||||||
return id(new PHUIObjectBoxView())
|
return id(new PHUIObjectBoxView())
|
||||||
|
@ -233,7 +233,7 @@ final class DrydockBlueprintViewController extends DrydockBlueprintController {
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref($authorizations_uri)
|
->setHref($authorizations_uri)
|
||||||
->setIconFont('fa-search')
|
->setIcon('fa-search')
|
||||||
->setText(pht('View All')));
|
->setText(pht('View All')));
|
||||||
|
|
||||||
return id(new PHUIObjectBoxView())
|
return id(new PHUIObjectBoxView())
|
||||||
|
|
|
@ -39,9 +39,9 @@ abstract class DrydockController extends PhabricatorController {
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$consumed_yes = id(new PHUIIconView())
|
$consumed_yes = id(new PHUIIconView())
|
||||||
->setIconFont('fa-check green');
|
->setIcon('fa-check green');
|
||||||
$consumed_no = id(new PHUIIconView())
|
$consumed_no = id(new PHUIIconView())
|
||||||
->setIconFont('fa-clock-o grey');
|
->setIcon('fa-clock-o grey');
|
||||||
|
|
||||||
$rows = array();
|
$rows = array();
|
||||||
foreach ($commands as $command) {
|
foreach ($commands as $command) {
|
||||||
|
@ -98,7 +98,7 @@ abstract class DrydockController extends PhabricatorController {
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref($all_uri)
|
->setHref($all_uri)
|
||||||
->setIconFont('fa-search')
|
->setIcon('fa-search')
|
||||||
->setText(pht('View All')));
|
->setText(pht('View All')));
|
||||||
|
|
||||||
return id(new PHUIObjectBoxView())
|
return id(new PHUIObjectBoxView())
|
||||||
|
|
|
@ -168,7 +168,7 @@ final class DrydockResourceViewController extends DrydockResourceController {
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref($leases_uri)
|
->setHref($leases_uri)
|
||||||
->setIconFont('fa-search')
|
->setIcon('fa-search')
|
||||||
->setText(pht('View All')));
|
->setText(pht('View All')));
|
||||||
|
|
||||||
$lease_list = id(new DrydockLeaseListView())
|
$lease_list = id(new DrydockLeaseListView())
|
||||||
|
|
|
@ -71,7 +71,7 @@ final class DrydockLogListView extends AphrontView {
|
||||||
$blueprint,
|
$blueprint,
|
||||||
$resource,
|
$resource,
|
||||||
$lease,
|
$lease,
|
||||||
id(new PHUIIconView())->setIconFont($icon),
|
id(new PHUIIconView())->setIcon($icon),
|
||||||
$type,
|
$type,
|
||||||
$data,
|
$data,
|
||||||
phabricator_datetime($log->getEpoch(), $viewer),
|
phabricator_datetime($log->getEpoch(), $viewer),
|
||||||
|
|
|
@ -110,7 +110,7 @@ final class PhabricatorFileComposeController
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
id(new PHUIIconView())
|
id(new PHUIIconView())
|
||||||
->setIconFont($icon)
|
->setIcon($icon)
|
||||||
->addClass('compose-icon-bg'));
|
->addClass('compose-icon-bg'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ final class PhabricatorFileComposeController
|
||||||
$preview = id(new PHUIIconView())
|
$preview = id(new PHUIIconView())
|
||||||
->setID($preview_id)
|
->setID($preview_id)
|
||||||
->addClass('compose-background-'.$value_color)
|
->addClass('compose-background-'.$value_color)
|
||||||
->setIconFont($value_icon)
|
->setIcon($value_icon)
|
||||||
->addClass('compose-icon-bg');
|
->addClass('compose-icon-bg');
|
||||||
|
|
||||||
$color_input = javelin_tag(
|
$color_input = javelin_tag(
|
||||||
|
|
|
@ -35,7 +35,7 @@ final class PhabricatorFileIconSetSelectController
|
||||||
$label = $icon->getLabel();
|
$label = $icon->getLabel();
|
||||||
|
|
||||||
$view = id(new PHUIIconView())
|
$view = id(new PHUIIconView())
|
||||||
->setIconFont($icon->getIcon());
|
->setIcon($icon->getIcon());
|
||||||
|
|
||||||
$classes = array();
|
$classes = array();
|
||||||
$classes[] = 'icon-button';
|
$classes[] = 'icon-button';
|
||||||
|
|
|
@ -49,7 +49,7 @@ abstract class PhabricatorIconSet
|
||||||
'span',
|
'span',
|
||||||
array(),
|
array(),
|
||||||
array(
|
array(
|
||||||
id(new PHUIIconView())->setIconFont($icon->getIcon()),
|
id(new PHUIIconView())->setIcon($icon->getIcon()),
|
||||||
' ',
|
' ',
|
||||||
$icon->getLabel(),
|
$icon->getLabel(),
|
||||||
));
|
));
|
||||||
|
|
|
@ -311,7 +311,7 @@ final class HarbormasterBuildableViewController
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref($lint_href)
|
->setHref($lint_href)
|
||||||
->setIconFont('fa-list-ul')
|
->setIcon('fa-list-ul')
|
||||||
->setText('View All'));
|
->setText('View All'));
|
||||||
|
|
||||||
$lint = id(new PHUIObjectBoxView())
|
$lint = id(new PHUIObjectBoxView())
|
||||||
|
@ -335,7 +335,7 @@ final class HarbormasterBuildableViewController
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref($unit_href)
|
->setHref($unit_href)
|
||||||
->setIconFont('fa-list-ul')
|
->setIcon('fa-list-ul')
|
||||||
->setText('View All'));
|
->setText('View All'));
|
||||||
|
|
||||||
$unit = id(new PHUIObjectBoxView())
|
$unit = id(new PHUIObjectBoxView())
|
||||||
|
|
|
@ -202,9 +202,7 @@ final class HarbormasterPlanViewController extends HarbormasterPlanController {
|
||||||
->setText(pht('Add Build Step'))
|
->setText(pht('Add Build Step'))
|
||||||
->setHref($this->getApplicationURI("step/add/{$plan_id}/"))
|
->setHref($this->getApplicationURI("step/add/{$plan_id}/"))
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon(
|
->setIcon('fa-plus')
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-plus'))
|
|
||||||
->setDisabled(!$can_edit)
|
->setDisabled(!$can_edit)
|
||||||
->setWorkflow(!$can_edit));
|
->setWorkflow(!$can_edit));
|
||||||
|
|
||||||
|
|
|
@ -830,7 +830,7 @@ abstract class HeraldAdapter extends Phobject {
|
||||||
require_celerity_resource('herald-css');
|
require_celerity_resource('herald-css');
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-chevron-circle-right lightgreytext')
|
->setIcon('fa-chevron-circle-right lightgreytext')
|
||||||
->addClass('herald-list-icon');
|
->addClass('herald-list-icon');
|
||||||
|
|
||||||
if ($rule->getMustMatchAll()) {
|
if ($rule->getMustMatchAll()) {
|
||||||
|
|
|
@ -318,7 +318,7 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController {
|
||||||
),
|
),
|
||||||
$title);
|
$title);
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-search')
|
->setIcon('fa-search')
|
||||||
->setHref($href);
|
->setHref($href);
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader($title)
|
->setHeader($title)
|
||||||
|
|
|
@ -250,9 +250,7 @@ final class LegalpadDocumentSignController extends LegalpadController {
|
||||||
->addActionLink(
|
->addActionLink(
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon(
|
->setIcon('fa-pencil')
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-pencil'))
|
|
||||||
->setText(pht('Manage'))
|
->setText(pht('Manage'))
|
||||||
->setHref($manage_uri)
|
->setHref($manage_uri)
|
||||||
->setDisabled(!$can_edit)
|
->setDisabled(!$can_edit)
|
||||||
|
|
|
@ -186,7 +186,7 @@ final class LegalpadDocumentSearchEngine
|
||||||
if ($signature) {
|
if ($signature) {
|
||||||
$item->addAttribute(
|
$item->addAttribute(
|
||||||
array(
|
array(
|
||||||
id(new PHUIIconView())->setIconFont('fa-check-square-o', 'green'),
|
id(new PHUIIconView())->setIcon('fa-check-square-o', 'green'),
|
||||||
' ',
|
' ',
|
||||||
pht(
|
pht(
|
||||||
'Signed on %s',
|
'Signed on %s',
|
||||||
|
@ -195,7 +195,7 @@ final class LegalpadDocumentSearchEngine
|
||||||
} else {
|
} else {
|
||||||
$item->addAttribute(
|
$item->addAttribute(
|
||||||
array(
|
array(
|
||||||
id(new PHUIIconView())->setIconFont('fa-square-o', 'grey'),
|
id(new PHUIIconView())->setIcon('fa-square-o', 'grey'),
|
||||||
' ',
|
' ',
|
||||||
pht('Not Signed'),
|
pht('Not Signed'),
|
||||||
));
|
));
|
||||||
|
|
|
@ -183,7 +183,7 @@ final class LegalpadDocumentSignatureSearchEngine
|
||||||
pht('Exemption'));
|
pht('Exemption'));
|
||||||
|
|
||||||
id(new PHUIIconView())
|
id(new PHUIIconView())
|
||||||
->setIconFont('fa-envelope', 'red')
|
->setIcon('fa-envelope', 'red')
|
||||||
->addSigil('has-tooltip')
|
->addSigil('has-tooltip')
|
||||||
->setMetadata(array('tip' => pht('Unverified Email')));
|
->setMetadata(array('tip' => pht('Unverified Email')));
|
||||||
|
|
||||||
|
@ -276,7 +276,7 @@ final class LegalpadDocumentSignatureSearchEngine
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref($this->getApplicationURI('addsignature/'.$document_id.'/'))
|
->setHref($this->getApplicationURI('addsignature/'.$document_id.'/'))
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setIcon(id(new PHUIIconView())->setIconFont('fa-pencil'));
|
->setIcon('fa-pencil');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->document) {
|
if (!$this->document) {
|
||||||
|
@ -300,7 +300,7 @@ final class LegalpadDocumentSignatureSearchEngine
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
id(new PHUIIconView())
|
id(new PHUIIconView())
|
||||||
->setIconFont($icon, $color)
|
->setIcon($icon, $color)
|
||||||
->addSigil('has-tooltip')
|
->addSigil('has-tooltip')
|
||||||
->setMetadata(array('tip' => $title)),
|
->setMetadata(array('tip' => $title)),
|
||||||
javelin_tag(
|
javelin_tag(
|
||||||
|
|
|
@ -80,7 +80,7 @@ final class PhabricatorIconRemarkupRule extends PhutilRemarkupRule {
|
||||||
}
|
}
|
||||||
|
|
||||||
$icon_view = id(new PHUIIconView())
|
$icon_view = id(new PHUIIconView())
|
||||||
->setIconFont('fa-'.$icon, implode(' ', $classes));
|
->setIcon('fa-'.$icon, implode(' ', $classes));
|
||||||
|
|
||||||
return $this->getEngine()->storeText($icon_view);
|
return $this->getEngine()->storeText($icon_view);
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,7 +94,7 @@ final class ManiphestTaskStatus extends ManiphestConstants {
|
||||||
$icon = self::getStatusIcon($status);
|
$icon = self::getStatusIcon($status);
|
||||||
|
|
||||||
$img = id(new PHUIIconView())
|
$img = id(new PHUIIconView())
|
||||||
->setIconFont($icon.' '.$icon_color);
|
->setIcon($icon.' '.$icon_color);
|
||||||
|
|
||||||
$tag = phutil_tag(
|
$tag = phutil_tag(
|
||||||
'span',
|
'span',
|
||||||
|
|
|
@ -29,9 +29,7 @@ final class PhabricatorMetaMTAApplicationEmailPanel
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setText(pht('Edit Application Emails'))
|
->setText(pht('Edit Application Emails'))
|
||||||
->setIcon(
|
->setIcon('fa-pencil')
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-pencil'))
|
|
||||||
->setHref($this->getPanelURI())
|
->setHref($this->getPanelURI())
|
||||||
->setDisabled(!$can_edit)
|
->setDisabled(!$can_edit)
|
||||||
->setWorkflow(!$can_edit));
|
->setWorkflow(!$can_edit));
|
||||||
|
@ -89,7 +87,7 @@ final class PhabricatorMetaMTAApplicationEmailPanel
|
||||||
->setSubheader($application->getAppEmailBlurb());
|
->setSubheader($application->getAppEmailBlurb());
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-plus');
|
->setIcon('fa-plus');
|
||||||
$button = new PHUIButtonView();
|
$button = new PHUIButtonView();
|
||||||
$button->setText(pht('Add New Address'));
|
$button->setText(pht('Add New Address'));
|
||||||
$button->setTag('a');
|
$button->setTag('a');
|
||||||
|
|
|
@ -63,7 +63,7 @@ final class PhabricatorNotificationStatusController
|
||||||
));
|
));
|
||||||
|
|
||||||
$test_icon = id(new PHUIIconView())
|
$test_icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-exclamation-triangle');
|
->setIcon('fa-exclamation-triangle');
|
||||||
|
|
||||||
$test_button = id(new PHUIButtonView())
|
$test_button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
|
|
|
@ -85,7 +85,7 @@ final class PhabricatorNotificationSearchEngine
|
||||||
$viewer = $this->requireViewer();
|
$viewer = $this->requireViewer();
|
||||||
|
|
||||||
$image = id(new PHUIIconView())
|
$image = id(new PHUIIconView())
|
||||||
->setIconFont('fa-eye-slash');
|
->setIcon('fa-eye-slash');
|
||||||
|
|
||||||
$button = id(new PHUIButtonView())
|
$button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
|
|
|
@ -28,7 +28,7 @@ final class PhabricatorPeopleProfileManageController
|
||||||
|
|
||||||
$profile_icon = PhabricatorPeopleIconSet::getIconIcon($profile->getIcon());
|
$profile_icon = PhabricatorPeopleIconSet::getIconIcon($profile->getIcon());
|
||||||
$profile_icon = id(new PHUIIconView())
|
$profile_icon = id(new PHUIIconView())
|
||||||
->setIconFont($profile_icon);
|
->setIcon($profile_icon);
|
||||||
$profile_title = $profile->getDisplayTitle();
|
$profile_title = $profile->getDisplayTitle();
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
|
|
|
@ -29,7 +29,7 @@ final class PhabricatorPeopleProfileViewController
|
||||||
|
|
||||||
$profile_icon = PhabricatorPeopleIconSet::getIconIcon($profile->getIcon());
|
$profile_icon = PhabricatorPeopleIconSet::getIconIcon($profile->getIcon());
|
||||||
$profile_icon = id(new PHUIIconView())
|
$profile_icon = id(new PHUIIconView())
|
||||||
->setIconFont($profile_icon);
|
->setIcon($profile_icon);
|
||||||
$profile_title = $profile->getDisplayTitle();
|
$profile_title = $profile->getDisplayTitle();
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
|
|
|
@ -60,7 +60,7 @@ final class PhameHomeController extends PhamePostController {
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setText(pht('Actions'))
|
->setText(pht('Actions'))
|
||||||
->setHref('#')
|
->setHref('#')
|
||||||
->setIconFont('fa-bars')
|
->setIcon('fa-bars')
|
||||||
->addClass('phui-mobile-menu')
|
->addClass('phui-mobile-menu')
|
||||||
->setDropdownMenu($actions);
|
->setDropdownMenu($actions);
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ final class PhameBlogViewController extends PhameLiveController {
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setText(pht('Actions'))
|
->setText(pht('Actions'))
|
||||||
->setHref('#')
|
->setHref('#')
|
||||||
->setIconFont('fa-bars')
|
->setIcon('fa-bars')
|
||||||
->addClass('phui-mobile-menu')
|
->addClass('phui-mobile-menu')
|
||||||
->setDropdownMenu($actions);
|
->setDropdownMenu($actions);
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ final class PhamePostViewController
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setText(pht('Actions'))
|
->setText(pht('Actions'))
|
||||||
->setHref('#')
|
->setHref('#')
|
||||||
->setIconFont('fa-bars')
|
->setIcon('fa-bars')
|
||||||
->addClass('phui-mobile-menu')
|
->addClass('phui-mobile-menu')
|
||||||
->setDropdownMenu($actions);
|
->setDropdownMenu($actions);
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ final class PhameBlogListView extends AphrontTagView {
|
||||||
$blog->getName());
|
$blog->getName());
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-plus-square')
|
->setIcon('fa-plus-square')
|
||||||
->addClass('phame-blog-list-icon');
|
->addClass('phame-blog-list-icon');
|
||||||
|
|
||||||
$add_new = phutil_tag(
|
$add_new = phutil_tag(
|
||||||
|
|
|
@ -53,7 +53,7 @@ final class PhameDraftListView extends AphrontTagView {
|
||||||
$post->getTitle());
|
$post->getTitle());
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-pencil-square-o')
|
->setIcon('fa-pencil-square-o')
|
||||||
->addClass('phame-blog-list-icon');
|
->addClass('phame-blog-list-icon');
|
||||||
|
|
||||||
$edit = phutil_tag(
|
$edit = phutil_tag(
|
||||||
|
|
|
@ -30,7 +30,7 @@ final class PhameNextPostView extends AphrontTagView {
|
||||||
require_celerity_resource('phame-css');
|
require_celerity_resource('phame-css');
|
||||||
|
|
||||||
$p_icon = id(new PHUIIconView())
|
$p_icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-angle-left');
|
->setIcon('fa-angle-left');
|
||||||
|
|
||||||
$previous_icon = phutil_tag(
|
$previous_icon = phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
|
@ -69,7 +69,7 @@ final class PhameNextPostView extends AphrontTagView {
|
||||||
}
|
}
|
||||||
|
|
||||||
$n_icon = id(new PHUIIconView())
|
$n_icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-angle-right');
|
->setIcon('fa-angle-right');
|
||||||
|
|
||||||
$next_icon = phutil_tag(
|
$next_icon = phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
|
|
|
@ -299,7 +299,7 @@ final class PhabricatorObjectHandle
|
||||||
$icon = null;
|
$icon = null;
|
||||||
if ($this->getPolicyFiltered()) {
|
if ($this->getPolicyFiltered()) {
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-lock lightgreytext');
|
->setIcon('fa-lock lightgreytext');
|
||||||
}
|
}
|
||||||
|
|
||||||
$attributes = $attributes + array(
|
$attributes = $attributes + array(
|
||||||
|
|
|
@ -126,12 +126,12 @@ final class PholioMockImagesView extends AphrontView {
|
||||||
|
|
||||||
$full_icon = array(
|
$full_icon = array(
|
||||||
javelin_tag('span', array('aural' => true), pht('View Raw File')),
|
javelin_tag('span', array('aural' => true), pht('View Raw File')),
|
||||||
id(new PHUIIconView())->setIconFont('fa-file-image-o'),
|
id(new PHUIIconView())->setIcon('fa-file-image-o'),
|
||||||
);
|
);
|
||||||
|
|
||||||
$download_icon = array(
|
$download_icon = array(
|
||||||
javelin_tag('span', array('aural' => true), pht('Download File')),
|
javelin_tag('span', array('aural' => true), pht('Download File')),
|
||||||
id(new PHUIIconView())->setIconFont('fa-download'),
|
id(new PHUIIconView())->setIcon('fa-download'),
|
||||||
);
|
);
|
||||||
|
|
||||||
$login_uri = id(new PhutilURI('/login/'))
|
$login_uri = id(new PhutilURI('/login/'))
|
||||||
|
|
|
@ -73,7 +73,7 @@ final class PholioTransactionView
|
||||||
|
|
||||||
if ($inlines) {
|
if ($inlines) {
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-comment bluegrey msr');
|
->setIcon('fa-comment bluegrey msr');
|
||||||
$header = phutil_tag(
|
$header = phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -48,9 +48,7 @@ final class PhortuneAccountListController extends PhortuneController {
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref($this->getApplicationURI('account/edit/'))
|
->setHref($this->getApplicationURI('account/edit/'))
|
||||||
->setIcon(
|
->setIcon('fa-plus')
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-plus'))
|
|
||||||
->setText(pht('Create Account')));
|
->setText(pht('Create Account')));
|
||||||
|
|
||||||
$payment_box = id(new PHUIObjectBoxView())
|
$payment_box = id(new PHUIObjectBoxView())
|
||||||
|
@ -80,9 +78,7 @@ final class PhortuneAccountListController extends PhortuneController {
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref($this->getApplicationURI('merchant/'))
|
->setHref($this->getApplicationURI('merchant/'))
|
||||||
->setIcon(
|
->setIcon('fa-list')
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-list'))
|
|
||||||
->setText(pht('View All Merchants')));
|
->setText(pht('View All Merchants')));
|
||||||
|
|
||||||
$merchant_box = id(new PHUIObjectBoxView())
|
$merchant_box = id(new PHUIObjectBoxView())
|
||||||
|
|
|
@ -254,9 +254,7 @@ final class PhortuneAccountViewController extends PhortuneController {
|
||||||
->addActionLink(
|
->addActionLink(
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon(
|
->setIcon('fa-list')
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-list'))
|
|
||||||
->setHref($orders_uri)
|
->setHref($orders_uri)
|
||||||
->setText(pht('View All Orders')));
|
->setText(pht('View All Orders')));
|
||||||
|
|
||||||
|
@ -298,9 +296,7 @@ final class PhortuneAccountViewController extends PhortuneController {
|
||||||
->addActionLink(
|
->addActionLink(
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon(
|
->setIcon('fa-list')
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-list'))
|
|
||||||
->setHref($charges_uri)
|
->setHref($charges_uri)
|
||||||
->setText(pht('View All Charges')));
|
->setText(pht('View All Charges')));
|
||||||
|
|
||||||
|
@ -336,7 +332,7 @@ final class PhortuneAccountViewController extends PhortuneController {
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon(
|
->setIcon(
|
||||||
id(new PHUIIconView())
|
id(new PHUIIconView())
|
||||||
->setIconFont('fa-list'))
|
->setIcon('fa-list'))
|
||||||
->setHref($subscriptions_uri)
|
->setHref($subscriptions_uri)
|
||||||
->setText(pht('View All Subscriptions')));
|
->setText(pht('View All Subscriptions')));
|
||||||
|
|
||||||
|
|
|
@ -132,8 +132,7 @@ final class PhortuneCartViewController
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref($done_uri)
|
->setHref($done_uri)
|
||||||
->setIcon(id(new PHUIIconView())
|
->setIcon('fa-check-square green')
|
||||||
->setIconFont('fa-check-square green'))
|
|
||||||
->setText($cart->getDoneActionName()));
|
->setText($cart->getDoneActionName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -279,7 +279,7 @@ final class PhortuneMerchantViewController
|
||||||
->setText(pht('Add Payment Provider'))
|
->setText(pht('Add Payment Provider'))
|
||||||
->setDisabled(!$can_edit)
|
->setDisabled(!$can_edit)
|
||||||
->setWorkflow(!$can_edit)
|
->setWorkflow(!$can_edit)
|
||||||
->setIcon(id(new PHUIIconView())->setIconFont('fa-plus'));
|
->setIcon('fa-plus');
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader(pht('Payment Providers'))
|
->setHeader(pht('Payment Providers'))
|
||||||
|
|
|
@ -193,9 +193,7 @@ final class PhortuneSubscriptionViewController extends PhortuneController {
|
||||||
->addActionLink(
|
->addActionLink(
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon(
|
->setIcon('fa-list')
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-list'))
|
|
||||||
->setHref($invoices_uri)
|
->setHref($invoices_uri)
|
||||||
->setText(pht('View All Invoices')));
|
->setText(pht('View All Invoices')));
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ final class PhortuneCreditCardForm extends Phobject {
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
id(new PHUIIconView())
|
id(new PHUIIconView())
|
||||||
->setIconFont('fa-lock grey'),
|
->setIcon('fa-lock grey'),
|
||||||
' ',
|
' ',
|
||||||
$assurance,
|
$assurance,
|
||||||
));
|
));
|
||||||
|
|
|
@ -207,7 +207,7 @@ final class PhrictionDocumentController
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setText(pht('Actions'))
|
->setText(pht('Actions'))
|
||||||
->setHref('#')
|
->setHref('#')
|
||||||
->setIconFont('fa-bars')
|
->setIcon('fa-bars')
|
||||||
->addClass('phui-mobile-menu')
|
->addClass('phui-mobile-menu')
|
||||||
->setDropdownMenu($actions);
|
->setDropdownMenu($actions);
|
||||||
|
|
||||||
|
|
|
@ -274,7 +274,7 @@ final class PhabricatorPolicy
|
||||||
$img = null;
|
$img = null;
|
||||||
if ($icon) {
|
if ($icon) {
|
||||||
$img = id(new PHUIIconView())
|
$img = id(new PHUIIconView())
|
||||||
->setIconFont($this->getIcon());
|
->setIcon($this->getIcon());
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->getHref()) {
|
if ($this->getHref()) {
|
||||||
|
|
|
@ -74,7 +74,7 @@ final class PonderAnswerView extends AphrontTagView {
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setText(pht('Actions'))
|
->setText(pht('Actions'))
|
||||||
->setHref('#')
|
->setHref('#')
|
||||||
->setIconFont('fa-bars')
|
->setIcon('fa-bars')
|
||||||
->setDropdownMenu($actions);
|
->setDropdownMenu($actions);
|
||||||
|
|
||||||
$header_name = phutil_tag(
|
$header_name = phutil_tag(
|
||||||
|
@ -116,7 +116,7 @@ final class PonderAnswerView extends AphrontTagView {
|
||||||
$vote_class = 'ponder-footer-action-helpful';
|
$vote_class = 'ponder-footer-action-helpful';
|
||||||
}
|
}
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-thumbs-up msr');
|
->setIcon('fa-thumbs-up msr');
|
||||||
$helpful = phutil_tag(
|
$helpful = phutil_tag(
|
||||||
'span',
|
'span',
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -37,11 +37,11 @@ final class PonderFooterView extends AphrontTagView {
|
||||||
|
|
||||||
if ($this->count == 0) {
|
if ($this->count == 0) {
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-comments msr');
|
->setIcon('fa-comments msr');
|
||||||
$text = pht('Add a Comment');
|
$text = pht('Add a Comment');
|
||||||
} else {
|
} else {
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-comments msr');
|
->setIcon('fa-comments msr');
|
||||||
$text = pht('Show %d Comment(s)', new PhutilNumber($this->count));
|
$text = pht('Show %d Comment(s)', new PhutilNumber($this->count));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -405,7 +405,7 @@ final class PhabricatorProjectBoardViewController
|
||||||
$sort_key) {
|
$sort_key) {
|
||||||
|
|
||||||
$sort_icon = id(new PHUIIconView())
|
$sort_icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-sort-amount-asc bluegrey');
|
->setIcon('fa-sort-amount-asc bluegrey');
|
||||||
|
|
||||||
$named = array(
|
$named = array(
|
||||||
PhabricatorProjectColumn::ORDER_NATURAL => pht('Natural'),
|
PhabricatorProjectColumn::ORDER_NATURAL => pht('Natural'),
|
||||||
|
@ -675,7 +675,7 @@ final class PhabricatorProjectBoardViewController
|
||||||
}
|
}
|
||||||
|
|
||||||
$column_button = id(new PHUIIconView())
|
$column_button = id(new PHUIIconView())
|
||||||
->setIconFont('fa-caret-down')
|
->setIcon('fa-caret-down')
|
||||||
->setHref('#')
|
->setHref('#')
|
||||||
->addSigil('boards-dropdown-menu')
|
->addSigil('boards-dropdown-menu')
|
||||||
->setMetadata(
|
->setMetadata(
|
||||||
|
|
|
@ -50,7 +50,7 @@ final class PhabricatorProjectMilestonesController
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref("/project/edit/?milestone={$id}")
|
->setHref("/project/edit/?milestone={$id}")
|
||||||
->setIconFont('fa-plus')
|
->setIcon('fa-plus')
|
||||||
->setDisabled(!$can_create)
|
->setDisabled(!$can_create)
|
||||||
->setWorkflow(!$can_create)
|
->setWorkflow(!$can_create)
|
||||||
->setText($button_text));
|
->setText($button_text));
|
||||||
|
|
|
@ -166,7 +166,7 @@ final class PhabricatorProjectProfileController
|
||||||
}
|
}
|
||||||
|
|
||||||
$watch_icon = id(new PHUIIconView())
|
$watch_icon = id(new PHUIIconView())
|
||||||
->setIconFont($watch_icon);
|
->setIcon($watch_icon);
|
||||||
|
|
||||||
return id(new PHUIButtonView())
|
return id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
|
|
|
@ -50,7 +50,7 @@ final class PhabricatorProjectSubprojectsController
|
||||||
id(new PHUIButtonView())
|
id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setHref("/project/edit/?parent={$id}")
|
->setHref("/project/edit/?parent={$id}")
|
||||||
->setIconFont('fa-plus')
|
->setIcon('fa-plus')
|
||||||
->setDisabled(!$can_create)
|
->setDisabled(!$can_create)
|
||||||
->setWorkflow(!$can_create)
|
->setWorkflow(!$can_create)
|
||||||
->setText($button_text));
|
->setText($button_text));
|
||||||
|
|
|
@ -137,7 +137,7 @@ final class PhabricatorProjectSearchEngine
|
||||||
|
|
||||||
$options[$icon->getKey()] = array(
|
$options[$icon->getKey()] = array(
|
||||||
id(new PHUIIconView())
|
id(new PHUIIconView())
|
||||||
->setIconFont($icon->getIcon()),
|
->setIcon($icon->getIcon()),
|
||||||
' ',
|
' ',
|
||||||
$icon->getLabel(),
|
$icon->getLabel(),
|
||||||
);
|
);
|
||||||
|
|
|
@ -29,7 +29,7 @@ final class PhabricatorProjectListView extends AphrontView {
|
||||||
$color = $project->getColor();
|
$color = $project->getColor();
|
||||||
|
|
||||||
$icon_icon = id(new PHUIIconView())
|
$icon_icon = id(new PHUIIconView())
|
||||||
->setIconFont("{$icon} {$color}");
|
->setIcon("{$icon} {$color}");
|
||||||
|
|
||||||
$icon_name = $project->getDisplayIconName();
|
$icon_name = $project->getDisplayIconName();
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ abstract class PhabricatorProjectUserListView extends AphrontView {
|
||||||
->setImageURI($handle->getImageURI());
|
->setImageURI($handle->getImageURI());
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont($handle->getIcon().' lightbluetext');
|
->setIcon($handle->getIcon().' lightbluetext');
|
||||||
|
|
||||||
$subtitle = $handle->getSubtitle();
|
$subtitle = $handle->getSubtitle();
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ abstract class PhabricatorProjectUserListView extends AphrontView {
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon(
|
->setIcon(
|
||||||
id(new PHUIIconView())
|
id(new PHUIIconView())
|
||||||
->setIconFont('fa-list-ul'))
|
->setIcon('fa-list-ul'))
|
||||||
->setText(pht('View All'))
|
->setText(pht('View All'))
|
||||||
->setHref("/project/members/{$id}/"));
|
->setHref("/project/members/{$id}/"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -401,7 +401,7 @@ abstract class PhabricatorProfilePanelEngine extends Phobject {
|
||||||
$collapse_icon = id(new PHUIIconCircleView())
|
$collapse_icon = id(new PHUIIconCircleView())
|
||||||
->addClass('phui-list-item-icon')
|
->addClass('phui-list-item-icon')
|
||||||
->addClass('phui-profile-menu-visible-when-expanded')
|
->addClass('phui-profile-menu-visible-when-expanded')
|
||||||
->setIconFont('fa-chevron-left');
|
->setIcon('fa-chevron-left');
|
||||||
|
|
||||||
$expand_icon = id(new PHUIIconCircleView())
|
$expand_icon = id(new PHUIIconCircleView())
|
||||||
->addClass('phui-list-item-icon')
|
->addClass('phui-list-item-icon')
|
||||||
|
@ -412,7 +412,7 @@ abstract class PhabricatorProfilePanelEngine extends Phobject {
|
||||||
'tip' => pht('Expand'),
|
'tip' => pht('Expand'),
|
||||||
'align' => 'E',
|
'align' => 'E',
|
||||||
))
|
))
|
||||||
->setIconFont('fa-chevron-right');
|
->setIcon('fa-chevron-right');
|
||||||
|
|
||||||
$items[] = id(new PHUIListItemView())
|
$items[] = id(new PHUIListItemView())
|
||||||
->setName('Collapse')
|
->setName('Collapse')
|
||||||
|
@ -658,7 +658,7 @@ abstract class PhabricatorProfilePanelEngine extends Phobject {
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setText(pht('Configure Menu'))
|
->setText(pht('Configure Menu'))
|
||||||
->setHref('#')
|
->setHref('#')
|
||||||
->setIconFont('fa-gear')
|
->setIcon('fa-gear')
|
||||||
->setDropdownMenu($action_view);
|
->setDropdownMenu($action_view);
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
|
|
|
@ -68,7 +68,7 @@ final class PhabricatorMotivatorProfilePanel
|
||||||
case 'catfacts':
|
case 'catfacts':
|
||||||
default:
|
default:
|
||||||
$fact = array(
|
$fact = array(
|
||||||
id(new PHUIIconView())->setIconFont('fa-paw'),
|
id(new PHUIIconView())->setIcon('fa-paw'),
|
||||||
' ',
|
' ',
|
||||||
$fact,
|
$fact,
|
||||||
);
|
);
|
||||||
|
|
|
@ -126,14 +126,12 @@ final class PhabricatorDesktopNotificationsSettingsPanel
|
||||||
id(new AphrontFormSubmitControl())
|
id(new AphrontFormSubmitControl())
|
||||||
->setValue(pht('Save Preference')));
|
->setValue(pht('Save Preference')));
|
||||||
|
|
||||||
$test_icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-exclamation-triangle');
|
|
||||||
$test_button = id(new PHUIButtonView())
|
$test_button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setText(pht('Send Test Notification'))
|
->setText(pht('Send Test Notification'))
|
||||||
->setHref('/notification/test/')
|
->setHref('/notification/test/')
|
||||||
->setIcon($test_icon);
|
->setIcon('fa-exclamation-triangle');
|
||||||
|
|
||||||
$form_box = id(new PHUIObjectBoxView())
|
$form_box = id(new PHUIObjectBoxView())
|
||||||
->setHeader(
|
->setHeader(
|
||||||
|
|
|
@ -143,14 +143,11 @@ final class PhabricatorEmailAddressesSettingsPanel
|
||||||
$header->setHeader(pht('Email Addresses'));
|
$header->setHeader(pht('Email Addresses'));
|
||||||
|
|
||||||
if ($editable) {
|
if ($editable) {
|
||||||
$icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-plus');
|
|
||||||
|
|
||||||
$button = new PHUIButtonView();
|
$button = new PHUIButtonView();
|
||||||
$button->setText(pht('Add New Address'));
|
$button->setText(pht('Add New Address'));
|
||||||
$button->setTag('a');
|
$button->setTag('a');
|
||||||
$button->setHref($uri->alter('new', 'true'));
|
$button->setHref($uri->alter('new', 'true'));
|
||||||
$button->setIcon($icon);
|
$button->setIcon('fa-plus');
|
||||||
$button->addSigil('workflow');
|
$button->addSigil('workflow');
|
||||||
$header->addActionLink($button);
|
$header->addActionLink($button);
|
||||||
}
|
}
|
||||||
|
|
|
@ -182,9 +182,7 @@ final class PhabricatorHomePreferencesSettingsPanel
|
||||||
->setText(pht('Pin Application'))
|
->setText(pht('Pin Application'))
|
||||||
->setHref($this->getPanelURI().'?add=true')
|
->setHref($this->getPanelURI().'?add=true')
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setIcon(
|
->setIcon('fa-thumb-tack'));
|
||||||
id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-thumb-tack')));
|
|
||||||
|
|
||||||
$box = id(new PHUIObjectBoxView())
|
$box = id(new PHUIObjectBoxView())
|
||||||
->setHeader($header)
|
->setHeader($header)
|
||||||
|
|
|
@ -107,22 +107,18 @@ final class PhabricatorMultiFactorSettingsPanel
|
||||||
$help_uri = PhabricatorEnv::getDoclink(
|
$help_uri = PhabricatorEnv::getDoclink(
|
||||||
'User Guide: Multi-Factor Authentication');
|
'User Guide: Multi-Factor Authentication');
|
||||||
|
|
||||||
$help_icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-info-circle');
|
|
||||||
$help_button = id(new PHUIButtonView())
|
$help_button = id(new PHUIButtonView())
|
||||||
->setText(pht('Help'))
|
->setText(pht('Help'))
|
||||||
->setHref($help_uri)
|
->setHref($help_uri)
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon($help_icon);
|
->setIcon('fa-info-circle');
|
||||||
|
|
||||||
$create_icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-plus');
|
|
||||||
$create_button = id(new PHUIButtonView())
|
$create_button = id(new PHUIButtonView())
|
||||||
->setText(pht('Add Authentication Factor'))
|
->setText(pht('Add Authentication Factor'))
|
||||||
->setHref($this->getPanelURI('?new=true'))
|
->setHref($this->getPanelURI('?new=true'))
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setIcon($create_icon);
|
->setIcon('fa-plus');
|
||||||
|
|
||||||
$header->setHeader(pht('Authentication Factors'));
|
$header->setHeader(pht('Authentication Factors'));
|
||||||
$header->addActionLink($help_button);
|
$header->addActionLink($help_button);
|
||||||
|
|
|
@ -44,14 +44,12 @@ final class PhabricatorSSHKeysSettingsPanel extends PhabricatorSettingsPanel {
|
||||||
$panel = new PHUIObjectBoxView();
|
$panel = new PHUIObjectBoxView();
|
||||||
$header = new PHUIHeaderView();
|
$header = new PHUIHeaderView();
|
||||||
|
|
||||||
$upload_icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-upload');
|
|
||||||
$upload_button = id(new PHUIButtonView())
|
$upload_button = id(new PHUIButtonView())
|
||||||
->setText(pht('Upload Public Key'))
|
->setText(pht('Upload Public Key'))
|
||||||
->setHref('/auth/sshkey/upload/?objectPHID='.$user->getPHID())
|
->setHref('/auth/sshkey/upload/?objectPHID='.$user->getPHID())
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIcon($upload_icon);
|
->setIcon('fa-upload');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
PhabricatorSSHKeyGenerator::assertCanGenerateKeypair();
|
PhabricatorSSHKeyGenerator::assertCanGenerateKeypair();
|
||||||
|
@ -60,15 +58,13 @@ final class PhabricatorSSHKeysSettingsPanel extends PhabricatorSettingsPanel {
|
||||||
$can_generate = false;
|
$can_generate = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$generate_icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-lock');
|
|
||||||
$generate_button = id(new PHUIButtonView())
|
$generate_button = id(new PHUIButtonView())
|
||||||
->setText(pht('Generate Keypair'))
|
->setText(pht('Generate Keypair'))
|
||||||
->setHref('/auth/sshkey/generate/?objectPHID='.$user->getPHID())
|
->setHref('/auth/sshkey/generate/?objectPHID='.$user->getPHID())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setDisabled(!$can_generate)
|
->setDisabled(!$can_generate)
|
||||||
->setIcon($generate_icon);
|
->setIcon('fa-lock');
|
||||||
|
|
||||||
$header->setHeader(pht('SSH Public Keys'));
|
$header->setHeader(pht('SSH Public Keys'));
|
||||||
$header->addActionLink($generate_button);
|
$header->addActionLink($generate_button);
|
||||||
|
|
|
@ -112,15 +112,12 @@ final class PhabricatorSessionsSettingsPanel extends PhabricatorSettingsPanel {
|
||||||
'action',
|
'action',
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
$terminate_icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-exclamation-triangle');
|
|
||||||
$terminate_button = id(new PHUIButtonView())
|
$terminate_button = id(new PHUIButtonView())
|
||||||
->setText(pht('Terminate All Sessions'))
|
->setText(pht('Terminate All Sessions'))
|
||||||
->setHref('/auth/session/terminate/all/')
|
->setHref('/auth/session/terminate/all/')
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setIcon($terminate_icon);
|
->setIcon('fa-exclamation-triangle');
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader(pht('Active Login Sessions'))
|
->setHeader(pht('Active Login Sessions'))
|
||||||
|
@ -128,14 +125,12 @@ final class PhabricatorSessionsSettingsPanel extends PhabricatorSettingsPanel {
|
||||||
|
|
||||||
$hisec = ($viewer->getSession()->getHighSecurityUntil() - time());
|
$hisec = ($viewer->getSession()->getHighSecurityUntil() - time());
|
||||||
if ($hisec > 0) {
|
if ($hisec > 0) {
|
||||||
$hisec_icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-lock');
|
|
||||||
$hisec_button = id(new PHUIButtonView())
|
$hisec_button = id(new PHUIButtonView())
|
||||||
->setText(pht('Leave High Security'))
|
->setText(pht('Leave High Security'))
|
||||||
->setHref('/auth/session/downgrade/')
|
->setHref('/auth/session/downgrade/')
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setIcon($hisec_icon);
|
->setIcon('fa-lock');
|
||||||
$header->addActionLink($hisec_button);
|
$header->addActionLink($hisec_button);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,15 +75,12 @@ final class PhabricatorTokensSettingsPanel extends PhabricatorSettingsPanel {
|
||||||
'action',
|
'action',
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
$terminate_icon = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-exclamation-triangle');
|
|
||||||
$terminate_button = id(new PHUIButtonView())
|
$terminate_button = id(new PHUIButtonView())
|
||||||
->setText(pht('Revoke All'))
|
->setText(pht('Revoke All'))
|
||||||
->setHref('/auth/token/revoke/all/')
|
->setHref('/auth/token/revoke/all/')
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setIcon($terminate_icon);
|
->setIcon('fa-exclamation-triangle');
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader(pht('Temporary Tokens'))
|
->setHeader(pht('Temporary Tokens'))
|
||||||
|
|
|
@ -105,7 +105,7 @@ final class PhabricatorApplicationTransactionValueController
|
||||||
$icon = 'fa-minus-circle red';
|
$icon = 'fa-minus-circle red';
|
||||||
}
|
}
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont($icon)
|
->setIcon($icon)
|
||||||
->setText(
|
->setText(
|
||||||
ucfirst($rule['action']).' '.$rule_object->getRuleDescription());
|
ucfirst($rule['action']).' '.$rule_object->getRuleDescription());
|
||||||
|
|
||||||
|
|
|
@ -1090,7 +1090,7 @@ abstract class PhabricatorEditEngine
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setText(pht('Configure Form'))
|
->setText(pht('Configure Form'))
|
||||||
->setHref('#')
|
->setHref('#')
|
||||||
->setIconFont('fa-gear')
|
->setIcon('fa-gear')
|
||||||
->setDropdownMenu($action_view);
|
->setDropdownMenu($action_view);
|
||||||
|
|
||||||
return $action_button;
|
return $action_button;
|
||||||
|
|
|
@ -210,8 +210,8 @@ EOTEXT
|
||||||
$uri,
|
$uri,
|
||||||
$uri);
|
$uri);
|
||||||
|
|
||||||
$yes = id(new PHUIIconView())->setIconFont('fa-check-circle green');
|
$yes = id(new PHUIIconView())->setIcon('fa-check-circle green');
|
||||||
$no = id(new PHUIIconView())->setIconFont('fa-times grey');
|
$no = id(new PHUIIconView())->setIcon('fa-times grey');
|
||||||
|
|
||||||
$rows = array();
|
$rows = array();
|
||||||
foreach ($fields as $field) {
|
foreach ($fields as $field) {
|
||||||
|
|
|
@ -237,7 +237,7 @@ final class PhabricatorTypeaheadModularDatasourceController
|
||||||
|
|
||||||
$function_help = array(
|
$function_help = array(
|
||||||
id(new PHUIIconView())
|
id(new PHUIIconView())
|
||||||
->setIconFont('fa-book'),
|
->setIcon('fa-book'),
|
||||||
' ',
|
' ',
|
||||||
$reference_link,
|
$reference_link,
|
||||||
);
|
);
|
||||||
|
|
|
@ -61,12 +61,10 @@ final class PHUIBoxExample extends PhabricatorUIExample {
|
||||||
->addMargin(PHUI::MARGIN_LARGE_BOTTOM),
|
->addMargin(PHUI::MARGIN_LARGE_BOTTOM),
|
||||||
);
|
);
|
||||||
|
|
||||||
$image = id(new PHUIIconView())
|
|
||||||
->setIconFont('fa-heart');
|
|
||||||
$button = id(new PHUIButtonView())
|
$button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setColor(PHUIButtonView::SIMPLE)
|
->setColor(PHUIButtonView::SIMPLE)
|
||||||
->setIcon($image)
|
->setIcon('fa-heart')
|
||||||
->setText(pht('Such Wow'))
|
->setText(pht('Such Wow'))
|
||||||
->addClass(PHUI::MARGIN_SMALL_RIGHT);
|
->addClass(PHUI::MARGIN_SMALL_RIGHT);
|
||||||
|
|
||||||
|
|
|
@ -23,21 +23,17 @@ final class PHUIButtonBarExample extends PhabricatorUIExample {
|
||||||
);
|
);
|
||||||
$button_bar1 = new PHUIButtonBarView();
|
$button_bar1 = new PHUIButtonBarView();
|
||||||
foreach ($icons as $text => $icon) {
|
foreach ($icons as $text => $icon) {
|
||||||
$image = id(new PHUIIconView())
|
|
||||||
->setIconFont($icon);
|
|
||||||
$button = id(new PHUIButtonView())
|
$button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setColor(PHUIButtonView::GREY)
|
->setColor(PHUIButtonView::GREY)
|
||||||
->setTitle($text)
|
->setTitle($text)
|
||||||
->setIcon($image);
|
->setIcon($icon);
|
||||||
|
|
||||||
$button_bar1->addButton($button);
|
$button_bar1->addButton($button);
|
||||||
}
|
}
|
||||||
|
|
||||||
$button_bar2 = new PHUIButtonBarView();
|
$button_bar2 = new PHUIButtonBarView();
|
||||||
foreach ($icons as $text => $icon) {
|
foreach ($icons as $text => $icon) {
|
||||||
$image = id(new PHUIIconView())
|
|
||||||
->setIconFont($icon);
|
|
||||||
$button = id(new PHUIButtonView())
|
$button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setColor(PHUIButtonView::SIMPLE)
|
->setColor(PHUIButtonView::SIMPLE)
|
||||||
|
@ -49,14 +45,12 @@ final class PHUIButtonBarExample extends PhabricatorUIExample {
|
||||||
|
|
||||||
$button_bar3 = new PHUIButtonBarView();
|
$button_bar3 = new PHUIButtonBarView();
|
||||||
foreach ($icons as $text => $icon) {
|
foreach ($icons as $text => $icon) {
|
||||||
$image = id(new PHUIIconView())
|
|
||||||
->setIconFont($icon);
|
|
||||||
$button = id(new PHUIButtonView())
|
$button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setColor(PHUIButtonView::SIMPLE)
|
->setColor(PHUIButtonView::SIMPLE)
|
||||||
->setTitle($text)
|
->setTitle($text)
|
||||||
->setTooltip($text)
|
->setTooltip($text)
|
||||||
->setIcon($image);
|
->setIcon($icon);
|
||||||
|
|
||||||
$button_bar3->addButton($button);
|
$button_bar3->addButton($button);
|
||||||
}
|
}
|
||||||
|
@ -64,13 +58,11 @@ final class PHUIButtonBarExample extends PhabricatorUIExample {
|
||||||
$button_bar4 = new PHUIButtonBarView();
|
$button_bar4 = new PHUIButtonBarView();
|
||||||
$button_bar4->setBorderless(true);
|
$button_bar4->setBorderless(true);
|
||||||
foreach ($icons as $text => $icon) {
|
foreach ($icons as $text => $icon) {
|
||||||
$image = id(new PHUIIconView())
|
|
||||||
->setIconFont($icon);
|
|
||||||
$button = id(new PHUIButtonView())
|
$button = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setTitle($text)
|
->setTitle($text)
|
||||||
->setTooltip($text)
|
->setTooltip($text)
|
||||||
->setIcon($image);
|
->setIcon($icon);
|
||||||
|
|
||||||
$button_bar4->addButton($button);
|
$button_bar4->addButton($button);
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,12 +112,10 @@ final class PHUIButtonExample extends PhabricatorUIExample {
|
||||||
'Implode Earth' => 'fa-exclamation-triangle red',
|
'Implode Earth' => 'fa-exclamation-triangle red',
|
||||||
);
|
);
|
||||||
foreach ($icons as $text => $icon) {
|
foreach ($icons as $text => $icon) {
|
||||||
$image = id(new PHUIIconView())
|
|
||||||
->setIconFont($icon);
|
|
||||||
$column[] = id(new PHUIButtonView())
|
$column[] = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setColor(PHUIButtonView::GREY)
|
->setColor(PHUIButtonView::GREY)
|
||||||
->setIcon($image)
|
->setIcon($icon)
|
||||||
->setText($text)
|
->setText($text)
|
||||||
->addClass(PHUI::MARGIN_SMALL_RIGHT);
|
->addClass(PHUI::MARGIN_SMALL_RIGHT);
|
||||||
}
|
}
|
||||||
|
@ -140,12 +138,10 @@ final class PHUIButtonExample extends PhabricatorUIExample {
|
||||||
$column = array();
|
$column = array();
|
||||||
foreach ($colors as $color) {
|
foreach ($colors as $color) {
|
||||||
foreach ($icons as $text => $icon) {
|
foreach ($icons as $text => $icon) {
|
||||||
$image = id(new PHUIIconView())
|
|
||||||
->setIconFont($icon);
|
|
||||||
$column[] = id(new PHUIButtonView())
|
$column[] = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setColor($color)
|
->setColor($color)
|
||||||
->setIcon($image)
|
->setIcon($icon)
|
||||||
->setText($text)
|
->setText($text)
|
||||||
->addClass(PHUI::MARGIN_SMALL_RIGHT);
|
->addClass(PHUI::MARGIN_SMALL_RIGHT);
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,7 +70,7 @@ final class PHUIFeedStoryExample extends PhabricatorUIExample {
|
||||||
'<strong><a>harding (Tom Harding)</a></strong> awarded '.
|
'<strong><a>harding (Tom Harding)</a></strong> awarded '.
|
||||||
'<a>M10: Workboards</a> a token.');
|
'<a>M10: Workboards</a> a token.');
|
||||||
$action1 = id(new PHUIIconView())
|
$action1 = id(new PHUIIconView())
|
||||||
->setIconFont('fa-trophy bluegrey')
|
->setIcon('fa-trophy bluegrey')
|
||||||
->setHref('#');
|
->setHref('#');
|
||||||
$token =
|
$token =
|
||||||
id(new PHUIIconView())
|
id(new PHUIIconView())
|
||||||
|
@ -91,10 +91,10 @@ final class PHUIFeedStoryExample extends PhabricatorUIExample {
|
||||||
'<strong><a>wgharding (Warren Harding)</a></strong> '.
|
'<strong><a>wgharding (Warren Harding)</a></strong> '.
|
||||||
'asked a new question.');
|
'asked a new question.');
|
||||||
$action1 = id(new PHUIIconView())
|
$action1 = id(new PHUIIconView())
|
||||||
->setIconFont('fa-chevron-up bluegrey')
|
->setIcon('fa-chevron-up bluegrey')
|
||||||
->setHref('#');
|
->setHref('#');
|
||||||
$action2 = id(new PHUIIconView())
|
$action2 = id(new PHUIIconView())
|
||||||
->setIconFont('fa-chevron-down bluegrey')
|
->setIcon('fa-chevron-down bluegrey')
|
||||||
->setHref('#');
|
->setHref('#');
|
||||||
$story4 = id(new PHUIFeedStoryView())
|
$story4 = id(new PHUIFeedStoryView())
|
||||||
->setTitle($text)
|
->setTitle($text)
|
||||||
|
|
|
@ -33,7 +33,7 @@ final class PHUIIconExample extends PhabricatorUIExample {
|
||||||
foreach ($colors as $color) {
|
foreach ($colors as $color) {
|
||||||
$cicons[] = id(new PHUIIconView())
|
$cicons[] = id(new PHUIIconView())
|
||||||
->addClass('phui-example-icon-transform')
|
->addClass('phui-example-icon-transform')
|
||||||
->setIconFont('fa-tag '.$color)
|
->setIcon('fa-tag '.$color)
|
||||||
->setText(pht('fa-tag %s', $color));
|
->setText(pht('fa-tag %s', $color));
|
||||||
}
|
}
|
||||||
$ficons = array();
|
$ficons = array();
|
||||||
|
@ -41,7 +41,7 @@ final class PHUIIconExample extends PhabricatorUIExample {
|
||||||
foreach ($fas as $fa) {
|
foreach ($fas as $fa) {
|
||||||
$ficons[] = id(new PHUIIconView())
|
$ficons[] = id(new PHUIIconView())
|
||||||
->addClass('phui-example-icon-name')
|
->addClass('phui-example-icon-name')
|
||||||
->setIconFont($fa)
|
->setIcon($fa)
|
||||||
->setText($fa);
|
->setText($fa);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ final class PHUIIconExample extends PhabricatorUIExample {
|
||||||
foreach ($circles as $circle) {
|
foreach ($circles as $circle) {
|
||||||
$circleview[] =
|
$circleview[] =
|
||||||
id(new PHUIIconCircleView())
|
id(new PHUIIconCircleView())
|
||||||
->setIconFont($circle)
|
->setIcon($circle)
|
||||||
->setHref('#')
|
->setHref('#')
|
||||||
->addClass('mmr');
|
->addClass('mmr');
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ final class PHUIIconExample extends PhabricatorUIExample {
|
||||||
foreach ($circles as $circle) {
|
foreach ($circles as $circle) {
|
||||||
$circleview[] =
|
$circleview[] =
|
||||||
id(new PHUIIconCircleView())
|
id(new PHUIIconCircleView())
|
||||||
->setIconFont($circle)
|
->setIcon($circle)
|
||||||
->setSize(PHUIIconCircleView::MEDIUM)
|
->setSize(PHUIIconCircleView::MEDIUM)
|
||||||
->setHref('#')
|
->setHref('#')
|
||||||
->addClass('mmr');
|
->addClass('mmr');
|
||||||
|
|
|
@ -154,7 +154,7 @@ final class PHUIDiffInlineCommentDetailView
|
||||||
}
|
}
|
||||||
|
|
||||||
$ghost_icon = id(new PHUIIconView())
|
$ghost_icon = id(new PHUIIconView())
|
||||||
->setIconFont($ghosticon)
|
->setIcon($ghosticon)
|
||||||
->addSigil('has-tooltip')
|
->addSigil('has-tooltip')
|
||||||
->setMetadata(
|
->setMetadata(
|
||||||
array(
|
array(
|
||||||
|
@ -200,14 +200,14 @@ final class PHUIDiffInlineCommentDetailView
|
||||||
$up = id(new PHUIButtonView())
|
$up = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setTooltip(pht('Previous'))
|
->setTooltip(pht('Previous'))
|
||||||
->setIconFont('fa-chevron-up')
|
->setIcon('fa-chevron-up')
|
||||||
->addSigil('differential-inline-prev')
|
->addSigil('differential-inline-prev')
|
||||||
->setMustCapture(true);
|
->setMustCapture(true);
|
||||||
|
|
||||||
$down = id(new PHUIButtonView())
|
$down = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setTooltip(pht('Next'))
|
->setTooltip(pht('Next'))
|
||||||
->setIconFont('fa-chevron-down')
|
->setIcon('fa-chevron-down')
|
||||||
->addSigil('differential-inline-next')
|
->addSigil('differential-inline-next')
|
||||||
->setMustCapture(true);
|
->setMustCapture(true);
|
||||||
|
|
||||||
|
@ -215,7 +215,7 @@ final class PHUIDiffInlineCommentDetailView
|
||||||
$hide = id(new PHUIButtonView())
|
$hide = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setTooltip(pht('Hide Comment'))
|
->setTooltip(pht('Hide Comment'))
|
||||||
->setIconFont('fa-times')
|
->setIcon('fa-times')
|
||||||
->addSigil('hide-inline')
|
->addSigil('hide-inline')
|
||||||
->setMustCapture(true);
|
->setMustCapture(true);
|
||||||
|
|
||||||
|
@ -235,7 +235,7 @@ final class PHUIDiffInlineCommentDetailView
|
||||||
|
|
||||||
$action_buttons[] = id(new PHUIButtonView())
|
$action_buttons[] = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIconFont('fa-reply')
|
->setIcon('fa-reply')
|
||||||
->setTooltip(pht('Reply'))
|
->setTooltip(pht('Reply'))
|
||||||
->addSigil('differential-inline-reply')
|
->addSigil('differential-inline-reply')
|
||||||
->setMustCapture(true);
|
->setMustCapture(true);
|
||||||
|
@ -248,14 +248,14 @@ final class PHUIDiffInlineCommentDetailView
|
||||||
if ($this->editable && !$this->preview) {
|
if ($this->editable && !$this->preview) {
|
||||||
$action_buttons[] = id(new PHUIButtonView())
|
$action_buttons[] = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIconFont('fa-pencil')
|
->setIcon('fa-pencil')
|
||||||
->setTooltip(pht('Edit'))
|
->setTooltip(pht('Edit'))
|
||||||
->addSigil('differential-inline-edit')
|
->addSigil('differential-inline-edit')
|
||||||
->setMustCapture(true);
|
->setMustCapture(true);
|
||||||
|
|
||||||
$action_buttons[] = id(new PHUIButtonView())
|
$action_buttons[] = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setIconFont('fa-trash-o')
|
->setIcon('fa-trash-o')
|
||||||
->setTooltip(pht('Delete'))
|
->setTooltip(pht('Delete'))
|
||||||
->addSigil('differential-inline-delete')
|
->addSigil('differential-inline-delete')
|
||||||
->setMustCapture(true);
|
->setMustCapture(true);
|
||||||
|
@ -275,7 +275,7 @@ final class PHUIDiffInlineCommentDetailView
|
||||||
$action_buttons[] = id(new PHUIButtonView())
|
$action_buttons[] = id(new PHUIButtonView())
|
||||||
->setTag('a')
|
->setTag('a')
|
||||||
->setTooltip(pht('Delete'))
|
->setTooltip(pht('Delete'))
|
||||||
->setIconFont('fa-trash-o')
|
->setIcon('fa-trash-o')
|
||||||
->addSigil('differential-inline-delete')
|
->addSigil('differential-inline-delete')
|
||||||
->setMustCapture(true);
|
->setMustCapture(true);
|
||||||
}
|
}
|
||||||
|
@ -338,7 +338,7 @@ final class PHUIDiffInlineCommentDetailView
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
if ($is_done) {
|
if ($is_done) {
|
||||||
$icon = id(new PHUIIconView())->setIconFont('fa-check sky msr');
|
$icon = id(new PHUIIconView())->setIcon('fa-check sky msr');
|
||||||
$label = pht('Done');
|
$label = pht('Done');
|
||||||
$class = 'button-done';
|
$class = 'button-done';
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -4,7 +4,7 @@ final class PHUIDiffRevealIconView extends AphrontView {
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIconFont('fa-comment')
|
->setIcon('fa-comment')
|
||||||
->addSigil('has-tooltip')
|
->addSigil('has-tooltip')
|
||||||
->setMetadata(
|
->setMetadata(
|
||||||
array(
|
array(
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue