From 812b92591cfdda3d14d6e521defbeb9598a377aa Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 2 Apr 2012 13:06:55 -0400 Subject: [PATCH] Use yesno instead of default to format inventory mutagen/carcinogen/teratogen. Because 'M' is more descriptive than a 'True' in the 'M' column. --- chemdb/templates/chemdb/doc/inventory.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. -- 2.26.2