Page MenuHomePhorge

D25538.1737770643.diff
No OneTemporary

D25538.1737770643.diff

diff --git a/src/applications/diffusion/controller/DiffusionController.php b/src/applications/diffusion/controller/DiffusionController.php
--- a/src/applications/diffusion/controller/DiffusionController.php
+++ b/src/applications/diffusion/controller/DiffusionController.php
@@ -211,7 +211,7 @@
$view_name = pht('History');
break;
case 'browse':
- $view_name = pht('Browse');
+ $view_name = pht('Code');
break;
case 'lint':
$view_name = pht('Lint');
@@ -502,6 +502,18 @@
$view = new PHUIListView();
+ $view->addMenuItem(
+ id(new PHUIListItemView())
+ ->setKey('home')
+ ->setName(pht('Home'))
+ ->setIcon('fa-home')
+ ->setHref($drequest->generateURI(
+ array(
+ 'action' => 'branch',
+ 'path' => '',
+ )))
+ ->setSelected($key == 'home'));
+
$view->addMenuItem(
id(new PHUIListItemView())
->setKey('code')
diff --git a/src/applications/diffusion/controller/DiffusionRepositoryController.php b/src/applications/diffusion/controller/DiffusionRepositoryController.php
--- a/src/applications/diffusion/controller/DiffusionRepositoryController.php
+++ b/src/applications/diffusion/controller/DiffusionRepositoryController.php
@@ -109,7 +109,7 @@
->setErrors(array($empty_message));
}
- $tabs = $this->buildTabsView('code');
+ $tabs = $this->buildTabsView('home');
$clone_uri = $drequest->generateURI(
array(
@@ -396,7 +396,7 @@
foreach ($branches as $branch) {
$branch_uri = $drequest->generateURI(
array(
- 'action' => 'browse',
+ 'action' => 'branch',
'branch' => $branch->getShortname(),
));
$actions->addAction(

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 25, 02:04 (5 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1134258
Default Alt Text
D25538.1737770643.diff (1 KB)

Event Timeline