mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Use the task title as the page title for Maniphest task detail views.
Summary: Instead of "Create Task", show the task's ID and name in the page title. Test Plan: Looked at a task. Also double-cheked XSS junk and plugged a hole. Reviewers: cpiro CC: Differential Revision: 27
This commit is contained in:
parent
5d586f149d
commit
91fb157253
4 changed files with 4 additions and 3 deletions
|
@ -234,7 +234,7 @@ class ManiphestTaskDetailController extends ManiphestController {
|
|||
$comment_panel,
|
||||
),
|
||||
array(
|
||||
'title' => 'Create Task',
|
||||
'title' => 'T'.$task->getID().' '.$task->getTitle(),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,6 @@ class ManiphestTaskListController extends ManiphestController {
|
|||
'alltriage' => 'Need Triage',
|
||||
'unassigned' => 'Unassigned',
|
||||
'allopen' => 'All Open',
|
||||
|
||||
);
|
||||
|
||||
if (empty($views[$this->view])) {
|
||||
|
|
|
@ -53,7 +53,7 @@ class AphrontPageView extends AphrontView {
|
|||
|
||||
$this->willRenderPage();
|
||||
|
||||
$title = $this->getTitle();
|
||||
$title = phutil_escape_html($this->getTitle());
|
||||
$head = $this->getHead();
|
||||
$body = $this->getBody();
|
||||
$tail = $this->getTail();
|
||||
|
|
|
@ -8,5 +8,7 @@
|
|||
|
||||
phutil_require_module('phabricator', 'view/base');
|
||||
|
||||
phutil_require_module('phutil', 'markup');
|
||||
|
||||
|
||||
phutil_require_source('AphrontPageView.php');
|
||||
|
|
Loading…
Reference in a new issue