Made it so that the metadata table only shows terms with filled values
authortilly-Q <nattilypigeonfowl@gmail.com>
Mon, 21 Apr 2014 19:46:02 +0000 (15:46 -0400)
committertilly-Q <nattilypigeonfowl@gmail.com>
Mon, 21 Apr 2014 19:46:02 +0000 (15:46 -0400)
mediagoblin/templates/mediagoblin/utils/metadata_table.html

index 38b580d5e0e04c88b9422cec319629a4488ad9fe..166d57161e37e1c634ae1ba7c034e15092179ba4 100644 (file)
                      {{ 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 %}