Add basic support for a json output.
[banana.git] / banana / templates / banana-boxlist.inc.tpl
1 {if $grouplist|@count}
2 {if $withsubs}
3 <form action="{url action=subscribe}" method="post">
4 <p style="text-align: center">
5   <input type="submit" name="validsubs" value="{"Valider"|b}" />
6 </p>
7 {/if}
8 <table class="bicol banana_box_list">
9   <tr>
10     {if $withsubs}
11     <th></th>
12     {/if}
13     {if $withstats}
14     <th>{"Total"|b}</th>
15     <th>{"Nouveaux"|b}</th>
16     {/if}
17     <th>{"Nom"|b}</th>
18     <th>
19       {if $withfeed}
20       <div class="action">
21         {imglink action=$feed_format img=feed alt="Flux"|b accesskey=f}
22       </div>
23       {/if}
24       {"Description"|b}
25     </th>
26   </tr>
27   {foreach from=$grouplist key=name item=grp}
28   <tr class="{cycle values="impair,pair"}">
29     {if $withsubs}
30     <td>
31       <input type="checkbox" name="subscribe[{$name}]" {if in_array($name, $profile.subscribe)}checked="checked"{/if} />
32     </td>
33     {/if}
34     {if $withstats}
35     <td style="text-align: center">{if $grp.msgnum eq 0}-{else}{$grp.msgnum}{/if}</td>
36     <td style="text-align: center">{if $grp.unread eq 0}-{else}{$grp.unread}{/if}</td>
37     {/if}
38     <td class="grp">{link group=$name text=$name}</td>
39     <td class="dsc">{$grp.desc}</td>
40   </tr>
41   {/foreach}
42 </table>
43 {if $withsubs}
44 <p style="text-align: center">
45   <input type="submit" name="validsubs" value="{"Valider"|b}" />
46 </p>
47 </form>
48 {/if}
49 {/if}
50
51 {* vim:set et sw=2 sts=2 ts=2 enc=utf-8: *}