1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 00:32:42 +01:00

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
This commit is contained in:
Chad Little 2017-07-11 14:33:17 -07:00
parent a6b550ba03
commit 7408483c2f

View file

@ -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(