mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
Fix AphrontTagView
visibility
Summary: Ref T6822. Test Plan: `grep` Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6822 Differential Revision: https://secure.phabricator.com/D11368
This commit is contained in:
parent
d6b882a804
commit
8434143795
22 changed files with 42 additions and 42 deletions
|
@ -17,7 +17,7 @@ final class PhabricatorCountdownView extends AphrontTagView {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
$countdown = $this->countdown;
|
$countdown = $this->countdown;
|
||||||
|
|
||||||
require_celerity_resource('phabricator-countdown-css');
|
require_celerity_resource('phabricator-countdown-css');
|
||||||
|
|
|
@ -27,18 +27,18 @@ final class DivinerBookItemView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'a';
|
return 'a';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
return array(
|
return array(
|
||||||
'class' => 'diviner-book-item',
|
'class' => 'diviner-book-item',
|
||||||
'href' => $this->href,
|
'href' => $this->href,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
require_celerity_resource('diviner-shared-css');
|
require_celerity_resource('diviner-shared-css');
|
||||||
|
|
||||||
$title = phutil_tag(
|
$title = phutil_tag(
|
||||||
|
|
|
@ -15,17 +15,17 @@ final class DivinerParameterTableView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'div';
|
return 'div';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
return array(
|
return array(
|
||||||
'class' => 'diviner-table-view',
|
'class' => 'diviner-table-view',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
require_celerity_resource('diviner-shared-css');
|
require_celerity_resource('diviner-shared-css');
|
||||||
|
|
||||||
$rows = array();
|
$rows = array();
|
||||||
|
|
|
@ -15,17 +15,17 @@ final class DivinerReturnTableView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'div';
|
return 'div';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
return array(
|
return array(
|
||||||
'class' => 'diviner-table-view',
|
'class' => 'diviner-table-view',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
require_celerity_resource('diviner-shared-css');
|
require_celerity_resource('diviner-shared-css');
|
||||||
|
|
||||||
$return = $this->return;
|
$return = $this->return;
|
||||||
|
|
|
@ -15,17 +15,17 @@ final class DivinerSectionView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'div';
|
return 'div';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
return array(
|
return array(
|
||||||
'class' => 'diviner-document-section',
|
'class' => 'diviner-document-section',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
require_celerity_resource('diviner-shared-css');
|
require_celerity_resource('diviner-shared-css');
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
|
|
|
@ -220,7 +220,7 @@ final class PHUIPagedFormView extends AphrontTagView {
|
||||||
return $this->cancelURI;
|
return $this->cancelURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
$form = id(new AphrontFormView())
|
$form = id(new AphrontFormView())
|
||||||
->setUser($this->getUser());
|
->setUser($this->getUser());
|
||||||
|
|
||||||
|
|
|
@ -37,11 +37,11 @@ final class PHUIBoxView extends AphrontTagView {
|
||||||
return array('class' => $outer_classes);
|
return array('class' => $outer_classes);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'div';
|
return 'div';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
return $this->renderChildren();
|
return $this->renderChildren();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,11 +13,11 @@ final class PHUIButtonBarView extends AphrontTagView {
|
||||||
return array('class' => 'phui-button-bar');
|
return array('class' => 'phui-button-bar');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'div';
|
return 'div';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
require_celerity_resource('phui-button-css');
|
require_celerity_resource('phui-button-css');
|
||||||
|
|
||||||
$i = 1;
|
$i = 1;
|
||||||
|
|
|
@ -82,7 +82,7 @@ final class PHUIButtonView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return $this->tag;
|
return $this->tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ final class PHUIDocumentView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
$classes = array();
|
$classes = array();
|
||||||
|
|
||||||
if ($this->offset) {
|
if ($this->offset) {
|
||||||
|
@ -69,7 +69,7 @@ final class PHUIDocumentView extends AphrontTagView {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
require_celerity_resource('phui-document-view-css');
|
require_celerity_resource('phui-document-view-css');
|
||||||
if ($this->fontKit) {
|
if ($this->fontKit) {
|
||||||
require_celerity_resource('phui-fontkit-css');
|
require_celerity_resource('phui-fontkit-css');
|
||||||
|
|
|
@ -56,7 +56,7 @@ final class PHUIIconView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
$tag = 'span';
|
$tag = 'span';
|
||||||
if ($this->href) {
|
if ($this->href) {
|
||||||
$tag = 'a';
|
$tag = 'a';
|
||||||
|
@ -64,7 +64,7 @@ final class PHUIIconView extends AphrontTagView {
|
||||||
return $tag;
|
return $tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
require_celerity_resource('phui-icon-view-css');
|
require_celerity_resource('phui-icon-view-css');
|
||||||
|
|
||||||
$style = null;
|
$style = null;
|
||||||
|
|
|
@ -41,11 +41,11 @@ final class PHUIImageMaskView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'div';
|
return 'div';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
require_celerity_resource('phui-image-mask-css');
|
require_celerity_resource('phui-image-mask-css');
|
||||||
|
|
||||||
$classes = array();
|
$classes = array();
|
||||||
|
@ -62,7 +62,7 @@ final class PHUIImageMaskView extends AphrontTagView {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
|
|
||||||
/* Center it in the middle of the selected area */
|
/* Center it in the middle of the selected area */
|
||||||
$center_x = round($this->centerX + ($this->maskW / 2));
|
$center_x = round($this->centerX + ($this->maskW / 2));
|
||||||
|
|
|
@ -166,7 +166,7 @@ final class PHUIListView extends AphrontTagView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'ul';
|
return 'ul';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -307,7 +307,7 @@ final class PHUIObjectItemView extends AphrontTagView {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
$content_classes = array();
|
$content_classes = array();
|
||||||
$content_classes[] = 'phui-object-item-content';
|
$content_classes[] = 'phui-object-item-content';
|
||||||
|
|
||||||
|
|
|
@ -50,11 +50,11 @@ final class PHUIRemarkupPreviewPanel extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'div';
|
return 'div';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
$classes = array();
|
$classes = array();
|
||||||
$classes[] = 'phui-remarkup-preview';
|
$classes[] = 'phui-remarkup-preview';
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ final class PHUIStatusListView extends AphrontTagView {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'table';
|
return 'table';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,7 @@ final class PHUITagView extends AphrontTagView {
|
||||||
return $attributes + array('class' => $classes);
|
return $attributes + array('class' => $classes);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
if (!$this->type) {
|
if (!$this->type) {
|
||||||
throw new Exception(pht('You must call setType() before render()!'));
|
throw new Exception(pht('You must call setType() before render()!'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,11 +9,11 @@ final class PHUITextView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'span';
|
return 'span';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
require_celerity_resource('phui-text-css');
|
require_celerity_resource('phui-text-css');
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,13 +27,13 @@ final class PHUIWorkboardView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
return array(
|
return array(
|
||||||
'class' => 'phui-workboard-view',
|
'class' => 'phui-workboard-view',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
require_celerity_resource('phui-workboard-view-css');
|
require_celerity_resource('phui-workboard-view-css');
|
||||||
|
|
||||||
$action_list = null;
|
$action_list = null;
|
||||||
|
|
|
@ -55,13 +55,13 @@ final class PHUIWorkpanelView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
return array(
|
return array(
|
||||||
'class' => 'phui-workpanel-view',
|
'class' => 'phui-workpanel-view',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagContent() {
|
protected function getTagContent() {
|
||||||
require_celerity_resource('phui-workpanel-view-css');
|
require_celerity_resource('phui-workpanel-view-css');
|
||||||
|
|
||||||
$classes = array();
|
$classes = array();
|
||||||
|
|
|
@ -15,11 +15,11 @@ final class PHUICalendarListView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'div';
|
return 'div';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
require_celerity_resource('phui-calendar-css');
|
require_celerity_resource('phui-calendar-css');
|
||||||
require_celerity_resource('phui-calendar-list-css');
|
require_celerity_resource('phui-calendar-list-css');
|
||||||
return array('class' => 'phui-calendar-day-list');
|
return array('class' => 'phui-calendar-day-list');
|
||||||
|
|
|
@ -15,11 +15,11 @@ final class PHUICalendarWidgetView extends AphrontTagView {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagName() {
|
protected function getTagName() {
|
||||||
return 'div';
|
return 'div';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTagAttributes() {
|
protected function getTagAttributes() {
|
||||||
require_celerity_resource('phui-calendar-list-css');
|
require_celerity_resource('phui-calendar-list-css');
|
||||||
return array('class' => 'phui-calendar-list-container');
|
return array('class' => 'phui-calendar-list-container');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue