#set($users = $action.pageResponse.results)
#if($stringUtils.isNotEmpty($action.usernameTerm) || $stringUtils.isNotEmpty($action.fullnameTerm) || $stringUtils.isNotEmpty($action.emailTerm) || $stringUtils.isNotEmpty($action.searchTerm))
#if( $users.isEmpty())
$action.getText("there.are.no.users")
#else
#set ($paginationPrefixUrlHtml="?searchTerm=$!{action.searchTerm}&usernameTerm=$!{action.usernameTerm}&fullnameTerm=$!{action.fullnameTerm}&emailTerm=$!{action.emailTerm}&")
#set ($paginationUrlHtml="${paginationPrefixUrlHtml}resultsPerPage=$!{action.resultsPerPage}&")
#set ($currentIndex = $action.pageResponse.pageRequest.start)
$action.getText("user.name") |
$action.getText("username.name") |
$action.getText("email.name.withdash") |
#foreach ($user in $action.pageResponse.results.iterator())
#set($username = $user.name)
#set($userProfileLinkHtml = "viewuser.action?username=$!generalUtil.doubleUrlEncode($user.name)")
#set($userDisabled = $userAccessor.isDeactivated($user))
$!user.fullName #if ($userDisabled)$i18n.getText("deactivated.users.label")#end
|
$username |
#if ($user.email)$user.email#end |
#end
#requireResource("confluence.web.resources:pagination-styles")
#requireResource("com.atlassian.auiplugin:aui-navigation")
#set ($limit = $action.pageResponse.pageRequest.limit)
#set ($nextStartIndex = $currentIndex + $limit)
## round up
#set ($currentPageNum = ($currentIndex + $limit - 1)/$limit + 1)
#set ($prevPageIndex = $currentPageNum - 2)
#set ($previousStartIndex = $prevPageIndex * $limit)
#if( $action.pageResponse.size() > 0 || $currentIndex > 0)
#end
#end
#end