mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-23 03:59:25 +01:00
More render_tag -> tag (misc, form inset view)
Summary: Converts some callsites. Test Plan: Grepped; looked -- see inlines. Reviewers: vrana Reviewed By: vrana CC: aran Maniphest Tasks: T2432 Differential Revision: https://secure.phabricator.com/D4688
This commit is contained in:
parent
fb6dbd7d3a
commit
820c6279f3
4 changed files with 23 additions and 17 deletions
|
@ -133,8 +133,8 @@ final class HeraldRuleController extends HeraldController {
|
||||||
),
|
),
|
||||||
'Create New Condition'))
|
'Create New Condition'))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
'When '.$must_match_selector .
|
phutil_safe_html(
|
||||||
' these conditions are met:')
|
'When '.$must_match_selector.' these conditions are met:'))
|
||||||
->setContent(javelin_tag(
|
->setContent(javelin_tag(
|
||||||
'table',
|
'table',
|
||||||
array(
|
array(
|
||||||
|
@ -154,8 +154,9 @@ final class HeraldRuleController extends HeraldController {
|
||||||
'mustcapture' => true,
|
'mustcapture' => true,
|
||||||
),
|
),
|
||||||
'Create New Action'))
|
'Create New Action'))
|
||||||
->setDescription('Take these actions '.$repetition_selector.
|
->setDescription(
|
||||||
' this rule matches:')
|
phutil_safe_html(
|
||||||
|
'Take these actions '.$repetition_selector.' this rule matches:'))
|
||||||
->setContent(javelin_tag(
|
->setContent(javelin_tag(
|
||||||
'table',
|
'table',
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -68,7 +68,7 @@ final class AphrontFormInsetView extends AphrontView {
|
||||||
$hidden_inputs = implode("\n", $hidden_inputs);
|
$hidden_inputs = implode("\n", $hidden_inputs);
|
||||||
|
|
||||||
if ($this->rightButton) {
|
if ($this->rightButton) {
|
||||||
$right_button = phutil_render_tag(
|
$right_button = phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
array(
|
array(
|
||||||
'style' => 'float: right;',
|
'style' => 'float: right;',
|
||||||
|
@ -77,7 +77,7 @@ final class AphrontFormInsetView extends AphrontView {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->description) {
|
if ($this->description) {
|
||||||
$desc = phutil_render_tag(
|
$desc = phutil_tag(
|
||||||
'p',
|
'p',
|
||||||
array(),
|
array(),
|
||||||
$this->description);
|
$this->description);
|
||||||
|
|
|
@ -255,12 +255,14 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView {
|
||||||
$developer_warning = null;
|
$developer_warning = null;
|
||||||
if (PhabricatorEnv::getEnvConfig('phabricator.show-error-callout') &&
|
if (PhabricatorEnv::getEnvConfig('phabricator.show-error-callout') &&
|
||||||
DarkConsoleErrorLogPluginAPI::getErrors()) {
|
DarkConsoleErrorLogPluginAPI::getErrors()) {
|
||||||
$developer_warning =
|
$developer_warning = phutil_tag(
|
||||||
'<div class="aphront-developer-error-callout">'.
|
'div',
|
||||||
pht(
|
array(
|
||||||
'This page raised PHP errors. Find them in DarkConsole '.
|
'class' => 'aphront-developer-error-callout',
|
||||||
'or the error log.').
|
),
|
||||||
'</div>';
|
pht(
|
||||||
|
'This page raised PHP errors. Find them in DarkConsole '.
|
||||||
|
'or the error log.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render the "you have unresolved setup issues..." warning.
|
// Render the "you have unresolved setup issues..." warning.
|
||||||
|
|
|
@ -316,15 +316,15 @@ final class PhabricatorMainMenuView extends AphrontView {
|
||||||
$message_count_number = "\xE2\x88\x9E";
|
$message_count_number = "\xE2\x88\x9E";
|
||||||
}
|
}
|
||||||
|
|
||||||
$message_count_tag = phutil_render_tag(
|
$message_count_tag = phutil_tag(
|
||||||
'span',
|
'span',
|
||||||
array(
|
array(
|
||||||
'id' => $message_count_id,
|
'id' => $message_count_id,
|
||||||
'class' => 'phabricator-main-menu-message-count'
|
'class' => 'phabricator-main-menu-message-count'
|
||||||
),
|
),
|
||||||
phutil_escape_html($message_count_number));
|
$message_count_number);
|
||||||
|
|
||||||
$message_icon_tag = phutil_render_tag(
|
$message_icon_tag = phutil_tag(
|
||||||
'span',
|
'span',
|
||||||
array(
|
array(
|
||||||
'class' => 'sprite-menu phabricator-main-menu-message-icon',
|
'class' => 'sprite-menu phabricator-main-menu-message-icon',
|
||||||
|
@ -335,14 +335,17 @@ final class PhabricatorMainMenuView extends AphrontView {
|
||||||
$container_classes[] = 'message-unread';
|
$container_classes[] = 'message-unread';
|
||||||
}
|
}
|
||||||
|
|
||||||
$message_tag = phutil_render_tag(
|
$message_tag = phutil_tag(
|
||||||
'a',
|
'a',
|
||||||
array(
|
array(
|
||||||
'href' => '/conpherence/',
|
'href' => '/conpherence/',
|
||||||
'class' => implode(' ', $container_classes),
|
'class' => implode(' ', $container_classes),
|
||||||
'id' => $message_id,
|
'id' => $message_id,
|
||||||
),
|
),
|
||||||
$message_icon_tag.$message_count_tag);
|
array(
|
||||||
|
$message_icon_tag,
|
||||||
|
$message_count_tag,
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
$count_id = celerity_generate_unique_node_id();
|
$count_id = celerity_generate_unique_node_id();
|
||||||
|
|
Loading…
Add table
Reference in a new issue