mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 04:20:55 +01:00
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
This commit is contained in:
parent
e9614df76e
commit
e67c438943
2 changed files with 5 additions and 17 deletions
|
@ -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().'/';
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue