mirror of
https://github.com/cnodejs/nodeclub.git
synced 2025-12-08 19:55:55 +00:00
33 lines
1.4 KiB
HTML
33 lines
1.4 KiB
HTML
<div class='cell reply2_item' reply_id='<%= reply2._id %>'>
|
|
<a class="anchor" id="<%- reply2._id %>"></a>
|
|
<div class='author_content'>
|
|
<a href="/user/<%= reply2.author.name %>" class="user_avatar">
|
|
<img src="<%= reply2.author.avatar_url %>" title="<%= reply2.author.name %>" />
|
|
</a>
|
|
<div class='user_info'>
|
|
<a class='dark reply_author' href="/user/<%= reply2.author.name %>"><%= reply2.author.name %></a>
|
|
<a class="reply_time" href="#<%- reply2._id %>"><%= reply2.friendly_create_at %></a>
|
|
</div>
|
|
<div class='user_action'>
|
|
<% if ( locals.current_user && current_user.is_admin ||
|
|
(locals.current_user && current_user._id.toString() == reply2.author._id.toString())
|
|
) { %>
|
|
<a href='/reply/<%- reply2._id %>/edit' class='edit_reply_btn'>
|
|
<img class='user_icon' src="<%- config.site_static_host %>/public/images/doc_edit_icon&16.png" title='编辑' />
|
|
</a>
|
|
<a href='javascript:void(0)' class='delete_reply2_btn'>
|
|
<img class='user_icon' src="<%- config.site_static_host %>/public/images/trash_icon&16.png" title='删除' />
|
|
</a>
|
|
<% } %>
|
|
<span>
|
|
<% if (locals.current_user) { %>
|
|
<img class='dark reply2_at_btn' src="<%- config.site_static_host %>/public/images/reply_icon_16.png" title="回复">
|
|
<% } %>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class='reply_content'>
|
|
<%- markdown(reply2.content) %>
|
|
</div>
|
|
</div>
|