Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15281581
D7940.id17961.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7940.id17961.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7940: Make Workboard and Workpanel views extend AphrontTagView
Attached
Detach File
Event Timeline
Log In to Comment