Removing the prefix stuff

This commit is contained in:
Christopher Allan Webber 2014-05-11 18:47:55 -05:00
parent fd7069632b
commit fbea284aeb

View File

@ -20,8 +20,9 @@
{%- set metadata=media_entry.media_metadata %}
{%- set metadata_context=metadata['@context'] %}
{%- if metadata %}
<table prefix="{% for p in metadata_context %}{% if not loop.first %}
{% endif %}{{ p }} {{ metadata_context[p] }}{% endfor -%}">
{#- NOTE: In some smart future where the context is more extensible,
we will need to add to the prefix here-#}
<table>
{%- for key, value_dict in metadata.iteritems() if not key=='@context' %}
{% if value_dict['@value'] -%}
<tr>