@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final 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}