Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
1.4 kB · 46 lines
PHP
at commit dfc8f8bc
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647<?php
final class DiffusionRepositoryEditDeleteController extends DiffusionRepositoryEditController {
public function handleRequest(AphrontRequest $request) { $response = $this->loadDiffusionContextForEdit(); if ($response) { return $response; }
$viewer = $this->getViewer(); $drequest = $this->getDiffusionRequest(); $repository = $drequest->getRepository();
$edit_uri = $this->getRepositoryControllerURI($repository, 'edit/');
$dialog = new AphrontDialogView(); $text_1 = pht( 'If you really want to delete the repository, run this command from '. 'the command line:'); $command = csprintf( 'phabricator/ $ ./bin/remove destroy %R', $repository->getMonogram()); $text_2 = pht( 'Repositories touch many objects and as such deletes are '. 'prohibitively expensive to run from the web UI.'); $body = phutil_tag( 'div', array( 'class' => 'phabricator-remarkup', ), array( phutil_tag('p', array(), $text_1), phutil_tag('p', array(), phutil_tag('tt', array(), $command)), phutil_tag('p', array(), $text_2), ));
return $this->newDialog() ->setTitle(pht('Really want to delete the repository?')) ->appendChild($body) ->addCancelButton($edit_uri, pht('Okay')); }
}