LJ.UI.registerTemplate('templates-CleanHtml-Repost', "<span class=\"lj-button repost-button {{if $data.reposted}}repost-button-active{{/if}} lj-button-light\"><span class=\"lj-button-wrapper\"> <span class=\"lj-button-link\"> <span class=\"lj-button-a\"> <span title=\'Сделать репост этой записи в моём журнале\' data-href=\"{{html $data.url}}\" class=\"lj-button-b\"><span class=\"lj-button-icon {{if $data.single}}lj-button-icon-sinlge{{/if}}\"></span> Репост</span> <span title=\'Удалить репост\' data-href=\"{{html $data.url}}\" class=\"lj-button-b lj-button-b-reposted\"><span class=\"lj-button-icon {{if $data.single}}lj-button-icon-sinlge{{/if}}\"></span> Репост сделан</span> <span title=\'Уже перепостили\' class=\"lj-button-c {{if !($data.count)}}empty{{/if}}\"> <span class=\"lj-button-arrow\"><span class=\"lj-button-arrow-bg\"></span></span> <span class=\"lj-like-item-count\">{{html $data.count}}</span> </span> </span> </span> </span></span>", 'JQuery.stat');

LJ.UI.registerTemplate('templates-Widgets-photouploader-uploadedItem', "<li style=\"display: none;\" class=\"pics-item-{{html $data.type}}\"> <img src=\"{{html $data.photo_src}}\" alt=\"\" /><i class=\"i-thumb-close\"></i> </li>", 'JQuery.stat');

LJ.UI.registerTemplate('templates-CleanHtml-PaidRepost', "<span class=\"lj-button paidrepost-button {{if $data.reposted}}paidrepost-button-active{{/if}} lj-button-light\"><span class=\"lj-button-wrapper\"> <span class=\"lj-button-link\"> <span class=\"lj-button-a\"> <span title=\'{{if $data.owner}}Бюджет на репосты:{{html $data.budget}}жетонов{{else}}Репост{{/if}}\' data-href=\"{{html $data.url}}\" class=\"lj-button-b\"><span class=\"lj-button-icon {{if $data.single}}lj-button-icon-sinlge{{/if}}\"></span> <span class=\"paidrepost-button-label\">Репост</span> <span class=\"paidrepost-button-cost\">{{if !($data.owner)}}{{html $data.cost}}{{/if}}</span> </span> <span data-href=\"{{html $data.url}}\" title=\'{{if $data.owner}}Бюджет на репосты:{{html $data.budget}}жетонов{{else}}Удалить репост{{/if}}\' class=\"lj-button-b lj-button-b-reposted\"><span class=\"lj-button-icon {{if $data.single}}lj-button-icon-sinlge{{/if}}\"></span> <span class=\"paidrepost-button-label\">Репост уже сделан</span><span class=\"paidrepost-button-cost\">{{if !($data.owner)}}{{html $data.cost}}{{/if}}</span> </span> <span title=\'Repost counter\' class=\"lj-button-c {{if !($data.count)}}empty{{/if}}\"> <span class=\"lj-button-arrow\"><span class=\"lj-button-arrow-bg\"></span></span> <span class=\"lj-like-item-count\">{{html $data.count}}</span> </span> </span> </span> </span></span>", 'JQuery.stat');

LJ.UI.registerTemplate('templates-CleanHtml-reposted', "{{if $data.content}} {{each ($value.users || $data.users)}}{{if !((!$index) && !($value.dropComma || $data.dropComma))}}, {{/if}}<a href=\"{{html ($value.url || $data.url)}}\">{{html ($value.user || $data.user)}}</a>{{/each}} {{else}} <div class=\"b-reposted-popup\"> <div class=\"b-reposted-popup-header\">Перепостили</div> <div class=\"b-reposted-popup-content b-reposted-popup-load\"></div> <div class=\"b-reposted-popup-footer\"><a href=\"javascript:void(0);\">ещё...</a></div> </div> {{/if}}", 'JQuery.stat');

