From 7408483c2f02d955b07b36c278f21721dfe72e05 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Tue, 11 Jul 2017 14:33:17 -0700 Subject: [PATCH] Hide Pager border if no pager exists Summary: I guess we have this magical method that tells me if a pager is coming down the render pipe. Huzzah. Test Plan: Test Branches page in Diffusion, see no pager border. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D18202 --- src/view/phui/PHUIObjectBoxView.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/view/phui/PHUIObjectBoxView.php b/src/view/phui/PHUIObjectBoxView.php index 26044ef3a0..0089e8e26e 100644 --- a/src/view/phui/PHUIObjectBoxView.php +++ b/src/view/phui/PHUIObjectBoxView.php @@ -302,7 +302,9 @@ final class PHUIObjectBoxView extends AphrontTagView { $pager = null; if ($this->pager) { - $pager = phutil_tag_div('phui-object-box-pager', $this->pager); + if ($this->pager->willShowPagingControls()) { + $pager = phutil_tag_div('phui-object-box-pager', $this->pager); + } } $content = array(