mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Display file name in <title> for easier browsing of code
Summary: Having the filename in the <title> will make it easier to browse through many many tabs of diffusion Test Plan: Open up a file or directory in diffusion and ensure that it shows only the file name. Reviewed By: tuomaspelkonen Reviewers: epriestley, tuomaspelkonen, jungejason Commenters: epriestley CC: epriestley, aizatto, tuomaspelkonen Differential Revision: 150
This commit is contained in:
parent
1c3e21dda1
commit
a8296c5a54
1 changed files with 3 additions and 1 deletions
|
@ -83,10 +83,12 @@ class DiffusionBrowseFileController extends DiffusionController {
|
|||
$nav = $this->buildSideNav('browse', true);
|
||||
$nav->appendChild($content);
|
||||
|
||||
$basename = basename($this->getDiffusionRequest()->getPath());
|
||||
|
||||
return $this->buildStandardPageResponse(
|
||||
$nav,
|
||||
array(
|
||||
'title' => 'Browse',
|
||||
'title' => $basename,
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue