From e67c438943f2bd1e6144063ae9138da0f346f1f7 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 31 Aug 2015 10:17:44 -0700 Subject: [PATCH] Rename "Edit Column" to "Column Details" Summary: Ref T9089. This link leads to a detail page, not an edit page, and is always visible by users with permission to see the column. Test Plan: Clicked "Column Details" with and without edit permission. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9089 Differential Revision: https://secure.phabricator.com/D14016 --- .../PhabricatorProjectBoardViewController.php | 10 ++++------ .../PhabricatorProjectColumnDetailController.php | 12 +----------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/applications/project/controller/PhabricatorProjectBoardViewController.php b/src/applications/project/controller/PhabricatorProjectBoardViewController.php index 077cca9a5f..ffe3ea2e73 100644 --- a/src/applications/project/controller/PhabricatorProjectBoardViewController.php +++ b/src/applications/project/controller/PhabricatorProjectBoardViewController.php @@ -639,15 +639,13 @@ final class PhabricatorProjectBoardViewController ->setHref($batch_edit_uri) ->setDisabled(!$can_batch_edit); - $edit_uri = $this->getApplicationURI( + $detail_uri = $this->getApplicationURI( 'board/'.$this->id.'/column/'.$column->getID().'/'); $column_items[] = id(new PhabricatorActionView()) - ->setIcon('fa-pencil') - ->setName(pht('Edit Column')) - ->setHref($edit_uri) - ->setDisabled(!$can_edit) - ->setWorkflow(!$can_edit); + ->setIcon('fa-columns') + ->setName(pht('Column Details')) + ->setHref($detail_uri); $can_hide = ($can_edit && !$column->isDefaultColumn()); $hide_uri = 'board/'.$this->id.'/hide/'.$column->getID().'/'; diff --git a/src/applications/project/controller/PhabricatorProjectColumnDetailController.php b/src/applications/project/controller/PhabricatorProjectColumnDetailController.php index c44fb5b87c..bf0b659859 100644 --- a/src/applications/project/controller/PhabricatorProjectColumnDetailController.php +++ b/src/applications/project/controller/PhabricatorProjectColumnDetailController.php @@ -17,7 +17,6 @@ final class PhabricatorProjectColumnDetailController ->withIDs(array($project_id)) ->needImages(true) ->executeOne(); - if (!$project) { return new Aphront404Response(); } @@ -40,7 +39,7 @@ final class PhabricatorProjectColumnDetailController new PhabricatorProjectColumnTransactionQuery()); $timeline->setShouldTerminate(true); - $title = pht('%s', $column->getDisplayName()); + $title = $column->getDisplayName(); $header = $this->buildHeaderView($column); $actions = $this->buildActionView($column); @@ -113,15 +112,6 @@ final class PhabricatorProjectColumnDetailController ->setObject($column) ->setActionList($actions); - $descriptions = PhabricatorPolicyQuery::renderPolicyDescriptions( - $viewer, - $column); - - $properties->addProperty( - pht('Editable By'), - $descriptions[PhabricatorPolicyCapability::CAN_EDIT]); - - $limit = $column->getPointLimit(); $properties->addProperty( pht('Point Limit'),