mirror of
https://github.com/cnodejs/nodeclub.git
synced 2025-12-08 19:55:55 +00:00
40 lines
1.2 KiB
HTML
40 lines
1.2 KiB
HTML
<div class='cell'>
|
|
|
|
<a class="user_avatar pull-left" href="/user/<%= topic.author.loginname %>">
|
|
<img src="<%= proxy(topic.author.avatar_url) %>"
|
|
title="<%= topic.author.loginname %>"
|
|
/>
|
|
</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 && topic.reply.author) {%>
|
|
<a class='last_time pull-right' href="/topic/<%= topic._id %><%- '#' + topic.reply._id %>">
|
|
<img class="user_small_avatar" src="<%= proxy(topic.reply.author.avatar_url) %>">
|
|
<span class="last_active_time"><%= topic.reply.create_at_ago() %></span>
|
|
</a>
|
|
<% } %>
|
|
<% if (!topic.reply) {%>
|
|
<span class='last_time pull-right'>
|
|
<span class="last_active_time"><%= topic.create_at_ago() %></span>
|
|
</span>
|
|
<% } %>
|
|
|
|
<div class="topic_title_wrapper">
|
|
|
|
<%- partial('./_top_good', {topic: topic}) %>
|
|
|
|
<a class='topic_title' href='/topic/<%= topic._id %>' title='<%= topic.title %>'>
|
|
<%= topic.title %>
|
|
</a>
|
|
</div>
|
|
</div>
|