Skip to content

Commit 7408483

Browse files
author
Chad Little
committedJul 11, 2017
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
1 parent a6b550b commit 7408483

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/view/phui/PHUIObjectBoxView.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ protected function getTagContent() {
302302

303303
$pager = null;
304304
if ($this->pager) {
305-
$pager = phutil_tag_div('phui-object-box-pager', $this->pager);
305+
if ($this->pager->willShowPagingControls()) {
306+
$pager = phutil_tag_div('phui-object-box-pager', $this->pager);
307+
}
306308
}
307309

308310
$content = array(

0 commit comments

Comments
 (0)
Failed to load comments.