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