| 1 | {capture name=pages} |
| 2 | {if $withtitle} |
| 3 | <div class="pages"> |
| 4 | {if $spool->roots|@count gt $msgbypage} |
| 5 | {section name=pages loop=$spool->roots 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 | {assign var=nextUnread value=$spool->nextUnread()} |
| 23 | {if $nextUnread} |
| 24 | <div class="menu"> |
| 25 | {imglink group=$group artid=$nextUnread img=next_unread alt="Message non-lu suivant"|b accesskey=u} |
| 26 | </div> |
| 27 | {/if} |
| 28 | {"Date"|b} |
| 29 | </th> |
| 30 | <th>{"Sujet"|b}</th> |
| 31 | <th> |
| 32 | {if $protocole->canSend()} |
| 33 | <div class="action"> |
| 34 | {imglink group=$group action=new img=post alt="Nouveau message"|b accesskey=p} |
| 35 | {if $feed_active}{imglink group=$group action=$feed_format img=feed alt="Flux"|b accesskey=f}{/if} |
| 36 | </div> |
| 37 | {/if} |
| 38 | {"Auteur"|b} |
| 39 | </th> |
| 40 | {else} |
| 41 | <th colspan="3">{"En discussion sur "|b}{link group=$group text=$group}...</th> |
| 42 | {/if} |
| 43 | </tr> |
| 44 | {if $spool->roots|@count} |
| 45 | {section name=threads loop=$spool->roots step=1 start=$spool->start() max=$spool->context()} |
| 46 | {assign var=overview value=$spool->roots[$smarty.section.threads.index]} |
| 47 | {assign var=id value=$overview->id} |
| 48 | {cycle assign=class values="impair,pair"} |
| 49 | <tr class="{$class} {if $overview->descunread}new{/if}"> |
| 50 | <td class="date">{$spool->formatDate($overview)}</td> |
| 51 | <td class="subj">{$spool->formatSubject($overview)|smarty:nodefaults}</td> |
| 52 | <td class="from">{$spool->formatFrom($overview)|smarty:nodefaults}</td> |
| 53 | </tr> |
| 54 | {if !$artid && $spool->nextPost($id)} |
| 55 | <tr class="{$class}"> |
| 56 | <td colspan="3" class="thread_tree">{$spool->getTree($id)|smarty:nodefaults}</td> |
| 57 | </tr> |
| 58 | {/if} |
| 59 | {/section} |
| 60 | {else} |
| 61 | <tr> |
| 62 | <td colspan="3"> |
| 63 | {"Aucun message dans ce forum"|b} |
| 64 | </td> |
| 65 | </tr> |
| 66 | {/if} |
| 67 | </table> |
| 68 | {$smarty.capture.pages|smarty:nodefaults} |
| 69 | {if $showboxlist} |
| 70 | <br /> |
| 71 | {include file="banana-boxlist.inc.tpl" grouplist=$groups withstats=true withsubs=false withfeed=false} |
| 72 | {/if} |
| 73 | |
| 74 | {* vim:set et sw=2 sts=2 ts=2 fenc=utf-8: *} |