Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/config/view/PhabricatorInFlightErrorView.php
12256 views
1
<?php
2
3
final class PhabricatorInFlightErrorView extends AphrontView {
4
5
private $message;
6
7
public function setMessage($message) {
8
$this->message = $message;
9
return $this;
10
}
11
12
public function getMessage() {
13
return $this->message;
14
}
15
16
public function render() {
17
return phutil_tag(
18
'div',
19
array(
20
'class' => 'in-flight-error-detail',
21
),
22
array(
23
phutil_tag(
24
'h1',
25
array(
26
'class' => 'in-flight-error-title',
27
),
28
pht('A Troublesome Encounter!')),
29
phutil_tag(
30
'div',
31
array(
32
'class' => 'in-flight-error-body',
33
),
34
pht(
35
'Woe! This request had its journey cut short by unexpected '.
36
'circumstances (%s).',
37
$this->getMessage())),
38
));
39
}
40
41
}
42
43