From 0f8114c0641f8816127cceac0c71243318dd3a3c Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 23 May 2016 12:04:20 +0200 Subject: [PATCH] Added users online list pagination --- CHANGELOG.md | 1 + com.woltlab.wcf/templates/usersOnlineList.tpl | 22 ++++++++++++++++--- .../lib/page/UsersOnlineListPage.class.php | 10 ++++++--- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25987b3d1d..46fcc0725d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ * `\wcf\system\condition\MultiPageControllerCondition` has been replaced by `wcf\system\condition\page\MultiPageCondition` * Added special CSS class to cookie policy notice (`cookiePolicyNotice`) * Improved confirmation messages (`...`) +* Added users online list pagination #### CMS diff --git a/com.woltlab.wcf/templates/usersOnlineList.tpl b/com.woltlab.wcf/templates/usersOnlineList.tpl index 8688e758e0..7433466544 100644 --- a/com.woltlab.wcf/templates/usersOnlineList.tpl +++ b/com.woltlab.wcf/templates/usersOnlineList.tpl @@ -1,8 +1,10 @@ +{capture assign='pageTitle'}{$__wcf->getActivePage()->getTitle()}{if $pageNo > 1} - {lang}wcf.page.pageNo{/lang}{/if}{/capture} + {capture assign='headContent'} {if USERS_ONLINE_PAGE_REFRESH > 0} - + {/if} {/capture} @@ -68,6 +70,14 @@ {include file='header'} +{hascontent} +
+ {content} + {pages print=true assign=pagesLinks controller='UsersOnlineList' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"} + {/content} +
+{/hascontent} + {assign var=usersOnlineList value=''} {assign var=usersOnline value=0} {assign var=robotsOnlineList value=''} @@ -183,7 +193,7 @@

{lang}wcf.user.usersOnline.guests{/lang} {#$guestsOnline}

-
    +
      {@$guestsOnlineList}
@@ -193,13 +203,19 @@

{lang}wcf.user.usersOnline.robots{/lang} {#$robotsOnline}

-
    +
      {@$robotsOnlineList}
{/if}