Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14411506
D10845.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
6 KB
Referenced Files
None
Subscribers
None
D10845.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -387,7 +387,7 @@
'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 @@
'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 @@
'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 @@
'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',
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -2142,6 +2142,7 @@
'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 @@
'PhabricatorProjectUIEventListener' => 'PhabricatorEventListener',
'PhabricatorProjectUpdateController' => 'PhabricatorProjectController',
'PhabricatorProjectWatchController' => 'PhabricatorProjectController',
+ 'PhabricatorProjectWikiExplainController' => 'PhabricatorProjectController',
'PhabricatorRecaptchaConfigOptions' => 'PhabricatorApplicationConfigOptions',
'PhabricatorRedirectController' => 'PhabricatorController',
'PhabricatorRefreshCSRFController' => 'PhabricatorAuthController',
diff --git a/src/applications/project/application/PhabricatorProjectApplication.php b/src/applications/project/application/PhabricatorProjectApplication.php
--- a/src/applications/project/application/PhabricatorProjectApplication.php
+++ b/src/applications/project/application/PhabricatorProjectApplication.php
@@ -83,7 +83,7 @@
'history/(?P<id>[1-9]\d*)/' => 'PhabricatorProjectHistoryController',
'(?P<action>watch|unwatch)/(?P<id>[1-9]\d*)/'
=> 'PhabricatorProjectWatchController',
-
+ 'wiki/' => 'PhabricatorProjectWikiExplainController',
),
'/tag/' => array(
'(?P<slug>[^/]+)/' => 'PhabricatorProjectProfileController',
diff --git a/src/applications/project/controller/PhabricatorProjectProfileController.php b/src/applications/project/controller/PhabricatorProjectProfileController.php
--- a/src/applications/project/controller/PhabricatorProjectProfileController.php
+++ b/src/applications/project/controller/PhabricatorProjectProfileController.php
@@ -261,6 +261,12 @@
}
}
+ $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
new file mode 100644
--- /dev/null
+++ b/src/applications/project/controller/PhabricatorProjectWikiExplainController.php
@@ -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'));
+ }
+
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 10:57 AM (10 h, 22 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6925986
Default Alt Text
D10845.diff (6 KB)
Attached To
Mode
D10845: Add a dialog explaining what happened to wiki pages
Attached
Detach File
Event Timeline
Log In to Comment