summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/table.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/admin/table.html.tmpl')
-rw-r--r--template/en/default/admin/table.html.tmpl15
1 files changed, 12 insertions, 3 deletions
diff --git a/template/en/default/admin/table.html.tmpl b/template/en/default/admin/table.html.tmpl
index ac4e5a666..fd1382b14 100644
--- a/template/en/default/admin/table.html.tmpl
+++ b/template/en/default/admin/table.html.tmpl
@@ -37,6 +37,7 @@
# text in the column.
# allow_html_content: if defined, then this column allows html content
# so it will not be filtered
+ # yesno_field: Turn the data from 0/!0 into Yes/No
#
# data:
# array of hashes representing the data for the table.
@@ -79,10 +80,18 @@
[% IF c.content %]
[% c.content %]
[% ELSE %]
- [% IF c.allow_html_content %]
- [% row.${c.name} FILTER none %]
+ [% IF c.yesno_field %]
+ [% IF row.${c.name} %]
+ Yes
+ [% ELSE %]
+ No
+ [% END %]
[% ELSE %]
- [% row.${c.name} FILTER html %]
+ [% IF c.allow_html_content %]
+ [% row.${c.name} FILTER none %]
+ [% ELSE %]
+ [% row.${c.name} FILTER html %]
+ [% END %]
[% END %]
[% END %]