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:
@@ -1038,9 +1038,11 @@ final class DifferentialRevisionViewController extends DifferentialController {
|
|||||||
$href = null;
|
$href = null;
|
||||||
if ($data) {
|
if ($data) {
|
||||||
$href = '#'.$data->getAnchorName();
|
$href = '#'.$data->getAnchorName();
|
||||||
|
$title = $name;
|
||||||
$icon = 'phabricator-filetree-icon-file';
|
$icon = 'phabricator-filetree-icon-file';
|
||||||
} else {
|
} else {
|
||||||
$name .= '/';
|
$name .= '/';
|
||||||
|
$title = $path->getFullPath().'/';
|
||||||
$icon = 'phabricator-filetree-icon-dir';
|
$icon = 'phabricator-filetree-icon-dir';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1063,7 +1065,7 @@ final class DifferentialRevisionViewController extends DifferentialController {
|
|||||||
array(
|
array(
|
||||||
'href' => $href,
|
'href' => $href,
|
||||||
'style' => $style,
|
'style' => $style,
|
||||||
'title' => $name,
|
'title' => $title,
|
||||||
'class' => 'phabricator-filetree-item',
|
'class' => 'phabricator-filetree-item',
|
||||||
),
|
),
|
||||||
$icon.$name_element);
|
$icon.$name_element);
|
||||||
|
|||||||
Reference in New Issue
Block a user