Add basic support for a json output.
[banana.git] / banana / templates / banana-boxlist.inc.tpl
index 7c12488..38ab181 100644 (file)
@@ -1,23 +1,30 @@
-{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" />
+  <input type="submit" name="validsubs" value="{"Valider"|b}" />
 </p>
 {/if}
-<table class="bicol">
+<table class="bicol banana_box_list">
   <tr>
     {if $withsubs}
     <th></th>
     {/if}
     {if $withstats}
-    <th>Total</th>
-    <th>Nouveaux</th>
+    <th>{"Total"|b}</th>
+    <th>{"Nouveaux"|b}</th>
     {/if}
-    <th>Nom</th>
-    <th>Description</th>
+    <th>{"Nom"|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>
@@ -35,7 +42,7 @@
 </table>
 {if $withsubs}
 <p style="text-align: center">
-  <input type="submit" name="validsubs" value="Valider" />
+  <input type="submit" name="validsubs" value="{"Valider"|b}" />
 </p>
 </form>
 {/if}