<% if (topic.top) { %> 置顶 <% } %> <%= topic.title %>


<%- markdown(topic.content) %>

<% if (topic.tags.length > 0) { %> 标签: <%- partial('tag/tag_in_topic',{ collection: topic.tags, as: 'tag' }) %> <% } else { %> 标签:无 <% } %>
<%= topic.author.name %> 在 <%= topic.friendly_create_at %> 发布 <% if (topic.friendly_create_at != topic.friendly_update_at) { %> <%= topic.author.name %> 在 <%= topic.friendly_update_at %> 重新编辑 <% } %>
分享到 weibo <% if (locals.current_user) { %> <% if (!topic.in_collection) { %> <% } else { %> <% } %> <% } %> <% if (locals.current_user) { %> <% if (current_user.is_admin) { %> <% if (topic.top) { %> <% } else { %> <% } %> <% } else { %> <% if (current_user._id == topic.author_id) { %> <% } %> <% } %> <% } %>
<% if (topic.replies && topic.replies.length > 0) { %>
<%= topic.replies.length %> 回复
<%- partial('reply/reply', topic.replies) %>
<% } %> <% if (locals.current_user && locals.topic) { %>
添加回复
Ctrl+Enter 快捷回复
<% } %>
<% if (locals.current_user && locals.topic) { %> <%- Loader('/public/topic_edit.min.js') .js('/public/libs/ajax-upload/ajaxupload.js') .js('/public/libs/epiceditor/epiceditor.js') .js('/public/javascripts/editor.js') .done(assets, config.site_static_host, config.mini_assets) %> <% } %> <%- Loader('/public/fancebox.min.js', '/public/libs/fancybox/fancebox.min.css') .css('/public/libs/fancybox/jquery.fancybox-1.3.4.css') .js('/public/libs/fancybox/jquery.fancybox-1.3.4.pack.js') .js('/public/javascripts/topic.js') .done(assets, config.site_static_host, config.mini_assets) %>