<% var commentf = function(comment){ var me = app.platform.sdk.user.me() var lockedaccount = app.platform.sdk.user.reputationBlockedNotMe(comment.address) var hiddenComment = !comment.my(app) && app.platform.sdk.user.hiddenComment(comment) && !(comment.deleted || lockedaccount) var hiddenComments = false var blockedbyme = me && me.relation(comment.address, 'blocking') var sUserInfo = psdk.userInfo.getShortForm(comment.address) var m = '' %>
<% if(!app.mobileview) {%><% } %> <%-sUserInfo.name %><% if(!app.mobileview) {%><% } %> · <% if(comment.temp || comment.relay || comment.rejected) {%> <% if(comment.rejected) {%> · <%- e('error') %> <% } else {%> · <%-e('ntnow').toLowerCase()%> <%} %> <% } else { %> <%- app.reltime(comment.time) %> <% } %> <% if(Number(comment.timeUpd) > Number(comment.time) && !comment.deleted) {%> · <% } %> <% if(comment.amount && !app.pkoindisable) {%>
<%=comment.amount / 100000000 %> PKOIN
<% } %>
<% if(!comment.deleted && !comment.rejected) {%>
<% } %>
<% if(hiddenComment || hiddenComments || blockedbyme) { %>
<%=e(hiddenComment ? 'hiddenCommentLabel' : (hiddenComments ? 'hiddenCommentsLabel' : (blockedbyme ? 'blockedbymeHiddenCommentLabel' : 'hiddenCommentLabel')))%>
<% } %> <% if(comment.deleted) {%>
<%=e('e13033')%>
<% } %> <% if(lockedaccount) {%>
<%=e('lockedaccountacomment')%>
<% } %> <% if(comment.message && !comment.deleted && !lockedaccount) { var l = findAndReplaceLink(comment.message, true) if(comment.answerid){ l = app.platform.sdk.users.replacePattern(l, replaceName, { comment : comment.answerid }) } else { l = app.platform.sdk.users.replacePattern(l, replaceNameNoComment) } m = app.actions.emoji(l) %>
<%=nl2br(trimrn(m))%>
<% } %> <% if(comment.images.length && !comment.deleted && !lockedaccount && !blockedbyme) { var additionall = 0; var icClass = ''; if (comment.images.length + additionall == 1) icClass = 'one'; if (comment.images.length + additionall == 2) icClass = 'two'; if (comment.images.length + additionall == 2) icClass = 'three'; if (comment.images.length + additionall == 4) icClass = 'four'; if (comment.images.length + additionall > 4) icClass = 'more'; %>
<% _.each(comment.images, function(image){ %>
<% }) %>
<% } %>
<% if(!comment.deleted && !lockedaccount &&!blockedbyme && (typeof app.platform.sdk.user.myaccauntdeleted == 'undefined' || !app.platform.sdk.user.myaccauntdeleted())) { %>
<%- comment.scoreUp ? compressedNumber(comment.scoreUp, 1) : '' %>
<%- comment.scoreDown ? compressedNumber(comment.scoreDown, 1) : '' %>
<% } %> <% if(_class == 'firstcomment') { var h = 'hidden'; if(comment.children > 0) h = '' %>
<%=e('e13037')%> ()
<% } %> <% if((!state || mestate.reputation >= -50) && !comment.deleted && !comment.relay && !comment.temp && !comment.rejected && !lockedaccount && !ed.cantsend) { %>
<%=e('reply')%>
<% } %>
<% if(comment.my(app)) {%>
<% } %>
<% if(_class == 'firstcomment') {%>
<% if(comment.children > 0) {%> <% } %>
<% } %>
<% } %> <% if(!pid && comments.length > 2 && typeof sort != 'undefined' && sort) {%>
<%= sort.input() %> <% if(ed.close) {%>
<% } %>
<% } %>
<% _.each(comments, function(comment){ commentf(comment) }) %>
<% if(needtoshow) {%>
<%=e('comments_next')%> (<%-needtoshow%>)
<% } %>