mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 21:32:43 +01:00
Fix Diffusion blame columns when disabling blame
Summary: Fixes T10385. Two issues: - `$show_blame` and `$show_color` were improperly swapped. - Code to hide these columns got dropped somewhere, probably in my recent-ish rewrite. Test Plan: - Showed/hid blame. - Showed/hid colors. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10385 Differential Revision: https://secure.phabricator.com/D15528
This commit is contained in:
parent
601aaa5a86
commit
060f96079d
1 changed files with 22 additions and 20 deletions
|
@ -995,8 +995,8 @@ final class DiffusionBrowseController extends DiffusionController {
|
|||
array $lines,
|
||||
array $blame_list,
|
||||
array $blame_commits,
|
||||
$show_color,
|
||||
$show_blame) {
|
||||
$show_blame,
|
||||
$show_color) {
|
||||
|
||||
$request = $this->getRequest();
|
||||
$viewer = $this->getViewer();
|
||||
|
@ -1233,27 +1233,29 @@ final class DiffusionBrowseController extends DiffusionController {
|
|||
"\xC2\xAB");
|
||||
}
|
||||
|
||||
$row[] = phutil_tag(
|
||||
'th',
|
||||
array(
|
||||
'class' => 'diffusion-blame-link',
|
||||
),
|
||||
$before_link);
|
||||
if ($show_blame) {
|
||||
$row[] = phutil_tag(
|
||||
'th',
|
||||
array(
|
||||
'class' => 'diffusion-blame-link',
|
||||
),
|
||||
$before_link);
|
||||
|
||||
$object_links = array();
|
||||
$object_links[] = $commit_link;
|
||||
if ($revision_link) {
|
||||
$object_links[] = phutil_tag('span', array(), '/');
|
||||
$object_links[] = $revision_link;
|
||||
$object_links = array();
|
||||
$object_links[] = $commit_link;
|
||||
if ($revision_link) {
|
||||
$object_links[] = phutil_tag('span', array(), '/');
|
||||
$object_links[] = $revision_link;
|
||||
}
|
||||
|
||||
$row[] = phutil_tag(
|
||||
'th',
|
||||
array(
|
||||
'class' => 'diffusion-rev-link',
|
||||
),
|
||||
$object_links);
|
||||
}
|
||||
|
||||
$row[] = phutil_tag(
|
||||
'th',
|
||||
array(
|
||||
'class' => 'diffusion-rev-link',
|
||||
),
|
||||
$object_links);
|
||||
|
||||
$line_link = phutil_tag(
|
||||
'a',
|
||||
array(
|
||||
|
|
Loading…
Reference in a new issue