Look improvements. Can identify unread message and switch from a message to
[banana.git] / banana / templates / banana-thread.inc.tpl
CommitLineData
4f7c063d 1{capture name=pages}
7027794f 2{if $withtitle}
3<div class="pages">
4f7c063d 4{if $spool->overview|@count gt $msgbypage}
7027794f 5{section name=pages loop=$spool->overview step=$msgbypage}
4f7c063d 6 {if $first ge $smarty.section.pages.index && $first lt $smarty.section.pages.index_next}
7027794f 7 <strong>{$smarty.section.pages.iteration}</strong>
8 {else}
9 {link group=$group first=$smarty.section.pages.index text=$smarty.section.pages.iteration}
10 {/if}
11{/section}
12{/if}
13</div>
14{/if}
4f7c063d 15{/capture}
16
17{$smarty.capture.pages|smarty:nodefaults}
7027794f 18<table class="bicol thread">
19 <tr>
20 {if $withtitle}
21 <th>
22 {if $spool->nextUnread()}
23 <div class="menu">
a0b2e16c 24 {imglink group=$group artid=$spool->nextUnread() img=next_unread alt="Message non-lu suivant"|b accesskey=u}
7027794f 25 </div>
26 {/if}
a0b2e16c 27 {"Date"|b}
7027794f 28 </th>
a0b2e16c 29 <th>{"Sujet"|b}</th>
7027794f 30 <th>
31 {if $protocole->canSend()}
32 <div class="action">
a0b2e16c 33 {imglink group=$group action=new img=post alt="Nouveau message"|b accesskey=p}
e02edbfe 34 {if $feed_active}{imglink group=$group action=$feed_format img=feed alt="Flux"|b accesskey=f}{/if}
7027794f 35 </div>
36 {/if}
a0b2e16c 37 {"Auteur"|b}
7027794f 38 </th>
39 {else}
40 <th colspan="3">
a0b2e16c 41 {"Aperçu de "|b}{link group=$group text=$group}
7027794f 42 </th>
43 {/if}
44 </tr>
45 {if $spool->overview|@count}
4f7c063d 46 {if $artid}{$spool->toHtml($artid, true)|smarty:nodefaults}{else}{$spool->toHtml($first)|smarty:nodefaults}{/if}
7027794f 47 {else}
48 <tr>
49 <td colspan="3">
a0b2e16c 50 {"Aucun message dans ce forum"|b}
7027794f 51 </td>
52 </tr>
53 {/if}
54</table>
8bfa4595 55{if $showboxlist}
7027794f 56{include file="banana-boxlist.inc.tpl" grouplist=$groups withstats=true}
8bfa4595 57{/if}
4f7c063d 58{$smarty.capture.pages|smarty:nodefaults}
7027794f 59
598a1c53 60{* vim:set et sw=2 sts=2 ts=2 enc=utf-8: *}