From b711407b172a112f3ba49b76aef94d2b251c0635 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 14 Jan 2015 11:24:36 -0800 Subject: [PATCH] Remove wiki move explanation in projects Summary: I assume we've shown this long enough, plus with redesign it's a good time to remove. Test Plan: reload page, no link Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11394 --- .../PhabricatorProjectApplication.php | 1 - .../PhabricatorProjectProfileController.php | 12 ------- ...habricatorProjectWikiExplainController.php | 31 ------------------- 3 files changed, 44 deletions(-) delete mode 100644 src/applications/project/controller/PhabricatorProjectWikiExplainController.php diff --git a/src/applications/project/application/PhabricatorProjectApplication.php b/src/applications/project/application/PhabricatorProjectApplication.php index e844c309f6..f0e1f1734d 100644 --- a/src/applications/project/application/PhabricatorProjectApplication.php +++ b/src/applications/project/application/PhabricatorProjectApplication.php @@ -87,7 +87,6 @@ final class PhabricatorProjectApplication extends PhabricatorApplication { 'history/(?P[1-9]\d*)/' => 'PhabricatorProjectHistoryController', '(?Pwatch|unwatch)/(?P[1-9]\d*)/' => 'PhabricatorProjectWatchController', - 'wiki/' => 'PhabricatorProjectWikiExplainController', ), '/tag/' => array( '(?P[^/]+)/' => 'PhabricatorProjectViewController', diff --git a/src/applications/project/controller/PhabricatorProjectProfileController.php b/src/applications/project/controller/PhabricatorProjectProfileController.php index 3e5fe19fac..208c23e098 100644 --- a/src/applications/project/controller/PhabricatorProjectProfileController.php +++ b/src/applications/project/controller/PhabricatorProjectProfileController.php @@ -204,18 +204,6 @@ final class PhabricatorProjectProfileController } } - $have_phriction = PhabricatorApplication::isClassInstalledForViewer( - 'PhabricatorPhrictionApplication', - $viewer); - if ($have_phriction) { - $view->addAction( - id(new PhabricatorActionView()) - ->setIcon('fa-book grey') - ->setName(pht('View Wiki')) - ->setWorkflow(true) - ->setHref('/project/wiki/')); - } - return $view; } diff --git a/src/applications/project/controller/PhabricatorProjectWikiExplainController.php b/src/applications/project/controller/PhabricatorProjectWikiExplainController.php deleted file mode 100644 index 83ab9ba8c5..0000000000 --- a/src/applications/project/controller/PhabricatorProjectWikiExplainController.php +++ /dev/null @@ -1,31 +0,0 @@ -newDialog() - ->setTitle(pht('Wikis Have Changed')) - ->appendParagraph( - pht( - 'Wiki pages in Phriction have been upgraded to have more powerful '. - 'support for policies and access control. Each page can now have '. - 'its own policies.')) - ->appendParagraph( - pht( - 'This change obsoletes dedicated project wiki pages and '. - 'resolves a number of issues they had: you can now have '. - 'multiple wiki pages for a project, put them anywhere, give '. - 'them custom access controls, and rename them (or the project) '. - 'more easily and with fewer issues.')) - ->appendParagraph( - pht( - 'If you want to point users of this project to specific wiki '. - 'pages with relevant documentation or information, edit the project '. - 'description and add links. You can use the %s syntax to link to a '. - 'wiki page.', - phutil_tag('tt', array(), '[[ example/page/ ]]'))) - ->addCancelButton('/', pht('Okay')); - } - -}