discourse-legacysite-perl/site/forum/include_message_list.html

31 lines
1.0 KiB
HTML
Raw Normal View History

2024-06-17 12:24:05 +00:00
<%~if messages.length%>
<div class="dbody">
<%~loop messages%>
<div class="drow">
<div class="dcell icon">
<input type="checkbox" name="delete" value="<%msg_id%>" class="checkbox" />
</div>
<div class="dcell status">
<%~set title = ''%><%set icon_class = ''%>
<%~if msg_status == 0%>
<%~set title = 'New message!'%><%set icon_class = 'sprite-message'%>
<%~elsif msg_status == 2%>
<%~set title = 'Replied message'%><%set icon_class = 'sprite-message-replied'%>
<%~else%>
<%~set title = 'Read message'%><%set icon_class = 'sprite-message-read'%>
<%~endif%>
<span class="<%icon_class%>" title="<%title%>"></span>
</div>
<div class="dcell subject">
<a href="<%GForum::SEO::url(params => "message=$msg_id")%>"><%msg_subject%></a>
</div>
<div class="dcell from">
<%set include_username_display = $msg_username~%>
<%include include_username.html%>
</div>
<div class="dcell date"><%msg_date%></div>
</div>
<%~endloop%>
</div>
<%endif%>