Page MenuHomePhabricator

D7940.id17961.diff
No OneTemporary

D7940.id17961.diff

Index: src/view/phui/PHUIWorkboardView.php
===================================================================
--- src/view/phui/PHUIWorkboardView.php
+++ src/view/phui/PHUIWorkboardView.php
@@ -1,6 +1,6 @@
<?php
-final class PHUIWorkboardView extends AphrontView {
+final class PHUIWorkboardView extends AphrontTagView {
private $panels = array();
private $fluidLayout = false;
@@ -27,7 +27,13 @@
return $this;
}
- public function render() {
+ public function getTagAttributes() {
+ return array(
+ 'class' => 'phui-workboard-view',
+ );
+ }
+
+ public function getTagContent() {
require_celerity_resource('phui-workboard-view-css');
$action_list = null;
@@ -68,14 +74,9 @@
),
$view);
- return phutil_tag(
- 'div',
- array(
- 'class' => 'phui-workboard-view'
- ),
- array(
- $action_list,
- $board
- ));
+ return array(
+ $action_list,
+ $board,
+ );
}
}
Index: src/view/phui/PHUIWorkpanelView.php
===================================================================
--- src/view/phui/PHUIWorkpanelView.php
+++ src/view/phui/PHUIWorkpanelView.php
@@ -1,6 +1,6 @@
<?php
-final class PHUIWorkpanelView extends AphrontView {
+final class PHUIWorkpanelView extends AphrontTagView {
private $cards = array();
private $header;
@@ -33,7 +33,13 @@
return $this;
}
- public function render() {
+ public function getTagAttributes() {
+ return array(
+ 'class' => 'phui-workpanel-view',
+ );
+ }
+
+ public function getTagContent() {
require_celerity_resource('phui-workpanel-view-css');
$footer = '';
@@ -75,11 +81,6 @@
$footer,
));
- return phutil_tag(
- 'div',
- array(
- 'class' => 'phui-workpanel-view'
- ),
- $view);
+ return $view;
}
}

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 4, 6:38 PM (14 h, 40 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7222493
Default Alt Text
D7940.id17961.diff (1 KB)

Event Timeline