Skip to content

Instantly share code, notes, and snippets.

@auduny
Created November 22, 2012 12:34
Show Gist options
  • Save auduny/4130964 to your computer and use it in GitHub Desktop.
Save auduny/4130964 to your computer and use it in GitHub Desktop.
--- original/phabricator/src/applications/maniphest/controller/ManiphestTaskEditController.php 2012-11-22 10:02:41.000000000 +0100
+++ vgnett/phabricator/src/applications/maniphest/controller/ManiphestTaskEditController.php 2012-11-22 13:07:01.000000000 +0100
@@ -1,5 +1,21 @@
<?php
+/*
+ * Copyright 2012 Facebook, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
/**
* @group maniphest
*/
@@ -538,12 +554,17 @@
$page_objects = array();
}
- return $this->buildStandardPageResponse(
+ $nav = $this->buildBaseSideNav();
+ $nav->selectFilter(null);
+ $nav->appendChild(
array(
$error_view,
$panel,
$description_preview_panel
- ),
+ ));
+
+ return $this->buildStandardPageResponse(
+ $nav,
array(
'title' => $header_name,
'pageObjects' => $page_objects,
--- original/phabricator/src/applications/maniphest/controller/ManiphestTaskDetailController.php 2012-11-22 10:02:41.000000000 +0100
+++ vgnett/phabricator/src/applications/maniphest/controller/ManiphestTaskDetailController.php 2012-11-22 13:07:00.000000000 +0100
@@ -1,5 +1,21 @@
<?php
+/*
+ * Copyright 2012 Facebook, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
/**
* @group maniphest
*/
@@ -496,14 +512,20 @@
PhabricatorFeedStoryNotification::updateObjectNotificationViews(
$user, $task->getPHID());
- return $this->buildStandardPageResponse(
+ $nav = $this->buildBaseSideNav();
+ $nav->selectFilter(null);
+ $nav->appendChild(
array(
$context_bar,
$headsup_panel,
$transaction_view,
$comment_panel,
$preview_panel,
- ),
+ ));
+
+ #return $this->buildApplicationPage(
+ return $this->buildStandardPageResponse(
+ $nav,
array(
'title' => 'T'.$task->getID().' '.$task->getTitle(),
'pageObjects' => array($task->getPHID()),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment