From ee74fb4cc76402a98f0b086c848594586fc276b2 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 11 May 2016 08:17:42 -0700 Subject: [PATCH] Add a "View Repository" button to the repository manage UI Summary: Ref T10923. We sort of dead-end new users creating repositories right now, by dumping them into the manage UI without an obvious way forward. You can click the crumb to get to the repository, but by default it will say something like `R1` which isn't very obvious. Add a more obvious navigational link to get to the main view. Test Plan: {F1308196} Reviewers: chad Reviewed By: chad Maniphest Tasks: T10923 Differential Revision: https://secure.phabricator.com/D15889 --- .../DiffusionRepositoryManagePanelsController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/applications/diffusion/controller/DiffusionRepositoryManagePanelsController.php b/src/applications/diffusion/controller/DiffusionRepositoryManagePanelsController.php index a5541acabc..22c03145e0 100644 --- a/src/applications/diffusion/controller/DiffusionRepositoryManagePanelsController.php +++ b/src/applications/diffusion/controller/DiffusionRepositoryManagePanelsController.php @@ -62,6 +62,7 @@ final class DiffusionRepositoryManagePanelsController $crumbs = $this->buildApplicationCrumbs(); $crumbs->addTextCrumb($panel->getManagementPanelLabel()); + $crumbs->setBorder(true); $header_text = pht( '%s: %s', @@ -77,6 +78,13 @@ final class DiffusionRepositoryManagePanelsController $header->setStatus('fa-ban', 'dark', pht('Inactive')); } + $header->addActionLink( + id(new PHUIButtonView()) + ->setTag('a') + ->setText(pht('View Repository')) + ->setHref($repository->getURI()) + ->setIcon('fa-code')); + $view = id(new PHUITwoColumnView()) ->setHeader($header) ->setNavigation($nav)