From: Marcel Werk Date: Mon, 23 May 2016 10:04:20 +0000 (+0200) Subject: Added users online list pagination X-Git-Tag: 3.0.0_Beta_1~1654 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f8114c0641f8816127cceac0c71243318dd3a3c;p=GitHub%2FWoltLab%2FWCF.git Added users online list pagination --- 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}