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
This commit is contained in:
Chad Little
2017-08-14 11:05:10 -07:00
parent 8c3243ef68
commit 07c0032491
3 changed files with 17 additions and 3 deletions

View File

@@ -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);