mirror of
https://github.com/cnodejs/nodeclub.git
synced 2026-02-01 16:34:28 +00:00
* 主页话题和标签的显示比较大的改动, 这是比较不整洁的部分 * 页面背景. 整体去掉了颜色和边框, 还是有限考虑可读性, 主要看截图 * 看 CNode 用的 Bootstrap `2.0`, repo 是 `1.7`. 遇到有错干脆升级解决了. * `prettyprint.css` 对浅色背景使用了深色的文字颜色的主题
48 lines
1.5 KiB
HTML
48 lines
1.5 KiB
HTML
<% if(message.has_read){ %>
|
|
<div class='cell' message_id='<%= message._id %>'>
|
|
<% }else{ %>
|
|
<div class='cell message' message_id='<%= message._id %>'>
|
|
<% } %>
|
|
<% if(message.type == 'reply'){ %>
|
|
<span>
|
|
<a href="/user/<%= message.author.name %>" target='_blank'><%= message.author.name %></a>
|
|
回复了你的话题
|
|
<a href="/topic/<%= message.topic._id %>" target='_blank'><%= message.topic.title %></a>
|
|
</span>
|
|
<% } %>
|
|
<% if(message.type == 'reply2'){ %>
|
|
<span>
|
|
<a href="/user/<%= message.author.name %>" target='_blank'><%= message.author.name %></a>
|
|
在话题
|
|
<a href="/topic/<%= message.topic._id %>" target='_blank'><%= message.topic.title %></a>
|
|
中回复了你的回复
|
|
</span>
|
|
<% } %>
|
|
<% if(message.type == 'follow'){ %>
|
|
<span>
|
|
<a href="/user/<%= message.author.name %>" target='_blank'><%= message.author.name %></a>
|
|
关注了你
|
|
</span>
|
|
<% } %>
|
|
<% if (message.type == 'at'){ %>
|
|
<span>
|
|
<a href="/user/<%= message.author.name %>" target='_blank'><%= message.author.name %></a>
|
|
在话题
|
|
<a href="/topic/<%= message.topic._id %>" target='_blank'><%= message.topic.title %></a>
|
|
中@了你
|
|
</span>
|
|
<% } %>
|
|
|
|
|
|
<% if (message.has_read) { %>
|
|
<span class='fr'><img src='<%- config.site_static_host %>/images/checkmark_icon&16.png' title='消息已读'/></span>
|
|
<% } else { %>
|
|
<span class='fr marked_icon mark_read_btn'>
|
|
<img class='unread'
|
|
src='<%- config.site_static_host %>/images/checkmark_icon&16.png'
|
|
title='消息已读'
|
|
/>
|
|
</span>
|
|
<% } %>
|
|
</div>
|