2013-06-19 16:32:58 +03:00
|
|
|
{**
|
2014-01-25 14:44:57 +02:00
|
|
|
* Список пользователей
|
2014-11-09 16:19:58 +02:00
|
|
|
*
|
|
|
|
* @param array $users
|
|
|
|
* @param array $pagination
|
|
|
|
* @param boolean $useMore
|
|
|
|
* @param boolean $hideMore
|
|
|
|
* @param integer $searchCount
|
|
|
|
* @param string $textEmpty
|
2013-06-19 16:32:58 +03:00
|
|
|
*}
|
|
|
|
|
2014-11-09 16:19:58 +02:00
|
|
|
{if $smarty.local.users}
|
2015-02-10 03:41:16 +02:00
|
|
|
{$pagination = $smarty.local.pagination}
|
|
|
|
|
2014-11-09 16:19:58 +02:00
|
|
|
{* Заголовок *}
|
|
|
|
{if $smarty.local.searchCount}
|
2015-06-22 17:16:04 +03:00
|
|
|
<h3 class="h3">
|
|
|
|
{lang name='user.search.result_title' count=$smarty.local.searchCount plural=true}
|
|
|
|
</h3>
|
2014-11-09 16:19:58 +02:00
|
|
|
{/if}
|
2014-01-25 14:44:57 +02:00
|
|
|
|
2014-11-09 16:19:58 +02:00
|
|
|
{* Список пользователей *}
|
2015-06-22 17:16:04 +03:00
|
|
|
{component 'item' template='group'
|
|
|
|
classes = 'js-more-users-container'
|
|
|
|
items = {component 'user' template='list-loop' users=$smarty.local.users}}
|
2014-01-25 14:44:57 +02:00
|
|
|
|
2014-11-09 16:19:58 +02:00
|
|
|
{* Кнопка подгрузки *}
|
|
|
|
{if $smarty.local.useMore}
|
|
|
|
{if ! $smarty.local.hideMore}
|
2015-01-03 10:19:49 +02:00
|
|
|
{component 'more'
|
2014-11-09 16:19:58 +02:00
|
|
|
classes = 'js-more-search'
|
|
|
|
target = '.js-more-users-container'
|
2015-01-27 15:48:47 +02:00
|
|
|
ajaxParams = [ 'next_page' => 2 ]}
|
2014-11-09 16:19:58 +02:00
|
|
|
{/if}
|
|
|
|
{else}
|
2015-02-10 03:41:16 +02:00
|
|
|
{component 'pagination' total=+$pagination.iCountPage current=+$pagination.iCurrentPage url="{$pagination.sBaseUrl}/page__page__/"}
|
2014-11-09 16:19:58 +02:00
|
|
|
{/if}
|
2014-01-25 14:44:57 +02:00
|
|
|
{else}
|
2015-04-08 14:41:06 +03:00
|
|
|
{component 'blankslate' text=$smarty.local.textEmpty|default:{lang name='user.notices.empty'}}
|
2014-08-07 19:55:18 +03:00
|
|
|
{/if}
|