message-list.hbs
1.14 KB
<div class="message-list">
{{#if messages.empty}}
{{#with messages}}
{{> empty}}
{{/with}}
{{^}}
<table>
{{# messages}}
<tr{{#if isNew}} class="new-msg"{{/if}}>
<td width="37">
<input type="checkbox" class="msg-check" value="{{id}}">
</td>
<td class="td-sender"><a href="{{href}}">{{sender}}</a></td>
<td class="td-title"><a href="{{href}}">{{title}}</a></td>
<td width="130">{{time}}</td>
<td>
<a class="del-btn" data-id="{{id}}">删除</a>
</td>
</tr>
{{/ messages}}
<tr class="list-foot">
<td>
<input type="checkbox" class="choose-all">
</td>
<td colspan="4">
<button class="del-choose-btn">删除选中的消息</button>
<button class="read-choose-btn">标记为已读</button>
</td>
</tr>
</table>
{{/if}}
</div>