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