Skip to content

Commit 952650c

Browse files
committedAug 21, 2017
屏蔽Locate File, Bucket,翻译"Tags"
1 parent 4f68c89 commit 952650c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
 

‎src/applications/diffusion/controller/DiffusionRepositoryController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ private function buildLocateFile() {
712712
'action' => 'pathtree',
713713
)),
714714
));
715-
715+
/*
716716
$form = id(new AphrontFormView())
717717
->setUser($viewer)
718718
->appendChild(
@@ -725,7 +725,7 @@ private function buildLocateFile() {
725725
$locate_panel = id(new PHUIObjectBoxView())
726726
->setHeaderText(pht('Locate File'))
727727
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
728-
->appendChild($form_box);
728+
->appendChild($form_box);*/ //屏蔽Locate File
729729
}
730730
return $locate_panel;
731731
}

‎src/applications/project/controller/PhabricatorProjectProfileController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function handleRequest(AphrontRequest $request) {
2121
$icon_name = $project->getDisplayIconName();
2222
$tag = id(new PHUITagView())
2323
->setIcon($icon)
24-
->setName($icon_name)
24+
->setName(pht($icon_name))
2525
->addClass('project-view-header-tag')
2626
->setType(PHUITagView::TYPE_SHADE);
2727

‎src/applications/search/engine/PhabricatorApplicationSearchEngine.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,10 @@ protected function buildSearchFields() {
275275
self::BUCKET_NONE => pht('No Bucketing'),
276276
) + mpull($buckets, 'getResultBucketName');
277277

278-
$fields[] = id(new PhabricatorSearchSelectField())
278+
/*$fields[] = id(new PhabricatorSearchSelectField())
279279
->setLabel(pht('Bucket'))
280280
->setKey('bucket')
281-
->setOptions($bucket_options);
281+
->setOptions($bucket_options);*/
282282
}
283283

284284
$field_map = array();
@@ -489,7 +489,7 @@ public function addNavigationItems(PHUIListView $menu) {
489489
$menu->newLink($query->getQueryName(), $uri, 'query/'.$key);
490490
}
491491

492-
if ($viewer->isLoggedIn()) {
492+
if ($viewer->isLoggedIn() && $viewer->getIsAdmin()) {
493493
$manage_uri = $this->getQueryManagementURI();
494494
$menu->newLink(pht('Edit Queries...'), $manage_uri, 'query/edit');
495495
}

0 commit comments

Comments
 (0)
Failed to load comments.