diff options
author | tilly-Q <nattilypigeonfowl@gmail.com> | 2014-04-21 15:46:02 -0400 |
---|---|---|
committer | tilly-Q <nattilypigeonfowl@gmail.com> | 2014-04-21 15:46:02 -0400 |
commit | 0656de67954bc33c92555cbd48d0c51ca20a0e50 (patch) | |
tree | 5eb988d15dfb6bb13c43a1a739469ca2dabf3c6c | |
parent | 8ccd560ca2c480bb55f8caf1ddc035731eee11ca (diff) | |
download | mediagoblin-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.html | 13 |
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 %} |