Made it so that the metadata table only shows terms with filled values

This commit is contained in:
tilly-Q 2014-04-21 15:46:02 -04:00
parent 8ccd560ca2
commit 0656de6795

View File

@ -24,13 +24,12 @@
{{ prefix }} {{ metadata_context[prefix] }}
{%- endfor %}">
{%- for key, value in metadata.iteritems() if not key=='@context' %}
<tr>
<td>{{ format_predicate(key) }}</td>
{% if value -%}
<td property="{{ key }}">{{ value }}</td>
{%- else -%}
<td></td>
{%- endif -%}
{% if value -%}
<tr>
<td>{{ format_predicate(key) }}</td>
<td property="{{ key }}">{{ value }}</td>
</tr>
{%- endif -%}
{%- endfor %}
</table>
{% endif %}