Use yesno instead of default to format inventory mutagen/carcinogen/teratogen.
authorW. Trevor King <wking@drexel.edu>
Mon, 2 Apr 2012 17:06:55 +0000 (13:06 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 2 Apr 2012 17:06:55 +0000 (13:06 -0400)
Because 'M' is more descriptive than a 'True' in the 'M' column.

chemdb/templates/chemdb/doc/inventory.tex

index 02c46a336f76f691cfb7b4a297a40af9946f5cda..ff45cfd61ebf24fe7f80f0f579d372341ca03e23 100644 (file)
@@ -44,9 +44,9 @@ ID & Name & Amount & H & F & R & O & M & C & T \\
   {{ chemical_instance.chemical.fire }} &
   {{ chemical_instance.chemical.reactivity }} &
   {{ chemical_instance.chemical.special.all|latex_specials }} &
-  {{ chemical_instance.chemical.mutagen|default:"" }} &
-  {{ chemical_instance.chemical.carcinogen|default:"" }} &
-  {{ chemical_instance.chemical.teratogen|default:"" }} \\
+  {{ chemical_instance.chemical.mutagen|yesno:"M," }} &
+  {{ chemical_instance.chemical.carcinogen|yesno:"C," }} &
+  {{ chemical_instance.chemical.teratogen|yesno:"T," }} \\
 {% endfor %}\end{longtable}
 {% else %}
 No chemicals are available.