LJ.UI.registerTemplate('templates-Form-UpicSelect', "{{if !($data.renderpics)}} <div class=\" b-userpicselector-inner {{if $data.hasdefaultuserpic}} {{if $data.hasuserpics < 6}} b-userpicselector-tiny {{if $data.hasuserpics < 5}} b-userpicselector-tiny4 {{/if}} {{if $data.hasuserpics < 4}} b-userpicselector-tiny3 {{/if}} {{/if}} {{else}} {{if $data.hasuserpics < 5}} b-userpicselector-tiny {{/if}} {{if $data.hasuserpics < 4}} b-userpicselector-tiny b-userpicselector-tiny4 {{/if}} {{/if}} \"> <div class=\"b-userpicselector-wrapper\"> <ul class=\"b-userpicselector-items\"> {{if !($data.hasdefaultuserpic)}} <li class=\"b-userpicselector-item b-userpicselector-item-nodefault\" data-name=\"\"><label for=\"u{{html $data.id}}\"><span class=\"b-userpicselector-pic\" data-pic=\"url({{html $data.statprefix}}/img/userpics/userpic-user.png?v=15821)\" title=\"no default\">&nbsp;</span><span class=\"b-pseudo\">default userpic</span> </label> </li> {{/if}} {{/if}} {{if $data.renderpics}} {{each ($value.userpics || $data.userpics)}} <li class=\" b-userpicselector-item {{if ($value.active || $data.active)}} b-userpicselector-active {{/if}}\" data-name=\"{{html ($value.keyword || $data.keyword)}}\"><label for=\"u{{html ($value.id || $data.id)}}\"><span class=\"b-userpicselector-pic\" data-pic=\"url({{html ($value.src || $data.src)}})\" title=\"{{html ($value.title || $data.title)}}\">&nbsp;</span><span class=\"b-pseudo\">{{html ($value.title || $data.title)}}</span></label> </li> {{/each}} {{/if}} {{if !($data.renderpics)}} </ul> </div> <div class=\"b-userpicselector-controls\"> {{if $data.hasuserpics >= 6}} <input type=\"search\" id=\"\" placeholder=\"поиск по ключевым словам\" class=\"b-userpicselector-keywords\" tabindex=\"31\"> {{/if}} <a href=\"{{html $data.siteroot}}/editpics.bml\" class=\"b-userpicselector-showall\" target=\"_blank\">Управление юзерпиками</a> <a href=\"javascript:void(0)\" class=\"b-userpicselector-close b-pseudo\" tabindex=\"32\">Закрыть</a> </div> </div> {{/if}}", 'JQuery.stat');

LJ.UI.registerTemplate('templates-Widgets-photouploader-insertedItem', "<li class=\"b-popup-pics-inserted pics-item-{{html $data.type}}\"> <label for=\"photo_cb_{{html $data.photo_id}}\"><img src=\"{{html $data.photo_url}}\" alt=\"\" /></label> <i class=\"i-thumb-close\"></i> <input type=\"checkbox\" id=\"photo_cb_{{html $data.photo_id}}\" class=\"b-pics-list-albums-selection\" {{html $data.checked}} /> </li>", 'JQuery.stat');

