[% PROCESS sub/date.html %]

[% WRAPPER 'message/bar.html' %]

<div class='one'> 
<table align='center'>
<tr align='center' class="title">
    <td width='42'>[% c.loc('Status') %]</td>
    <td width='100'>[% c.loc('From') %]</td>
    <td align='left'>[% c.loc('Subject') %]</td>
    <td width='120'>[% c.loc('Date') %]</td>
    <td width='60'>[% c.loc('Action') %]</td>
</tr>
[% FOREACH message IN messages %]
<tr align='center' class="[% IF loop.count % 2 %]misc1[% ELSE %]misc2[% END %]">
    <td>[% IF unread.${message.message_id} %]<img src='[% c.config.dir.images %]/site/new.gif' />[% ELSE %]&nbsp;[% END %]</td>
    <td><a href='/u/[% message.sender.username %]'>[% message.sender.nickname %]</a></td>
    <td align='left'><a href='/message/[% message.message_id %]'>[% message.title %]</a></td>
    <td><span class='date'>[% date_format(message.post_on) %]</span></td>
    <td><a href='/message/[% message.message_id %]/delete'>[% c.loc('Delete') %]</a></td>
</tr>
[% END %]
<tr><td colspan='5'>[% INCLUDE sub/pager.html %]</td></tr>
</table>
</div>

[% END %]
