From 07c0032491e660d9f5542b67628a03ddb3207efa Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 14 Aug 2017 11:05:10 -0700 Subject: [PATCH] Add a link directly to Browse in Diffusion Summary: Getting to the straight browse view went away, this adds a link back. I'll look at more long term solution for getting to grep search. Test Plan: Click on header, get take to browse view. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D18421 --- resources/celerity/map.php | 4 ++-- .../controller/DiffusionRepositoryController.php | 10 +++++++++- webroot/rsrc/css/application/diffusion/diffusion.css | 6 ++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index feab818559..fdb002f335 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -75,7 +75,7 @@ return array( 'rsrc/css/application/diffusion/diffusion-readme.css' => '419dd5b6', 'rsrc/css/application/diffusion/diffusion-repository.css' => 'ee6f20ec', 'rsrc/css/application/diffusion/diffusion-source.css' => '750add59', - 'rsrc/css/application/diffusion/diffusion.css' => '67bd971b', + 'rsrc/css/application/diffusion/diffusion.css' => '59f4ac67', 'rsrc/css/application/feed/feed.css' => 'ecd4ec57', 'rsrc/css/application/files/global-drag-and-drop.css' => 'b556a948', 'rsrc/css/application/flag/flag.css' => 'bba8f811', @@ -570,7 +570,7 @@ return array( 'differential-revision-history-css' => '0e8eb855', 'differential-revision-list-css' => 'f3c47d33', 'differential-table-of-contents-css' => 'ae4b7a55', - 'diffusion-css' => '67bd971b', + 'diffusion-css' => '59f4ac67', 'diffusion-icons-css' => '0c15255e', 'diffusion-readme-css' => '419dd5b6', 'diffusion-repository-css' => 'ee6f20ec', diff --git a/src/applications/diffusion/controller/DiffusionRepositoryController.php b/src/applications/diffusion/controller/DiffusionRepositoryController.php index 39877317df..dcbd95fef7 100644 --- a/src/applications/diffusion/controller/DiffusionRepositoryController.php +++ b/src/applications/diffusion/controller/DiffusionRepositoryController.php @@ -546,8 +546,16 @@ final class DiffusionRepositoryController extends DiffusionController { $browse_uri = $drequest->generateURI(array('action' => 'browse')); $pager->setURI($browse_uri, 'offset'); + $header = phutil_tag( + 'a', + array( + 'href' => $browse_uri, + 'class' => 'diffusion-view-browse-header', + ), + $repository->getName()); + return id(new PHUIObjectBoxView()) - ->setHeaderText($repository->getName()) + ->setHeaderText($header) ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) ->setTable($browse_table) ->setPager($pager); diff --git a/webroot/rsrc/css/application/diffusion/diffusion.css b/webroot/rsrc/css/application/diffusion/diffusion.css index 4d18e3dcb7..d05c0b26ca 100644 --- a/webroot/rsrc/css/application/diffusion/diffusion.css +++ b/webroot/rsrc/css/application/diffusion/diffusion.css @@ -60,6 +60,12 @@ padding: 0; } +.diffusion-view-browse-header { + display: block; + padding: 2px 0; + font-size: {$biggestfontsize}; +} + /* - List Styles ------------------------------------------------------------*/ .diffusion-history-list .phui-oi-link {