Add basic support for a json output.
[banana.git] / banana / templates / banana-boxlist.inc.tpl
index bd5d073..38ab181 100644 (file)
@@ -1,11 +1,11 @@
-{if $groups|@count}
+{if $grouplist|@count}
 {if $withsubs}
 <form action="{url action=subscribe}" method="post">
 <p style="text-align: center">
   <input type="submit" name="validsubs" value="{"Valider"|b}" />
 </p>
 {/if}
-<table class="bicol">
+<table class="bicol banana_box_list">
   <tr>
     {if $withsubs}
     <th></th>
     <th>{"Nouveaux"|b}</th>
     {/if}
     <th>{"Nom"|b}</th>
-    <th>{"Description"|b}</th>
+    <th>
+      {if $withfeed}
+      <div class="action">
+        {imglink action=$feed_format img=feed alt="Flux"|b accesskey=f}
+      </div>
+      {/if}
+      {"Description"|b}
+    </th>
   </tr>
-  {foreach from=$groups key=name item=grp}
+  {foreach from=$grouplist key=name item=grp}
   <tr class="{cycle values="impair,pair"}">
     {if $withsubs}
     <td>