Repository navigation
Expand file tree
/
Copy pathmessage.html
More file actions
46 lines (45 loc) · 1.67 KB
/
Copy pathmessage.html
File metadata and controls
46 lines (45 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<% 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 + (message.reply ? '#' + message.reply._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 + (message.reply ? '#' + message.reply._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 + (message.reply ? '#' + message.reply._id : '') %>" target='_blank'><%= message.topic.title %></a>
中@了你
</span>
<% } %>
<% if (message.has_read) { %>
<span class="marked_icon"><img src='<%- config.site_static_host %>/public/images/checkmark_icon&16.png' title='消息已读'/></span>
<% } else { %>
<span class="marked_icon mark_read_btn">
<img class='unread'
src='<%- config.site_static_host %>/public/images/checkmark_icon&16.png'
title='消息已读'
/>
</span>
<% } %>
</div>