Page MenuHomePhabricator

D15455.id37246.diff
No OneTemporary

D15455.id37246.diff

diff --git a/src/view/phui/PHUITwoColumnView.php b/src/view/phui/PHUITwoColumnView.php
--- a/src/view/phui/PHUITwoColumnView.php
+++ b/src/view/phui/PHUITwoColumnView.php
@@ -8,6 +8,7 @@
private $fluid;
private $header;
private $subheader;
+ private $footer;
private $propertySection = array();
private $actionList;
private $propertyList;
@@ -36,6 +37,11 @@
return $this;
}
+ public function setFooter($footer) {
+ $this->footer = $footer;
+ return $this;
+ }
+
public function addPropertySection($title, $section) {
$this->propertySection[] = array($title, $section);
return $this;
@@ -101,6 +107,8 @@
$main = $this->buildMainColumn();
$side = $this->buildSideColumn();
+ $footer = $this->buildFooter();
+
$order = array($side, $main);
$inner = phutil_tag_div('phui-two-column-row grouped', $order);
@@ -138,6 +146,7 @@
$header,
$subheader,
$table,
+ $footer,
));
}
@@ -197,4 +206,18 @@
$this->sideColumn,
));
}
+
+ private function buildFooter() {
+ $footer = $this->footer;
+
+ return phutil_tag(
+ 'div',
+ array(
+ 'class' => 'phui-two-column-content phui-two-column-footer',
+ ),
+ array(
+ $footer,
+ ));
+
+ }
}

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 22, 4:22 AM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7716419
Default Alt Text
D15455.id37246.diff (1 KB)

Event Timeline