<% if(state) {%>
<%
var info = psdk.userInfo.get(essenseData.daddress || user.address.value) || {}
var src = info.image || ''
var name = app.platform.api.clearname(info.name || user.address.value) || ''
var letter = name ? name[0] : ''
if(deleted){
src = ''
letter = ''
}
%>
<% if(!src && letter) {%>
<%-letter.toUpperCase()%>
<% } else if (!src) { %>
<% } %>
<% } %>
<% if(edit) {%>
<% } %>
<%
if((!state || !user.validate() || _.isEmpty(mestate) || (mestate.reputation >= -50)) && !deleted) {
var embedimage = window.testpocketnet || app.platform.sdk.user.canuseimagesincomments();
var hasdonate = sender && sender !== receiver
var hasemoji = !isMobile() && !isTablet()
%>
<% if(embedimage) {%>
<% } %>
<% if(hasdonate) { %>
<% } %>
<% if(hasemoji) { %>
<% } %>
<% if(hasdonate) { %>
<% } %>
<% if(embedimage) {%>
<% } %>
<% } else { %>
<% if(deleted) {%><%=e('deletedAccount_' + deleted)%><% } else { %><%=e('e13040')%><% } %>
<% } %>