1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00

Add a dialog explaining what happened to wiki pages

Summary: Ayep.

Test Plan: {F233319}

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D10845
This commit is contained in:
epriestley 2014-11-13 07:55:45 -08:00
parent 3d2e03d0e2
commit 0d47b8af26
5 changed files with 51 additions and 12 deletions

View file

@ -387,7 +387,7 @@ return array(
'rsrc/js/application/doorkeeper/behavior-doorkeeper-tag.js' => 'e5822781',
'rsrc/js/application/files/behavior-icon-composer.js' => '8ef9ab58',
'rsrc/js/application/files/behavior-launch-icon-composer.js' => '48086888',
'rsrc/js/application/herald/HeraldRuleEditor.js' => '3fc2c8f2',
'rsrc/js/application/herald/HeraldRuleEditor.js' => '335fd41f',
'rsrc/js/application/herald/PathTypeahead.js' => 'f7fc67ec',
'rsrc/js/application/herald/herald-rule-editor.js' => '7ebaeed3',
'rsrc/js/application/maniphest/behavior-batch-editor.js' => 'f588412e',
@ -537,7 +537,7 @@ return array(
'global-drag-and-drop-css' => '697324ad',
'harbormaster-css' => '49d64eb4',
'herald-css' => 'c544dd1c',
'herald-rule-editor' => '3fc2c8f2',
'herald-rule-editor' => '335fd41f',
'herald-test-css' => '778b008e',
'inline-comment-summary-css' => '8cfd34e8',
'javelin-aphlict' => '4a07e8e3',
@ -1025,6 +1025,15 @@ return array(
'javelin-install',
'javelin-typeahead-source',
),
'335fd41f' => array(
'multirow-row-manager',
'javelin-install',
'javelin-util',
'javelin-dom',
'javelin-stratcom',
'javelin-json',
'phabricator-prefab',
),
'357b6e9b' => array(
'javelin-behavior',
'javelin-stratcom',
@ -1070,15 +1079,6 @@ return array(
'javelin-stratcom',
'phabricator-tooltip',
),
'3fc2c8f2' => array(
'multirow-row-manager',
'javelin-install',
'javelin-util',
'javelin-dom',
'javelin-stratcom',
'javelin-json',
'phabricator-prefab',
),
'40a6a403' => array(
'javelin-install',
'javelin-dom',

View file

@ -2142,6 +2142,7 @@ phutil_register_library_map(array(
'PhabricatorProjectUIEventListener' => 'applications/project/events/PhabricatorProjectUIEventListener.php',
'PhabricatorProjectUpdateController' => 'applications/project/controller/PhabricatorProjectUpdateController.php',
'PhabricatorProjectWatchController' => 'applications/project/controller/PhabricatorProjectWatchController.php',
'PhabricatorProjectWikiExplainController' => 'applications/project/controller/PhabricatorProjectWikiExplainController.php',
'PhabricatorQuery' => 'infrastructure/query/PhabricatorQuery.php',
'PhabricatorRecaptchaConfigOptions' => 'applications/config/option/PhabricatorRecaptchaConfigOptions.php',
'PhabricatorRedirectController' => 'applications/base/controller/PhabricatorRedirectController.php',
@ -5264,6 +5265,7 @@ phutil_register_library_map(array(
'PhabricatorProjectUIEventListener' => 'PhabricatorEventListener',
'PhabricatorProjectUpdateController' => 'PhabricatorProjectController',
'PhabricatorProjectWatchController' => 'PhabricatorProjectController',
'PhabricatorProjectWikiExplainController' => 'PhabricatorProjectController',
'PhabricatorRecaptchaConfigOptions' => 'PhabricatorApplicationConfigOptions',
'PhabricatorRedirectController' => 'PhabricatorController',
'PhabricatorRefreshCSRFController' => 'PhabricatorAuthController',

View file

@ -83,7 +83,7 @@ final class PhabricatorProjectApplication extends PhabricatorApplication {
'history/(?P<id>[1-9]\d*)/' => 'PhabricatorProjectHistoryController',
'(?P<action>watch|unwatch)/(?P<id>[1-9]\d*)/'
=> 'PhabricatorProjectWatchController',
'wiki/' => 'PhabricatorProjectWikiExplainController',
),
'/tag/' => array(
'(?P<slug>[^/]+)/' => 'PhabricatorProjectProfileController',

View file

@ -261,6 +261,12 @@ final class PhabricatorProjectProfileController
}
}
$view->addAction(
id(new PhabricatorActionView())
->setIcon('fa-book grey')
->setName(pht('View Wiki'))
->setWorkflow(true)
->setHref('/project/wiki/'));
return $view;
}

View file

@ -0,0 +1,31 @@
<?php
final class PhabricatorProjectWikiExplainController
extends PhabricatorProjectController {
public function handleRequest(AphrontRequest $request) {
return $this->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'));
}
}