Page MenuHomePhabricator

D11815.diff
No OneTemporary

D11815.diff

diff --git a/src/applications/xhprof/view/PhabricatorXHProfProfileTopLevelView.php b/src/applications/xhprof/view/PhabricatorXHProfProfileTopLevelView.php
--- a/src/applications/xhprof/view/PhabricatorXHProfProfileTopLevelView.php
+++ b/src/applications/xhprof/view/PhabricatorXHProfProfileTopLevelView.php
@@ -123,16 +123,13 @@
$panel = new PHUIObjectBoxView();
$header = id(new PHUIHeaderView())
- ->setHeaderText(pht('XHProf Profile'));
+ ->setHeader(pht('XHProf Profile'));
if ($this->file) {
- $button = phutil_tag(
- 'a',
- array(
- 'href' => $this->file->getBestURI(),
- 'class' => 'green button',
- ),
- pht('Download .xhprof Profile'));
+ $button = id(new PHUIButtonView())
+ ->setHref($this->file->getBestURI())
+ ->setText(pht('Download .xhprof Profile'))
+ ->setTag('a');
$header->addActionLink($button);
}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 13, 10:00 AM (1 w, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6737399
Default Alt Text
D11815.diff (952 B)

Event Timeline