LJ.UI.registerTemplate('templates-Widgets-photouploader-photouploader', "<div class=\"b-popup b-popup-pics\" style=\"display: none;\"> <div class=\"b-popup-outer\"> <div class=\"b-popup-inner\"> <div class=\"popup-inner\"> <div class=\"b-popup-state-container{{if $data.showLinkFields}} b-popup-pics-links{{/if}}\"> <div class=\"b-popup-pics-header\"> <h2 class=\"b-popup-pics-upload-header current-state\"><span class=\"b-pics-tab\">Загрузить новое фото</span></h2> <h2 class=\"b-popup-pics-add-header\"><span class=\"b-pics-tab\">Добавить из альбома</span></h2> <h2 class=\"b-popup-pics-list-header\"><span class=\"b-pics-tab\">Выбрать из альбома</span></h2> <h2 class=\"b-popup-pics-paste-header\"><span class=\"b-pics-tab switch-tab\">Указать URL</span></h2> <h2 class=\"b-popup-pics-dropbox\"><span class=\"b-pics-tab-dropbox\">Dropbox</span></h2> <div class=\"b-pics-header-select-album\"><label>Выберите альбом:</label> {{html $data.albumList}} </div> </div> <form method=\"post\" class=\"b-pics-data-form\" style=\"display: block\"> <div class=\"b-pics-upload-wrapper\"> <div class=\"click-upload b-btn\"> <span class=\"b-pics-btn-upload\">Загрузить</span> <b class=\"b-pics-processing-spinner\">...</b> <div>Нажмите здесь, <br> чтобы загрузить <br> новые фото</div> </div> <div class=\"b-pics-upload\"> <p class=\"b-pics-upload-total\">Загрузка изображения... <span class=\"b-pics-current-image\"></span>/<span class=\"b-pics-total-images\"></span></p> <p class=\"b-pics-upload-filename\"></p> <div class=\"b-pics-upload-progress-bar\"> <div class=\"b-pics-upload-progress-bar-inner\"></div> </div> </div> <div class=\"i-bubble b-bubble-lite b-bubble-noarrow\"> Чтобы загрузить сразу несколько изображений, удерживайте клавишу \"Ctrl\" или\"Shift\". </div> </div> <div class=\"b-pics-paste-url\"> <div class=\"b-pics-preview-wrapper\"> <span class=\"b-pics-preview-pic\"> </span> </div> <div class=\"b-pics-add-fields\"> <label for=\"paste-image-url\">Укажите здесь URL изображения</label> <input id=\"paste-image-url\" class=\"b-pics-url-field\" type=\"text\" /> <label for=\"paste-image-link\">Укажите URL страницы, на которую можно перейти при клике на фото (опционально)</label> <input id=\"paste-image-link\" class=\"b-pics-url-field\" type=\"text\" /> </div> </div> <div class=\"b-popup-pics-gallery\"> <ul class=\"b-popup-pics-gallery-list\"></ul> <p class=\"b-bubble b-bubble-intext b-bubble-noarrow b-bubble-alert b-popup-pics-gallery-nophotos\" style=\"display: none;\">В этом альбоме нет фотографий</p> <div class=\"b-pics-spinner-wrapper\"> <span class=\"b-pics-spinner-inner\"> <i class=\"b-pics-spinner-icon\"></i> Загрузка... </span> </div> </div> <ul class=\"b-pics-summary\"> <li class=\"first\">Доступно: <span class=\"b-pics-available-now\">{{html $data.availableSpace}}</span></li> <li><a target=\"_blank\" href=\"{{html $data.siteRoot}}/shop/diskquota.bml\">Купить дополнительное место</a></li> </ul> <ul class=\"b-popup-pics-edit-fields\"> <li> <input type=\"text\" class=\"b-pics-input-text b-pics-title-field\" placeholder=\"Укажите название изображения\" /> </li> <li> <textarea name=\"\" cols=\"30\" rows=\"4\" placeholder=\"Добавьте описание\" class=\"b-pics-textarea b-pics-desc-field\"></textarea> </li> <li> <input type=\"text\" class=\"b-pics-input-text b-pics-link-field\" placeholder=\"Укажите URL страницы, на которую можно перейти при клике на фото (опционально)\" /> </li> </ul> <div class=\"b-pics-submit-options b-pics-submit-options-norule\"> <div class=\"b-pics-section\"> <label for=\"check\" class=\"b-pics-checkbox\"> <input type=\"checkbox\" id=\"check\" /> Сделать обложкой альбома </label> </div> </div> <div class=\"b-pics-submit-options\"> <div class=\"b-pics-section b-pics-select-album\"> <label>Выберите альбом:</label> {{html $data.albumList}} <span class=\"input-album-name-wrapper\"><input type=\"text\" placeholder=\"Название нового альбома\" class=\"b-pics-input-text b-pics-input-text-album-name\" /> <span class=\"b-pics-decline-new-album\">Отменить</span></span> </div> <div class=\"b-pics-section b-pics-original\"> <label title=\"При написании URL для определенной картинки ссылка будет вести на указанный URL\" for=\"link-original\"><input type=\"checkbox\" id=\"link-original\" /> Добавить ссылки на оригинал</label> </div> <div class=\"b-pics-side\"> <span class=\"b-pics-size-options\"></span> </span> <div class=\"b-pics-privacy\"> <i class=\"b-pics-privacy-icon\"></i> <div class=\"b-pics-privacy-inner\" style=\"display: none;\"> <h5>Приватность</h5> {{html $data.privacyList}} </div> </div> <span class=\"b-pics-preloader\"> <span class=\"b-pics-preloader-inner\"><input type=\"submit\" class=\"b-pics-input-submit b-pics-save-button\" value=\"Сохранить\" /><input type=\"submit\" class=\"b-pics-input-submit b-pics-post-button\" value=\"{{html $data.addToPostButtonText}}\" /> <i class=\"preloader\"></i></span> </span> </div> </div> </form> </div> <i class=\"i-popup-close\"></i> </div> </div> </div> </div>", 'JQuery.stat');

