Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/diffusion/controller/DiffusionRepositoryEditDeleteController.php
12242 views
1
<?php
2
3
final class DiffusionRepositoryEditDeleteController
4
extends DiffusionRepositoryManageController {
5
6
public function handleRequest(AphrontRequest $request) {
7
$response = $this->loadDiffusionContextForEdit();
8
if ($response) {
9
return $response;
10
}
11
12
$viewer = $this->getViewer();
13
$drequest = $this->getDiffusionRequest();
14
$repository = $drequest->getRepository();
15
16
$panel_uri = id(new DiffusionRepositoryBasicsManagementPanel())
17
->setRepository($repository)
18
->getPanelURI();
19
20
$doc_uri = PhabricatorEnv::getDoclink(
21
'Permanently Destroying Data');
22
23
return $this->newDialog()
24
->setTitle(pht('Delete Repository'))
25
->appendParagraph(
26
pht(
27
'To permanently destroy this repository, run this command from '.
28
'the command line:'))
29
->appendCommand(
30
csprintf(
31
'phabricator/ $ ./bin/remove destroy %R',
32
$repository->getMonogram()))
33
->appendParagraph(
34
pht(
35
'Repositories can not be permanently destroyed from the web '.
36
'interface. See %s in the documentation for more information.',
37
phutil_tag(
38
'a',
39
array(
40
'href' => $doc_uri,
41
'target' => '_blank',
42
),
43
pht('Permanently Destroying Data'))))
44
->addCancelButton($panel_uri, pht('Close'));
45
}
46
47
}
48
49