Page MenuHomePhabricator

D14386.diff
No OneTemporary

D14386.diff

diff --git a/src/applications/phurl/controller/PhabricatorPhurlURLViewController.php b/src/applications/phurl/controller/PhabricatorPhurlURLViewController.php
--- a/src/applications/phurl/controller/PhabricatorPhurlURLViewController.php
+++ b/src/applications/phurl/controller/PhabricatorPhurlURLViewController.php
@@ -35,9 +35,13 @@
$properties = $this->buildPropertyView($url);
$properties->setActionList($actions);
+ $url_error = id(new PHUIInfoView())
+ ->setErrors(array(pht('This URL is invalid due to a bad protocol.')))
+ ->setIsHidden($url->isValid());
$box = id(new PHUIObjectBoxView())
->setHeader($header)
- ->addPropertyList($properties);
+ ->addPropertyList($properties)
+ ->setInfoView($url_error);
$is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business');
$add_comment_header = $is_serious

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 8:08 PM (2 d, 16 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6713852
Default Alt Text
D14386.diff (889 B)

Event Timeline