From 816b086f1b45c408a311035f1b3796e2f8e513fe Mon Sep 17 00:00:00 2001 From: Chiffa Date: Thu, 26 Jan 2017 19:35:10 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B0=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/components/comment/comment.tpl | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/application/frontend/components/comment/comment.tpl b/application/frontend/components/comment/comment.tpl index e89fd3b5..4e3580e0 100644 --- a/application/frontend/components/comment/comment.tpl +++ b/application/frontend/components/comment/comment.tpl @@ -176,29 +176,33 @@ {* Ответить *} {if $oUserCurrent && ! $isDeleted && $showReply|default:true} -
  • - {$aLang.comments.comment.reply} -
  • + {component 'comment.actions-item' + link=[ classes => 'js-comment-reply', attributes => [ 'data-id' => $commentId ] ] + text=$aLang.comments.comment.reply} {/if} {* Сворачивание *} -
  • - {$aLang.comments.folding.fold} -
  • + {component 'comment.actions-item' + classes="{$component}-fold js-comment-fold open" + attributes=[ 'data-id' => $commentId ] + link=[ ] + text=$aLang.comments.folding.fold} {* Редактировать *} {if $useEdit && $oUserCurrent && $comment->IsAllowEdit()} -
  • - - {$aLang.common.edit} + {capture assign="ls_comment_edit_text"} + {$aLang.common.edit} - {* Отображение времени отведенного для редактирования *} - {* Используется плагин jquery.timers *} - {if $comment->getEditTimeRemaining()} - (...) - {/if} - -
  • + {* Отображение времени отведенного для редактирования *} + {* Используется плагин jquery.timers *} + {if $comment->getEditTimeRemaining()} + (...) + {/if} + {/capture} + + {component 'comment.actions-item' + link=[ classes => 'js-comment-update', attributes => [ 'data-id' => $commentId ] ] + text=$ls_comment_edit_text} {/if} {* Удалить *}