nodeclub/views/topic/abstract.html
2014-04-03 23:41:43 +08:00

41 lines
1.2 KiB
HTML

<div class='cell'>
<a class="user_avatar pull-left" href="/user/<%= topic.author.name %>">
<img src="<%= topic.author.avatar_url %>"
title="<%= topic.author.name %>"
/>
</a>
<span class="reply_count pull-left">
<span class="count_of_replies" title="回复数">
<%= topic.reply_count %>
</span>
<span class="count_seperator">/</span>
<span class="count_of_visits" title='点击数'>
<%= topic.visit_count %>
</span>
</span>
<% if (topic.reply) {%>
<a class='last_time pull-right' href="/topic/<%= topic._id %><%- '#' + topic.reply._id %>">
<img class="user_small_avatar" src="<%= topic.reply.author.avatar_url %>">
<span class="last_active_time"><%= topic.reply.friendly_create_at %></span>
</a>
<% } %>
<% if (!topic.reply) {%>
<span class='last_time pull-right'>
<span class="last_active_time"><%= topic.friendly_create_at %></span>
</span>
<% } %>
<!--<%- partial('tag/tag_in_abstract',{collection:topic.tags, as:'tag'}) %>-->
<div class="topic_title_wrapper">
<a class='topic_title' href='/topic/<%= topic._id %>'>
<% if (topic.top) { %>
<span class='put_top'>置顶</span>
<% } %>
<%= topic.title %>
</a>
</div>
</div>