1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00

Display full path in titles of dirs in tree

Summary: It's confusing with longer trees.

Test Plan: Displayed it.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3367
This commit is contained in:
vrana 2012-08-22 14:58:52 -07:00
parent d9f241a9ca
commit 0c7b9e14a9

View file

@ -1038,9 +1038,11 @@ final class DifferentialRevisionViewController extends DifferentialController {
$href = null;
if ($data) {
$href = '#'.$data->getAnchorName();
$title = $name;
$icon = 'phabricator-filetree-icon-file';
} else {
$name .= '/';
$title = $path->getFullPath().'/';
$icon = 'phabricator-filetree-icon-dir';
}
@ -1063,7 +1065,7 @@ final class DifferentialRevisionViewController extends DifferentialController {
array(
'href' => $href,
'style' => $style,
'title' => $name,
'title' => $title,
'class' => 'phabricator-filetree-item',
),
$icon.$name_element);