|
59 | 59 | <%- markdown(topic.content) %> |
60 | 60 | </div> |
61 | 61 | <hr> |
62 | | - <% if (topic.tags.length > 0) { %> |
63 | | - <span class='col_fade'>标签:</span> |
64 | | - <%- partial('tag/tag_in_topic',{ collection: topic.tags, as: 'tag' }) %> |
65 | | - <% } else { %> |
66 | | - <span class='col_fade'>标签:无</span> |
67 | | - <% } %> |
68 | | - <div class='sep5'></div> |
69 | | - <span class='col_fade'> |
70 | | - <a class='dark' href="/user/<%= topic.author.name %>"><%= topic.author.name %></a> 在 <%= topic.friendly_create_at %> 发布 |
71 | | - </span> |
72 | | - <% if (topic.friendly_create_at != topic.friendly_update_at) { %> |
73 | | - <div class='sep5'></div> |
74 | | - <span class='col_fade'> |
75 | | - <a class='dark' href="/user/<%= topic.author.name %>"><%= topic.author.name %></a> 在 <%= topic.friendly_update_at %> 重新编辑 |
76 | | - </span> |
77 | | - <% } %> |
78 | | - <span class='sp10'></span> |
79 | | - <a class='dark' id='share_weibo_btn' |
80 | | - href="javascript:void((function(s,d,e,r,l,p,t,z,c){var%20f='http://v.t.sina.com.cn/share/share.php?appkey=<%= config.weibo_key %>',u=z||d.location,p=['&url=',e(u),'&title=',e(t||d.title),'&source=',e(r),'&sourceUrl=',e(l),'&content=',c||'gb2312','&pic=',e(p||'')].join('');function%20a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=440,height=430,left=',(s.width-440)/2,',top=',(s.height-430)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent,'','','','分享来自<%= config.name %>的话题:<%= topic.title %>','',''));" |
81 | | - >分享到 weibo</a> |
82 | | - <% if (locals.current_user) { %> |
83 | | - <% if (!topic.in_collection) { %> |
84 | | - <button class='btn btn-success' id='collect_btn' action='collect'>加入收藏</button> |
| 62 | + <div class="tags"> |
| 63 | + <% if (topic.tags.length > 0) { %> |
| 64 | + <span class='col_fade'>标签:</span> |
| 65 | + <%- partial('tag/tag_in_topic',{ collection: topic.tags, as: 'tag' }) %> |
85 | 66 | <% } else { %> |
86 | | - <button class='btn' id='collect_btn' action='de_collect'>取消收藏</button> |
| 67 | + <span class='col_fade'>标签:无</span> |
87 | 68 | <% } %> |
88 | | - <% } %> |
89 | | - <% if (locals.current_user) { %> |
90 | | - <% if (current_user.is_admin) { %> |
91 | | - <% if (topic.top) { %> |
92 | | - <a href='/topic/<%= topic._id %>/top/0'><img class='user_icon' src='<%- config.site_static_host %>/images/star_fav_empty_icon&16.png' title='取消置顶' /></a> |
93 | | - <% } else { %> |
94 | | - <a href='/topic/<%= topic._id %>/top/1'><img class='user_icon' src='<%- config.site_static_host %>/images/star_fav_icon&16.png' title='置顶' /></a> |
| 69 | + </div> |
| 70 | + <div class="changes"> |
| 71 | + <span class='col_fade'> |
| 72 | + <a class='dark' href="/user/<%= topic.author.name %>"><%= topic.author.name %></a> 在 <%= topic.friendly_create_at %> 发布 |
| 73 | + </span> |
| 74 | + <% if (topic.friendly_create_at != topic.friendly_update_at) { %> |
| 75 | + <span class='col_fade'> |
| 76 | + <a class='dark' href="/user/<%= topic.author.name %>"><%= topic.author.name %></a> 在 <%= topic.friendly_update_at %> 重新编辑 |
| 77 | + </span> |
95 | 78 | <% } %> |
96 | | - <a href='/topic/<%= topic._id %>/edit'><img class='user_icon' src='<%- config.site_static_host %>/images/doc_edit_icon&16.png' title='编辑' /></a> |
97 | | - <a href='javascript:;' data-id="<%= topic._id %>" class='delete_topic_btn'><img class='user_icon' src='<%- config.site_static_host %>/images/trash_icon&16.png' title='删除' /></a> |
98 | | - <% } else { %> |
99 | | - <% if (current_user._id == topic.author_id) { %> |
| 79 | + </div> |
| 80 | + <div class="action"> |
| 81 | + <a class='dark' id='share_weibo_btn' |
| 82 | + href="javascript:void((function(s,d,e,r,l,p,t,z,c){var%20f='http://v.t.sina.com.cn/share/share.php?appkey=<%= config.weibo_key %>',u=z||d.location,p=['&url=',e(u),'&title=',e(t||d.title),'&source=',e(r),'&sourceUrl=',e(l),'&content=',c||'gb2312','&pic=',e(p||'')].join('');function%20a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=440,height=430,left=',(s.width-440)/2,',top=',(s.height-430)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent,'','','','分享来自<%= config.name %>的话题:<%= topic.title %>','',''));" |
| 83 | + >分享到 weibo</a> |
| 84 | + <% if (locals.current_user) { %> |
| 85 | + <% if (!topic.in_collection) { %> |
| 86 | + <button class='btn btn-success' id='collect_btn' action='collect'>加入收藏</button> |
| 87 | + <% } else { %> |
| 88 | + <button class='btn' id='collect_btn' action='de_collect'>取消收藏</button> |
| 89 | + <% } %> |
| 90 | + <% } %> |
| 91 | + <% if (locals.current_user) { %> |
| 92 | + <% if (current_user.is_admin) { %> |
| 93 | + <% if (topic.top) { %> |
| 94 | + <a href='/topic/<%= topic._id %>/top/0'><img class='user_icon' src='<%- config.site_static_host %>/images/star_fav_empty_icon&16.png' title='取消置顶' /></a> |
| 95 | + <% } else { %> |
| 96 | + <a href='/topic/<%= topic._id %>/top/1'><img class='user_icon' src='<%- config.site_static_host %>/images/star_fav_icon&16.png' title='置顶' /></a> |
| 97 | + <% } %> |
100 | 98 | <a href='/topic/<%= topic._id %>/edit'><img class='user_icon' src='<%- config.site_static_host %>/images/doc_edit_icon&16.png' title='编辑' /></a> |
| 99 | + <a href='javascript:;' data-id="<%= topic._id %>" class='delete_topic_btn'><img class='user_icon' src='<%- config.site_static_host %>/images/trash_icon&16.png' title='删除' /></a> |
| 100 | + <% } else { %> |
| 101 | + <% if (current_user._id == topic.author_id) { %> |
| 102 | + <a href='/topic/<%= topic._id %>/edit'><img class='user_icon' src='<%- config.site_static_host %>/images/doc_edit_icon&16.png' title='编辑' /></a> |
| 103 | + <% } %> |
101 | 104 | <% } %> |
102 | 105 | <% } %> |
103 | | - <% } %> |
| 106 | + </div> |
104 | 107 | </div> |
105 | 108 | </div> |
106 | 109 | <% if (topic.replies && topic.replies.length > 0) { %> |
|
0 commit comments