Made it so that the metadata table only shows terms with filled values
This commit is contained in:
parent
8ccd560ca2
commit
0656de6795
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user