diff --git a/src/__celerity_resource_map__.php b/src/__celerity_resource_map__.php index ba7ff0c8af..b4c3c87315 100644 --- a/src/__celerity_resource_map__.php +++ b/src/__celerity_resource_map__.php @@ -16,6 +16,15 @@ celerity_register_resource_map(array( ), 'disk' => '/rsrc/css/aphront/attached-file-view.css', ), + 'aphront-contextbar-view-css' => + array( + 'uri' => '/res/3e2f3045/rsrc/css/aphront/context-bar.css', + 'type' => 'css', + 'requires' => + array( + ), + 'disk' => '/rsrc/css/aphront/context-bar.css', + ), 'aphront-crumbs-view-css' => array( 'uri' => '/res/9009e6bd/rsrc/css/aphront/crumbs-view.css', @@ -625,6 +634,17 @@ celerity_register_resource_map(array( ), 'disk' => '/rsrc/js/application/maniphest/behavior-transaction-preview.js', ), + 0 => + array( + 'uri' => '/res/1da00bfe/rsrc/js/javelin/lib/__tests__/URI.js', + 'type' => 'js', + 'requires' => + array( + 0 => 'javelin-uri', + 1 => 'javelin-php-serializer', + ), + 'disk' => '/rsrc/js/javelin/lib/__tests__/URI.js', + ), 'javelin-behavior-owners-path-editor' => array( 'uri' => '/res/9cf78ffc/rsrc/js/application/owners/owners-path-editor.js', @@ -649,6 +669,33 @@ celerity_register_resource_map(array( ), 'disk' => '/rsrc/js/application/core/behavior-keyboard-shortcuts.js', ), + 'javelin-behavior-phabricator-object-selector' => + array( + 'uri' => '/res/34f9a11e/rsrc/js/application/core/behavior-object-selector.js', + 'type' => 'js', + 'requires' => + array( + 0 => 'javelin-behavior', + 1 => 'javelin-dom', + 2 => 'javelin-request', + 3 => 'javelin-util', + 4 => 'javelin-stratcom', + ), + 'disk' => '/rsrc/js/application/core/behavior-object-selector.js', + ), + 'javelin-behavior-phabricator-watch-anchor' => + array( + 'uri' => '/res/bb6fa5b2/rsrc/js/application/core/behavior-watch-anchor.js', + 'type' => 'js', + 'requires' => + array( + 0 => 'javelin-behavior', + 1 => 'javelin-stratcom', + 2 => 'javelin-util', + 3 => 'javelin-dom', + ), + 'disk' => '/rsrc/js/application/core/behavior-watch-anchor.js', + ), 'javelin-behavior-phriction-document-preview' => array( 'uri' => '/res/f1665ecd/rsrc/js/application/phriction/phriction-document-preview.js', @@ -680,44 +727,6 @@ celerity_register_resource_map(array( ), 'disk' => '/rsrc/js/application/projects/projects-resource-editor.js', ), - 0 => - array( - 'uri' => '/res/1da00bfe/rsrc/js/javelin/lib/__tests__/URI.js', - 'type' => 'js', - 'requires' => - array( - 0 => 'javelin-uri', - 1 => 'javelin-php-serializer', - ), - 'disk' => '/rsrc/js/javelin/lib/__tests__/URI.js', - ), - 'javelin-behavior-phabricator-object-selector' => - array( - 'uri' => '/res/34f9a11e/rsrc/js/application/core/behavior-object-selector.js', - 'type' => 'js', - 'requires' => - array( - 0 => 'javelin-behavior', - 1 => 'javelin-dom', - 2 => 'javelin-request', - 3 => 'javelin-util', - 4 => 'javelin-stratcom', - ), - 'disk' => '/rsrc/js/application/core/behavior-object-selector.js', - ), - 'javelin-behavior-phabricator-watch-anchor' => - array( - 'uri' => '/res/bb6fa5b2/rsrc/js/application/core/behavior-watch-anchor.js', - 'type' => 'js', - 'requires' => - array( - 0 => 'javelin-behavior', - 1 => 'javelin-stratcom', - 2 => 'javelin-util', - 3 => 'javelin-dom', - ), - 'disk' => '/rsrc/js/application/core/behavior-watch-anchor.js', - ), 'javelin-behavior-refresh-csrf' => array( 'uri' => '/res/39aa51f7/rsrc/js/application/core/behavior-refresh-csrf.js', @@ -1209,7 +1218,7 @@ celerity_register_resource_map(array( ), 'phabricator-standard-page-view' => array( - 'uri' => '/res/e8238633/rsrc/css/application/base/standard-page-view.css', + 'uri' => '/res/cbc3bb69/rsrc/css/application/base/standard-page-view.css', 'type' => 'css', 'requires' => array( @@ -1265,6 +1274,30 @@ celerity_register_resource_map(array( 'uri' => '/res/pkg/03ef179e/diffusion.pkg.css', 'type' => 'css', ), + '124bba3b' => + array ( + 'name' => 'core.pkg.css', + 'symbols' => + array ( + 0 => 'phabricator-core-css', + 1 => 'phabricator-core-buttons-css', + 2 => 'phabricator-standard-page-view', + 3 => 'aphront-dialog-view-css', + 4 => 'aphront-form-view-css', + 5 => 'aphront-panel-view-css', + 6 => 'aphront-side-nav-view-css', + 7 => 'aphront-table-view-css', + 8 => 'aphront-crumbs-view-css', + 9 => 'aphront-tokenizer-control-css', + 10 => 'aphront-typeahead-control-css', + 11 => 'aphront-list-filter-view-css', + 12 => 'phabricator-directory-css', + 13 => 'phabricator-remarkup-css', + 14 => 'syntax-highlighting-css', + ), + 'uri' => '/res/pkg/124bba3b/core.pkg.css', + 'type' => 'css', + ), '25f94e94' => array ( 'name' => 'typeahead.pkg.js', @@ -1300,30 +1333,6 @@ celerity_register_resource_map(array( 'uri' => '/res/pkg/307df223/javelin.pkg.js', 'type' => 'js', ), - '3638143d' => - array ( - 'name' => 'core.pkg.css', - 'symbols' => - array ( - 0 => 'phabricator-core-css', - 1 => 'phabricator-core-buttons-css', - 2 => 'phabricator-standard-page-view', - 3 => 'aphront-dialog-view-css', - 4 => 'aphront-form-view-css', - 5 => 'aphront-panel-view-css', - 6 => 'aphront-side-nav-view-css', - 7 => 'aphront-table-view-css', - 8 => 'aphront-crumbs-view-css', - 9 => 'aphront-tokenizer-control-css', - 10 => 'aphront-typeahead-control-css', - 11 => 'aphront-list-filter-view-css', - 12 => 'phabricator-directory-css', - 13 => 'phabricator-remarkup-css', - 14 => 'syntax-highlighting-css', - ), - 'uri' => '/res/pkg/3638143d/core.pkg.css', - 'type' => 'css', - ), '3f2092d7' => array ( 'name' => 'differential.pkg.css', @@ -1374,15 +1383,15 @@ celerity_register_resource_map(array( ), 'reverse' => array ( - 'aphront-crumbs-view-css' => '3638143d', - 'aphront-dialog-view-css' => '3638143d', - 'aphront-form-view-css' => '3638143d', - 'aphront-list-filter-view-css' => '3638143d', - 'aphront-panel-view-css' => '3638143d', - 'aphront-side-nav-view-css' => '3638143d', - 'aphront-table-view-css' => '3638143d', - 'aphront-tokenizer-control-css' => '3638143d', - 'aphront-typeahead-control-css' => '3638143d', + 'aphront-crumbs-view-css' => '124bba3b', + 'aphront-dialog-view-css' => '124bba3b', + 'aphront-form-view-css' => '124bba3b', + 'aphront-list-filter-view-css' => '124bba3b', + 'aphront-panel-view-css' => '124bba3b', + 'aphront-side-nav-view-css' => '124bba3b', + 'aphront-table-view-css' => '124bba3b', + 'aphront-tokenizer-control-css' => '124bba3b', + 'aphront-typeahead-control-css' => '124bba3b', 'differential-changeset-view-css' => '3f2092d7', 'differential-core-view-css' => '3f2092d7', 'differential-revision-add-comment-css' => '3f2092d7', @@ -1419,13 +1428,13 @@ celerity_register_resource_map(array( 'javelin-util' => '307df223', 'javelin-vector' => '307df223', 'javelin-workflow' => 'd0713563', - 'phabricator-core-buttons-css' => '3638143d', - 'phabricator-core-css' => '3638143d', - 'phabricator-directory-css' => '3638143d', + 'phabricator-core-buttons-css' => '124bba3b', + 'phabricator-core-css' => '124bba3b', + 'phabricator-directory-css' => '124bba3b', 'phabricator-keyboard-shortcut' => 'd0713563', 'phabricator-keyboard-shortcut-manager' => 'd0713563', - 'phabricator-remarkup-css' => '3638143d', - 'phabricator-standard-page-view' => '3638143d', - 'syntax-highlighting-css' => '3638143d', + 'phabricator-remarkup-css' => '124bba3b', + 'phabricator-standard-page-view' => '124bba3b', + 'syntax-highlighting-css' => '124bba3b', ), )); diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 632acb085b..17f1cd4339 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -15,6 +15,7 @@ phutil_register_library_map(array( 'AphrontApplicationConfiguration' => 'aphront/applicationconfiguration', 'AphrontAttachedFileView' => 'view/control/attachedfile', 'AphrontCSRFException' => 'aphront/exception/csrf', + 'AphrontContextBarView' => 'view/layout/contextbar', 'AphrontController' => 'aphront/controller', 'AphrontCrumbsView' => 'view/layout/crumbs', 'AphrontDatabaseConnection' => 'storage/connection/base', @@ -658,6 +659,7 @@ phutil_register_library_map(array( 'AphrontAjaxResponse' => 'AphrontResponse', 'AphrontAttachedFileView' => 'AphrontView', 'AphrontCSRFException' => 'AphrontException', + 'AphrontContextBarView' => 'AphrontView', 'AphrontCrumbsView' => 'AphrontView', 'AphrontDefaultApplicationConfiguration' => 'AphrontApplicationConfiguration', 'AphrontDefaultApplicationController' => 'AphrontController', diff --git a/src/applications/maniphest/controller/taskdetail/ManiphestTaskDetailController.php b/src/applications/maniphest/controller/taskdetail/ManiphestTaskDetailController.php index d605bf9d56..ca713ed339 100644 --- a/src/applications/maniphest/controller/taskdetail/ManiphestTaskDetailController.php +++ b/src/applications/maniphest/controller/taskdetail/ManiphestTaskDetailController.php @@ -188,18 +188,18 @@ class ManiphestTaskDetailController extends ManiphestController { implode("\n", $table). ''; - $create_new_button = ''; + $context_bar = null; if ($request->getStr('workflow') == 'create') { - $create_new_button = - '
'; + $context_bar = new AphrontContextBarView(); + $context_bar->addButton( + phutil_render_tag( + 'a', + array( + 'href' => '/maniphest/task/create/?template='.$task->getID(), + 'class' => 'green button', + ), + 'Create Another Task')); + $context_bar->appendChild('New task created.'); } $actions = array(); @@ -241,7 +241,6 @@ class ManiphestTaskDetailController extends ManiphestController { '