LJ.UI.registerTemplate('templates-Comments-Twig', "<div class=\"b-tree-twig{{if $data.level}} b-tree-twig-{{html $data.level}}{{/if}}\" style=\"margin-left: {{html $data.margin}}px\" data-tid=\"t{{html $data.dtalkid}}\"> {{if $data.html}} {{html $data.html}} {{else}} {{if $data.more}} <div class=\"b-leaf b-leaf-seemore{{if $data.moreclass}} b-leaf-seemore-{{html $data.moreclass}}{{/if}}\" data-parent=\"{{html $data.parent}}\" data-dtalkids=\"{{html $data.data}}\" data-updated-ts=\"{{html $data.touched}}\" data-count=\"{{html $data.more}}\"> <div class=\"b-leaf-inner\"> {{each ($value.actions || $data.actions)}} <span class=\"b-leaf-seemore-more\"> <a href=\"{{if ($value.href || $data.href)}}{{html ($value.href || $data.href)}}{{else}}#{{/if}}\" rel=\"nofollow\" class=\"b-pseudo\">{{html ($value.title || $data.title)}}</a> </span> {{if ($value.ljusers || $data.ljusers)}} <span class=\"b-leaf-seemore-from\">от</span> <span class=\"b-leaf-seemore-users\">{{each ($value.ljusers || $data.ljusers)}}{{if !(($value.anonymous || $data.anonymous))}}{{if ($value.legacy || $data.legacy)}}{{html ($value.ljuser || $data.ljuser)}}{{else}}<span {{if ($value.inline_css || $data.inline_css)}}style=\"white-space:nowrap;{{if ($value.striked || $data.striked)}}text-decoration:line-through;{{/if}}\"{{/if}} class=\"ljuser {{if !(($value.inline_css || $data.inline_css))}} i-ljuser {{if ($value.striked || $data.striked)}}i-ljuser-deleted{{/if}} {{/if}} {{if ($value.noctxpopup || $data.noctxpopup)}}noctxpopup{{/if}} {{if ($value.alias || $data.alias)}}with-alias{{/if}} {{if ($value.side_alias || $data.side_alias)}}with-alias-value{{/if}}\" {{html ($value.attrs || $data.attrs)}} lj:user=\"{{html ($value.username || $data.username)}}\"><a href=\"{{html ($value.profile_url || $data.profile_url)}}\" {{if ($value.target || $data.target)}}target=\"{{html ($value.target || $data.target)}}\"{{/if}}><img width=\"16\" height=\"16\" {{if ($value.inline_css || $data.inline_css)}} style=\"vertical-align:text-bottom;border:0;padding-right:1px;\" {{else}} class=\"i-ljuser-userhead\" {{/if}} src=\"{{html ($value.userhead_url || $data.userhead_url)}}\" /></a><a href=\"{{html ($value.journal_url || $data.journal_url)}}\" {{if !(($value.inline_css || $data.inline_css))}}class=\"i-ljuser-username\"{{/if}} {{if ($value.color || $data.color)}}style=\"color:{{html ($value.color || $data.color)}};\"{{/if}} {{if ($value.target || $data.target)}}target=\"{{html ($value.target || $data.target)}}\"{{/if}} {{if ($value.alias || $data.alias)}}title=\"{{html ($value.user_alias || $data.user_alias)}}\"{{/if}}>{{if ($value.bold || $data.bold)}}<b>{{/if}}{{html ($value.journal || $data.journal)}}{{if ($value.alias || $data.alias)}}<span class=\"useralias-value\">*</span>{{/if}}{{if ($value.bold || $data.bold)}}</b>{{/if}}</a></span>{{if ($value.side_alias || $data.side_alias)}}<span class=\'alias-value\'> &mdash; {{html ($value.user_alias || $data.user_alias)}}</span>{{/if}}{{/if}}{{else}}Anonymous{{/if}}{{if !(($index ===  ljusers.length - 1))}},&nbsp;{{/if}}{{/each}}{{if ($value.moreusers || $data.moreusers)}}&hellip;{{/if}}</span> {{/if}} <span class=\"b-leaf-seemore-expand\"> <a href=\"{{if ($value.href || $data.href)}}{{html ($value.href || $data.href)}}{{else}}#{{/if}}\" rel=\"nofollow\" class=\"b-pseudo\">Развернуть</a> </span> {{/each}} </div> </div> {{else}} {{if $data.deleted || !$data.shown}} <div class=\"b-leaf b-leaf-clipped b-leaf-{{html $data.leafclass}}\" id=\"t{{html $data.dtalkid}}\"> <div class=\"b-leaf-inner\"> <div class=\"b-leaf-cheader\"> <p class=\"b-leaf-status\"> {{if $data.leafclass == \'deleted\'}} Комментарий удален {{else $data.leafclass == \'screened\'}} Скрытый комментарий {{else $data.leafclass == \'spammed\'}} Комментарий удален как спам {{else $data.leafclass == \'suspended\'}} Комментарий недоступен, так как журнал его автора заморожен {{/if}}</p> {{if $data.controls}} <ul class=\"b-leaf-controls\"> {{each ($value.controls || $data.controls)}}{{if ($value.allowed || $data.allowed)}} <li class=\"b-leaf-controls-item\"> <a class=\"b-controls b-controls-{{html ($value.name || $data.name)}}\" title=\"{{html ($value.title || $data.title)}}\" href=\"{{if ($value.href || $data.href)}}{{html ($value.href || $data.href)}}{{else}}#{{/if}}\" rel=\"nofollow\"> <i class=\"b-controls-bg\"></i> {{html ($value.title || $data.title)}} </a> </li> {{/if}}{{/each}} </ul> {{/if}} {{if $data.actions}} <ul class=\"b-leaf-actions\"> {{each ($value.actions || $data.actions)}} {{if !(($value.footer || $data.footer))}} {{if ($value.allowed || $data.allowed)}} {{if !($value.checkbox || $data.checkbox) || ($value.massactions || $data.massactions)}} <li class=\"b-leaf-actions-item b-leaf-actions-{{if ($value.checkbox || $data.checkbox)}}check{{else}}{{html ($value.name || $data.name)}}{{/if}}{{if ($value.active || $data.active)}} active{{/if}}\"> {{if ($value.disabled || $data.disabled)}} {{html ($value.title || $data.title)}} {{else}} {{if ($value.checkbox || $data.checkbox)}} <input id=\"c{{html ($value.dtalkid || $data.dtalkid)}}\" name=\"selected_{{html ($value.talkid || $data.talkid)}}\" class=\"b-leaf-actions-checkbox\" type=\"checkbox\" autocomplete=\"off\"> <label class=\"b-leaf-actions-label\" for=\"c{{html ($value.dtalkid || $data.dtalkid)}}\">{{html ($value.title || $data.title)}}</label> {{else}} <a {{if ($value.name || $data.name) != \'permalink\'}}class=\"b-pseudo\"{{/if}} href=\"{{if ($value.href || $data.href)}}{{html ($value.href || $data.href)}}{{else}}#{{/if}}\" rel=\"nofollow\"> {{html ($value.title || $data.title)}} </a>{{if ($value.ljusers || $data.ljusers)}}&nbsp;{{html ($value.ljusers || $data.ljusers)}}{{if ($value.moreusers || $data.moreusers)}}, ...{{/if}}{{/if}} {{/if}} {{/if}} </li> {{/if}} {{/if}} {{/if}} {{/each}} </ul> {{/if}} </div> <div class=\"b-leaf-footer\"> {{if $data.actions}} <ul class=\"b-leaf-actions\"> {{each ($value.actions || $data.actions)}} {{if ($value.footer || $data.footer)}} {{if ($value.allowed || $data.allowed)}} {{if !($value.checkbox || $data.checkbox) || ($value.massactions || $data.massactions)}} <li class=\"b-leaf-actions-item b-leaf-actions-{{if ($value.checkbox || $data.checkbox)}}check{{else}}{{html ($value.name || $data.name)}}{{/if}}{{if ($value.active || $data.active)}} active{{/if}}\"> {{if ($value.disabled || $data.disabled)}} {{html ($value.title || $data.title)}} {{else}} {{if ($value.checkbox || $data.checkbox)}} <input id=\"c{{html ($value.dtalkid || $data.dtalkid)}}\" name=\"selected_{{html ($value.talkid || $data.talkid)}}\" class=\"b-leaf-actions-checkbox\" type=\"checkbox\" autocomplete=\"off\"> <label class=\"b-leaf-actions-label\" for=\"c{{html ($value.dtalkid || $data.dtalkid)}}\">{{html ($value.title || $data.title)}}</label> {{else}} <a {{if ($value.name || $data.name) != \'permalink\'}}class=\"b-pseudo\"{{/if}} href=\"{{if ($value.href || $data.href)}}{{html ($value.href || $data.href)}}{{else}}#{{/if}}\" rel=\"nofollow\"> {{html ($value.title || $data.title)}} </a>{{if ($value.ljusers || $data.ljusers)}}&nbsp;{{html ($value.ljusers || $data.ljusers)}}{{if ($value.moreusers || $data.moreusers)}}, ...{{/if}}{{/if}} {{/if}} {{/if}} </li> {{/if}} {{/if}} {{/if}} {{/each}} </ul> {{/if}} </div> </div> </div> {{else}} <div class=\"b-leaf {{if $data.leafclass}} b-leaf-{{html $data.leafclass}}{{/if}} {{if $data.suspended}} b-leaf-suspended{{/if}} {{if $data.tracked}} b-leaf-tracked{{/if}} {{if $data.subclass}} b-leaf-{{html $data.subclass}}{{/if}} {{if $data.p_tracked}} b-leaf-tracked-parent{{/if}} {{if $data.modereply}} b-leaf-modereply{{/if}}\" {{if $data.loaded}} data-full=\"1\" {{/if}} data-username=\"{{html $data.uname}}\" data-displayname=\"{{html $data.dname}}\" data-updated-ts=\"{{html $data.ctime_ts}}\" {{if $data.subject}} data-subject=\"{{html $data.subject}}\" {{/if}} id=\"t{{html $data.dtalkid}}\"> <div class=\"b-leaf-inner\"> <div class=\"b-leaf-header\"> <div class=\"b-leaf-userpic\"> <span class=\"b-leaf-userpic-inner\"> {{if $data.userpic}} <img src=\"{{html $data.userpic}}\" alt=\"\" {{if $data.upictitle}}title=\"{{html $data.upictitle}}\"{{/if}}> {{else}} <img src=\"{{html $data.statprefix}}{{if $data.username}}/img/userpics/userpic-user.png?v=15821{{else}}/img/userpics/userpic-anonymous.png?v=15821{{/if}}\" alt=\"\"> {{/if}} </span> </div> <div class=\"b-leaf-details\"> {{if $data.shown}} <p class=\"b-leaf-username\"> <span class=\"b-leaf-username-name\">{{if $data.username}}{{if $data.deleted_poster}}{{html $data.deleted_poster}}{{else}}{{each ($value.username || $data.username)}}{{if ($value.legacy || $data.legacy)}}{{html ($value.ljuser || $data.ljuser)}}{{else}}<span {{if ($value.inline_css || $data.inline_css)}}style=\"white-space:nowrap;{{if ($value.striked || $data.striked)}}text-decoration:line-through;{{/if}}\"{{/if}} class=\"ljuser {{if !(($value.inline_css || $data.inline_css))}} i-ljuser {{if ($value.striked || $data.striked)}}i-ljuser-deleted{{/if}} {{/if}} {{if ($value.noctxpopup || $data.noctxpopup)}}noctxpopup{{/if}} {{if ($value.alias || $data.alias)}}with-alias{{/if}} {{if ($value.side_alias || $data.side_alias)}}with-alias-value{{/if}}\" {{html ($value.attrs || $data.attrs)}} lj:user=\"{{html ($value.username || $data.username)}}\"><a href=\"{{html ($value.profile_url || $data.profile_url)}}\" {{if ($value.target || $data.target)}}target=\"{{html ($value.target || $data.target)}}\"{{/if}}><img width=\"16\" height=\"16\" {{if ($value.inline_css || $data.inline_css)}} style=\"vertical-align:text-bottom;border:0;padding-right:1px;\" {{else}} class=\"i-ljuser-userhead\" {{/if}} src=\"{{html ($value.userhead_url || $data.userhead_url)}}\" /></a><a href=\"{{html ($value.journal_url || $data.journal_url)}}\" {{if !(($value.inline_css || $data.inline_css))}}class=\"i-ljuser-username\"{{/if}} {{if ($value.color || $data.color)}}style=\"color:{{html ($value.color || $data.color)}};\"{{/if}} {{if ($value.target || $data.target)}}target=\"{{html ($value.target || $data.target)}}\"{{/if}} {{if ($value.alias || $data.alias)}}title=\"{{html ($value.user_alias || $data.user_alias)}}\"{{/if}}>{{if ($value.bold || $data.bold)}}<b>{{/if}}{{html ($value.journal || $data.journal)}}{{if ($value.alias || $data.alias)}}<span class=\"useralias-value\">*</span>{{/if}}{{if ($value.bold || $data.bold)}}</b>{{/if}}</a></span>{{if ($value.side_alias || $data.side_alias)}}<span class=\'alias-value\'> &mdash; {{html ($value.user_alias || $data.user_alias)}}</span>{{/if}}{{/if}}{{/each}}{{/if}}{{else}}Anonymous{{/if}}</span> {{if $data.ipaddr}}<span class=\"b-leaf-ipaddr\">{{html $data.ipaddr}}</span>{{/if}} </p> <p class=\"b-leaf-meta\"> {{if $data.ctime}} <span class=\"b-leaf-createdtime\">{{html $data.ctime}}</span> {{/if}} {{if $data.stime}} <span class=\"b-leaf-shorttime\">{{html $data.stime}}</span> {{/if}} {{if $data.etime}} <span class=\"b-leaf-editedtime\">Комментарий изменен: &nbsp;{{html $data.etime}}</span> {{/if}} </p> {{if $data.actions}} <ul class=\"b-leaf-actions\"> {{each ($value.actions || $data.actions)}} {{if !(($value.footer || $data.footer))}} {{if ($value.allowed || $data.allowed)}} {{if !($value.checkbox || $data.checkbox) || ($value.massactions || $data.massactions)}} <li class=\"b-leaf-actions-item b-leaf-actions-{{if ($value.checkbox || $data.checkbox)}}check{{else}}{{html ($value.name || $data.name)}}{{/if}}{{if ($value.active || $data.active)}} active{{/if}}\"> {{if ($value.disabled || $data.disabled)}} {{html ($value.title || $data.title)}} {{else}} {{if ($value.checkbox || $data.checkbox)}} <input id=\"c{{html ($value.dtalkid || $data.dtalkid)}}\" name=\"selected_{{html ($value.talkid || $data.talkid)}}\" class=\"b-leaf-actions-checkbox\" type=\"checkbox\" autocomplete=\"off\"> <label class=\"b-leaf-actions-label\" for=\"c{{html ($value.dtalkid || $data.dtalkid)}}\">{{html ($value.title || $data.title)}}</label> {{else}} <a {{if ($value.name || $data.name) != \'permalink\'}}class=\"b-pseudo\"{{/if}} href=\"{{if ($value.href || $data.href)}}{{html ($value.href || $data.href)}}{{else}}#{{/if}}\" rel=\"nofollow\"> {{html ($value.title || $data.title)}} </a>{{if ($value.ljusers || $data.ljusers)}}&nbsp;{{html ($value.ljusers || $data.ljusers)}}{{if ($value.moreusers || $data.moreusers)}}, ...{{/if}}{{/if}} {{/if}} {{/if}} </li> {{/if}} {{/if}} {{/if}} {{/each}} <li class=\"b-leaf-actions-item b-leaf-actions-new\"><span class=\"b-thisisnew\">Новый комментарий</span></li> </ul> {{/if}} {{/if}} {{if $data.loaded}} {{if $data.controls}} <ul class=\"b-leaf-controls\"> {{each ($value.controls || $data.controls)}}{{if ($value.allowed || $data.allowed)}} <li class=\"b-leaf-controls-item\"> <a class=\"b-controls b-controls-{{html ($value.name || $data.name)}}\" title=\"{{html ($value.title || $data.title)}}\" href=\"{{if ($value.href || $data.href)}}{{html ($value.href || $data.href)}}{{else}}#{{/if}}\" rel=\"nofollow\"> <i class=\"b-controls-bg\"></i> {{html ($value.title || $data.title)}} </a> </li> {{/if}}{{/each}} </ul> {{/if}} {{/if}} </div> </div> {{if $data.article}} <div class=\"b-leaf-article\"> {{if $data.subject}}<h4 class=\"b-leaf-subject\">{{html $data.subject}}</h4>{{/if}} {{html $data.article}} </div> {{/if}} <div class=\"b-leaf-footer\"> {{if $data.actions}} <ul class=\"b-leaf-actions\"> {{each ($value.actions || $data.actions)}} {{if ($value.footer || $data.footer)}} {{if ($value.allowed || $data.allowed)}} {{if !($value.checkbox || $data.checkbox) || ($value.massactions || $data.massactions)}} <li class=\"b-leaf-actions-item b-leaf-actions-{{if ($value.checkbox || $data.checkbox)}}check{{else}}{{html ($value.name || $data.name)}}{{/if}}{{if ($value.active || $data.active)}} active{{/if}}\"> {{if ($value.disabled || $data.disabled)}} {{html ($value.title || $data.title)}} {{else}} {{if ($value.checkbox || $data.checkbox)}} <input id=\"c{{html ($value.dtalkid || $data.dtalkid)}}\" name=\"selected_{{html ($value.talkid || $data.talkid)}}\" class=\"b-leaf-actions-checkbox\" type=\"checkbox\" autocomplete=\"off\"> <label class=\"b-leaf-actions-label\" for=\"c{{html ($value.dtalkid || $data.dtalkid)}}\">{{html ($value.title || $data.title)}}</label> {{else}} <a {{if ($value.name || $data.name) != \'permalink\'}}class=\"b-pseudo\"{{/if}} href=\"{{if ($value.href || $data.href)}}{{html ($value.href || $data.href)}}{{else}}#{{/if}}\" rel=\"nofollow\"> {{html ($value.title || $data.title)}} </a>{{if ($value.ljusers || $data.ljusers)}}&nbsp;{{html ($value.ljusers || $data.ljusers)}}{{if ($value.moreusers || $data.moreusers)}}, ...{{/if}}{{/if}} {{/if}} {{/if}} </li> {{/if}} {{/if}} {{/if}} {{/each}} <li class=\"b-leaf-actions-item b-leaf-actions-new\"> <span class=\"b-thisisnew\">Новый комментарий</span> </li> </ul> {{/if}} </div> </div> </div> {{/if}} {{/if}} {{/if}} </div>", 'JQuery.stat');
