#set( $users = $action.pageResponse.results )
#set( $usersExist = $users && !$users.isEmpty() )
#if( $usersExist)
#else
$soyTemplateRendererHelper.getRenderedTemplateHtml("com.atlassian.auiplugin:aui-experimental-soy-templates", "aui.message.info.soy", {"content" : $action.getText('no.users.found').toString()})
#end
#if ($usersExist)
#set ($paginationUrlHtml = "userpicker.action?searchTerm=$!htmlUtil.urlEncode($!{searchTerm})&userSearch=$userSearch&groupTerm=$!htmlUtil.urlEncode($!{groupTerm})&onPopupSubmit=$!htmlUtil.urlEncode($!{onPopupSubmit})&")
#set ($currentIndex = $action.pageResponse.pageRequest.start)
#if ($action.showUnlicensedUsers)
#set ($paginationUrlHtml = "${paginationUrlHtml}showUnlicensedUsers=$action.showUnlicensedUsers&")
#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