aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilly-Q <nattilypigeonfowl@gmail.com>2014-04-21 15:46:02 -0400
committertilly-Q <nattilypigeonfowl@gmail.com>2014-04-21 15:46:02 -0400
commit0656de67954bc33c92555cbd48d0c51ca20a0e50 (patch)
tree5eb988d15dfb6bb13c43a1a739469ca2dabf3c6c
parent8ccd560ca2c480bb55f8caf1ddc035731eee11ca (diff)
downloadmediagoblin-0656de67954bc33c92555cbd48d0c51ca20a0e50.tar.lz
mediagoblin-0656de67954bc33c92555cbd48d0c51ca20a0e50.tar.xz
mediagoblin-0656de67954bc33c92555cbd48d0c51ca20a0e50.zip
Made it so that the metadata table only shows terms with filled values
-rw-r--r--mediagoblin/templates/mediagoblin/utils/metadata_table.html13
1 files changed, 6 insertions, 7 deletions
diff --git a/mediagoblin/templates/mediagoblin/utils/metadata_table.html b/mediagoblin/templates/mediagoblin/utils/metadata_table.html
index 38b580d5..166d5716 100644
--- a/mediagoblin/templates/mediagoblin/utils/metadata_table.html
+++ b/mediagoblin/templates/mediagoblin/utils/metadata_table.html
@@ -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 %}