Add tabs to Diffusion for consistent navigation

Summary:
Adds a responsive tab bar navigation to Diffusion. Working through the new design here in pieces, so keep in mind M1477 is the target. Notably:

- Removes "branches" and "tags" from RevisionView, now on tabs
- Keeps "browse", "history", "readme" on RevisionView
- Adds tabs for all main views, including Graph... unless how that feels, so let me know.

Test Plan: Browse all pages, desktop and mobile. Test hg, svn, git repositories.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D18161
This commit is contained in:
Chad Little
2017-07-05 22:09:12 +01:00
parent 7b6b3d722a
commit e516358d54
6 changed files with 112 additions and 248 deletions

View File

@@ -71,8 +71,11 @@ final class DiffusionBranchTableController extends DiffusionController {
->setHeader(pht('Branches'))
->setHeaderIcon('fa-code-fork');
$tabs = $this->buildTabsView('branch');
$view = id(new PHUITwoColumnView())
->setHeader($header)
->setTabs($tabs)
->setFooter(array(
$content,
));