From 03e03acf1c41170b3b9c8f715cc53f8c096b911e Mon Sep 17 00:00:00 2001 From: Denis Shakhov Date: Wed, 16 Jul 2014 23:30:25 +0700 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D1=81=D0=BE?= =?UTF-8?q?=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BE=20=D0=BF?= =?UTF-8?q?=D1=83=D1=81=D1=82=D0=BE=D0=BC=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA?= =?UTF-8?q?=D0=B5=20=D0=B2=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=20user=5Flist=5Fadd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/user_list_add/user_list_add.tpl | 1 + .../user_list_small/user_list_small.tpl | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/application/frontend/skin/developer/components/user_list_add/user_list_add.tpl b/application/frontend/skin/developer/components/user_list_add/user_list_add.tpl index d6287303..1bafb102 100644 --- a/application/frontend/skin/developer/components/user_list_add/user_list_add.tpl +++ b/application/frontend/skin/developer/components/user_list_add/user_list_add.tpl @@ -33,6 +33,7 @@ {* Список пользователей *} {* TODO: Изменить порядок вывода - сначало новые *} {include 'components/user_list_small/user_list_small.tpl' + bHideableEmptyAlert = true aUserList = $aUserList bUserListSmallShowActions = true bUserListDisplay = !! $aUserList diff --git a/application/frontend/skin/developer/components/user_list_small/user_list_small.tpl b/application/frontend/skin/developer/components/user_list_small/user_list_small.tpl index f9352ed9..96a0c95a 100644 --- a/application/frontend/skin/developer/components/user_list_small/user_list_small.tpl +++ b/application/frontend/skin/developer/components/user_list_small/user_list_small.tpl @@ -7,6 +7,15 @@

{$sUserListSmallTitle}

{/if} +{* Уведомление о пустом списке *} +{if ! $aUserList || $smarty.local.bHideableEmptyAlert} + {include 'components/alert/alert.tpl' + mAlerts = $aLang.common.empty + sMods = 'empty' + sClasses = 'js-user-list-small-empty' + bVisible = ! $aUserList} +{/if} + {* Список пользователей *} {if $aUserList || ! $bUserListDisplay|default:true} -{/if} - -{* Уведомление о пустом списке *} -{if ! $aUserList} - {include 'components/alert/alert.tpl' - mAlerts = $aLang.common.empty - sMods = 'empty' - sClasses = 'js-user-list-small-empty' - sAttributes = ( ! $aUserList ) ? '' : 'style="display: none"'} {/if} \ No newline at end of file