Mercurial > hg > ltpdarepo
changeset 161:6b04cb2e92c9
Show null fields as empty string in object view.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Fri, 04 Nov 2011 11:11:44 +0100 |
parents | d1f0cfc4da0f |
children | bfa740644fc9 |
files | src/ltpdarepo/templates/obj.html |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ltpdarepo/templates/obj.html Fri Nov 04 11:11:42 2011 +0100 +++ b/src/ltpdarepo/templates/obj.html Fri Nov 04 11:11:44 2011 +0100 @@ -4,7 +4,7 @@ <h2>Database «{{ database.id }}» object «{{ obj.name }}»</h2> <table class="obj"> {% for field in fields %} - <tr><th id="{{ field }}">{{ field }}:</th><td>{{ obj[field] }}</td></tr> + <tr><th id="{{ field }}">{{ field }}:</th><td>{{ obj[field] is not none and obj[field] or '' }}</td></tr> {% endfor %} <tr><th>xml:</th><td><a href="{{ url_for('browse.download', frmt='xml', database=database.id, objid=obj.id) }}">download</a></td></tr> <tr><th>binary:</th><td><a href="{{ url_for('browse.download', frmt='mat', database=database.id, objid=obj.id) }}">download</a></td></tr>