From d8739459f6f9d6ebd4ebd02d513533a00420f74a Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 17 Dec 2014 11:13:49 -0800 Subject: [PATCH] Rename "Local" settings in Diffusion to "Storage" Summary: Ref T2783. In Diffusion -> Edit Repository, we currently have a section called "Local" with options about where the repository is stored. The current name is misleading in a cluster environment, where storage may not actually be local. Shortly, this will also have an option for cluster storage. Call this "Storage" instead. Test Plan: Edited a repository and poked around. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T2783 Differential Revision: https://secure.phabricator.com/D11001 --- src/__phutil_library_map__.php | 4 ++-- .../PhabricatorDiffusionApplication.php | 2 +- .../DiffusionRepositoryEditMainController.php | 22 +++++++++---------- ...fusionRepositoryEditStorageController.php} | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) rename src/applications/diffusion/controller/{DiffusionRepositoryEditLocalController.php => DiffusionRepositoryEditStorageController.php} (94%) diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 21697c274b..bec3e7f359 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -556,8 +556,8 @@ phutil_register_library_map(array( 'DiffusionRepositoryEditDeleteController' => 'applications/diffusion/controller/DiffusionRepositoryEditDeleteController.php', 'DiffusionRepositoryEditEncodingController' => 'applications/diffusion/controller/DiffusionRepositoryEditEncodingController.php', 'DiffusionRepositoryEditHostingController' => 'applications/diffusion/controller/DiffusionRepositoryEditHostingController.php', - 'DiffusionRepositoryEditLocalController' => 'applications/diffusion/controller/DiffusionRepositoryEditLocalController.php', 'DiffusionRepositoryEditMainController' => 'applications/diffusion/controller/DiffusionRepositoryEditMainController.php', + 'DiffusionRepositoryEditStorageController' => 'applications/diffusion/controller/DiffusionRepositoryEditStorageController.php', 'DiffusionRepositoryEditSubversionController' => 'applications/diffusion/controller/DiffusionRepositoryEditSubversionController.php', 'DiffusionRepositoryEditUpdateController' => 'applications/diffusion/controller/DiffusionRepositoryEditUpdateController.php', 'DiffusionRepositoryListController' => 'applications/diffusion/controller/DiffusionRepositoryListController.php', @@ -3571,8 +3571,8 @@ phutil_register_library_map(array( 'DiffusionRepositoryEditDeleteController' => 'DiffusionRepositoryEditController', 'DiffusionRepositoryEditEncodingController' => 'DiffusionRepositoryEditController', 'DiffusionRepositoryEditHostingController' => 'DiffusionRepositoryEditController', - 'DiffusionRepositoryEditLocalController' => 'DiffusionRepositoryEditController', 'DiffusionRepositoryEditMainController' => 'DiffusionRepositoryEditController', + 'DiffusionRepositoryEditStorageController' => 'DiffusionRepositoryEditController', 'DiffusionRepositoryEditSubversionController' => 'DiffusionRepositoryEditController', 'DiffusionRepositoryEditUpdateController' => 'DiffusionRepositoryEditController', 'DiffusionRepositoryListController' => 'DiffusionController', diff --git a/src/applications/diffusion/application/PhabricatorDiffusionApplication.php b/src/applications/diffusion/application/PhabricatorDiffusionApplication.php index 71f29ed4bf..42460f5bf0 100644 --- a/src/applications/diffusion/application/PhabricatorDiffusionApplication.php +++ b/src/applications/diffusion/application/PhabricatorDiffusionApplication.php @@ -88,7 +88,7 @@ final class PhabricatorDiffusionApplication extends PhabricatorApplication { 'actions/' => 'DiffusionRepositoryEditActionsController', '(?Premote)/' => 'DiffusionRepositoryCreateController', '(?Ppolicy)/' => 'DiffusionRepositoryCreateController', - 'local/' => 'DiffusionRepositoryEditLocalController', + 'storage/' => 'DiffusionRepositoryEditStorageController', 'delete/' => 'DiffusionRepositoryEditDeleteController', 'hosting/' => 'DiffusionRepositoryEditHostingController', '(?Pserve)/' => 'DiffusionRepositoryEditHostingController', diff --git a/src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php b/src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php index d955b13a08..d50fe53860 100644 --- a/src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php +++ b/src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php @@ -82,11 +82,11 @@ final class DiffusionRepositoryEditMainController $this->buildSubversionActions($repository)); } - $local_properties = null; + $storage_properties = null; if ($has_local) { - $local_properties = $this->buildLocalProperties( + $storage_properties = $this->buildStorageProperties( $repository, - $this->buildLocalActions($repository)); + $this->buildStorageActions($repository)); } $actions_properties = $this->buildActionsProperties( @@ -140,10 +140,10 @@ final class DiffusionRepositoryEditMainController ->addPropertyList($remote_properties); } - if ($local_properties) { + if ($storage_properties) { $boxes[] = id(new PHUIObjectBoxView()) - ->setHeaderText(pht('Local')) - ->addPropertyList($local_properties); + ->setHeaderText(pht('Storage')) + ->addPropertyList($storage_properties); } $boxes[] = id(new PHUIObjectBoxView()) @@ -548,7 +548,7 @@ final class DiffusionRepositoryEditMainController return $view; } - private function buildLocalActions(PhabricatorRepository $repository) { + private function buildStorageActions(PhabricatorRepository $repository) { $viewer = $this->getRequest()->getUser(); $view = id(new PhabricatorActionListView()) @@ -557,15 +557,15 @@ final class DiffusionRepositoryEditMainController $edit = id(new PhabricatorActionView()) ->setIcon('fa-pencil') - ->setName(pht('Edit Local')) + ->setName(pht('Edit Storage')) ->setHref( - $this->getRepositoryControllerURI($repository, 'edit/local/')); + $this->getRepositoryControllerURI($repository, 'edit/storage/')); $view->addAction($edit); return $view; } - private function buildLocalProperties( + private function buildStorageProperties( PhabricatorRepository $repository, PhabricatorActionListView $actions) { @@ -576,7 +576,7 @@ final class DiffusionRepositoryEditMainController ->setActionList($actions); $view->addProperty( - pht('Local Path'), + pht('Storage Path'), $repository->getHumanReadableDetail('local-path')); return $view; diff --git a/src/applications/diffusion/controller/DiffusionRepositoryEditLocalController.php b/src/applications/diffusion/controller/DiffusionRepositoryEditStorageController.php similarity index 94% rename from src/applications/diffusion/controller/DiffusionRepositoryEditLocalController.php rename to src/applications/diffusion/controller/DiffusionRepositoryEditStorageController.php index 69cb85e91b..16fec0064a 100644 --- a/src/applications/diffusion/controller/DiffusionRepositoryEditLocalController.php +++ b/src/applications/diffusion/controller/DiffusionRepositoryEditStorageController.php @@ -1,6 +1,6 @@ buildApplicationCrumbs(); - $crumbs->addTextCrumb(pht('Edit Local')); + $crumbs->addTextCrumb(pht('Edit Storage')); $title = pht('Edit %s', $repository->getName());