1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 13:52:40 +01:00

Fix for showing an unregistered author name in the tooltip of diffusion revision link

Summary:
When showing contents of a file with the blame mode enabled, tooltips pops out
when the mouse hovers over previous commit linkes on left side. The last part of the
tooltips is the author's name. If an author is unregistered, the name becomes
<span>name</span>.

{F147724}

This doesn't happen if the author is registered.

Test Plan:
Check tooltips after making the change.
{F147725}

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D8869
This commit is contained in:
Kyle Jao 2014-04-26 12:51:47 -07:00 committed by epriestley
parent 88ae246593
commit e8c6c81b6e

View file

@ -538,11 +538,7 @@ final class DiffusionBrowseFileController extends DiffusionBrowseController {
if ($author_phid && $handles[$author_phid]) {
$author_link = $handles[$author_phid]->renderLink();
} else {
$author_link = phutil_tag(
'span',
array(
),
$blame['author']);
$author_link = $blame['author'];
}
$display_line['author'] = $author_link;