From: tilly-Q Date: Mon, 12 May 2014 18:27:26 +0000 (-0400) Subject: Made the metadata table look pretty X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9ceea31c5b99201e8a222234980491b634b814c5;p=mediagoblin.git Made the metadata table look pretty --- diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index bb2a2cbd..df0e850b 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -610,6 +610,24 @@ a img.media_image { cursor: zoom-in; } +table.metadata_info { + font-size:85%; + margin-left:10px; +} + +table.metadata_info tr.highlight { + color:#f7f7f7; +} + +table.metadata_info th { + font-weight: bold; + border-spacing: 10px; + text-align: left; +} +table.metadata_info td { + padding: 4px 8px; +} + /* icons */ img.media_icon { diff --git a/mediagoblin/templates/mediagoblin/utils/metadata_table.html b/mediagoblin/templates/mediagoblin/utils/metadata_table.html index b4c37dbd..edbee2c2 100644 --- a/mediagoblin/templates/mediagoblin/utils/metadata_table.html +++ b/mediagoblin/templates/mediagoblin/utils/metadata_table.html @@ -20,10 +20,12 @@ {%- set metadata=media_entry.media_metadata %} {%- set metadata_context=metadata['@context'] %} {%- if metadata %} - - {%- for key, value in metadata.iteritems() if not key=='@context' %} - - +

{% trans %}Metadata Information{% endtrans %}

+
{{ format_predicate(key) }}
+ {%- for key, value in metadata.iteritems() if ( + not key=='@context' and value) %} + +
{{ format_predicate(key) }} {{ value }}