@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update Phurl Edit page to new UI

Summary: Updates Phurl UI on Edit/Create

Test Plan: Edit a Phurl, Create a Phurl.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15579

+18 -8
+18 -8
src/applications/phurl/controller/PhabricatorPhurlURLEditController.php
··· 24 24 $viewer); 25 25 $submit_label = pht('Create'); 26 26 $page_title = pht('Shorten URL'); 27 + $header_icon = 'fa-plus-square'; 27 28 $subscribers = array(); 28 29 $cancel_uri = $this->getApplicationURI(); 29 30 } else { ··· 42 43 } 43 44 44 45 $submit_label = pht('Update'); 45 - $page_title = pht('Update URL'); 46 + $page_title = pht('Edit URL: %s', $url->getName()); 47 + $header_icon = 'fa-pencil'; 46 48 47 49 $subscribers = PhabricatorSubscribersQuery::loadSubscribersForPHID( 48 50 $url->getPHID()); ··· 238 240 } 239 241 240 242 $crumbs->addTextCrumb($page_title); 243 + $crumbs->setBorder(true); 241 244 242 245 $object_box = id(new PHUIObjectBoxView()) 243 - ->setHeaderText($page_title) 246 + ->setHeaderText(pht('URL')) 244 247 ->setValidationException($validation_exception) 248 + ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) 245 249 ->appendChild($form); 246 250 247 - return $this->buildApplicationPage( 248 - array( 249 - $crumbs, 251 + $header = id(new PHUIHeaderView()) 252 + ->setHeader($page_title) 253 + ->setHeaderIcon($header_icon); 254 + 255 + $view = id(new PHUITwoColumnView()) 256 + ->setHeader($header) 257 + ->setFooter(array( 250 258 $object_box, 251 - ), 252 - array( 253 - 'title' => $page_title, 254 259 )); 260 + 261 + return $this->newPage() 262 + ->setTitle($page_title) 263 + ->setCrumbs($crumbs) 264 + ->appendChild($view); 255 265 } 256 266 }