From: W. Trevor King Date: Mon, 2 Apr 2012 17:06:55 +0000 (-0400) Subject: Use yesno instead of default to format inventory mutagen/carcinogen/teratogen. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=812b92591cfdda3d14d6e521defbeb9598a377aa;p=chemdb.git Use yesno instead of default to format inventory mutagen/carcinogen/teratogen. Because 'M' is more descriptive than a 'True' in the 'M' column. --- diff --git a/chemdb/templates/chemdb/doc/inventory.tex b/chemdb/templates/chemdb/doc/inventory.tex index 02c46a3..ff45cfd 100644 --- a/chemdb/templates/chemdb/doc/inventory.tex +++ b/chemdb/templates/chemdb/doc/inventory.tex @@ -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.