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