62 lines
1.8 KiB
HTML
62 lines
1.8 KiB
HTML
@(me: User, threads: Paginator[lila.message.Thread])(implicit ctx: Context)
|
|
|
|
@message.layout(
|
|
title = trans.inbox.txt()) {
|
|
<div id="lichess_message" class="content_box no_padding">
|
|
<div class="head with_actions">
|
|
<h1>@trans.inbox()</h1>
|
|
@if(threads.nbResults > 0) {
|
|
<div class="actions">
|
|
<select class="select">
|
|
<option value="">Select</option>
|
|
<option value="all">All</option>
|
|
<option value="none">None</option>
|
|
<option value="unread">Unread</option>
|
|
<option value="read">Read</option>
|
|
</select>
|
|
<select class="action">
|
|
<option value="">Do</option>
|
|
<option value="unread">Mark as unread</option>
|
|
<option value="read">Mark as read</option>
|
|
<option value="delete">Delete</option>
|
|
</select>
|
|
</div>
|
|
}
|
|
</div>
|
|
<table>
|
|
@if(threads.nbResults > 0) {
|
|
<tbody class="infinitescroll">
|
|
@if(threads.hasToPaginate) {
|
|
<tr><th class="pager none">
|
|
<a rel="next" href="@routes.Message.inbox(threads.nextPage | 1)">Next</a>
|
|
</th></tr>
|
|
}
|
|
@threads.currentPageResults.map { thread =>
|
|
<tr class="paginated_element @if(thread.isUnReadBy(me)){ new} @if(thread.asMod){ mod}">
|
|
<td class="author">
|
|
@userIdLink(thread.visibleOtherUserId(me), none)
|
|
</td>
|
|
<td class="subject">
|
|
<a href="@routes.Message.thread(thread.id)#bottom">@thread.name</a>
|
|
</td>
|
|
<td class="date">@momentFromNow(thread.updatedAt)</td>
|
|
<td class="check">
|
|
<input type="checkbox" name="threads" value="@thread.id" />
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
} else {
|
|
<tbody>
|
|
<tr>
|
|
<td class="no_messages">
|
|
@trans.noNewMessages()
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
}
|