Use exif_display_iter in the template.
[mediagoblin.git] / mediagoblin / templates / mediagoblin / utils / exif.html
index 3c1f4cebcf5c9dee47824a0677c5bd5b0ab6d1bc..a89e69c8923900f2c810eb661eabfa333c34044a 100644 (file)
 
 {% block exif_content %}
   {% if app_config['exif_visible']
-        and media.media_data.exif is defined
-        and media.media_data.exif.has_key('useful') %}
-    <h3 class="sidedata">EXIF</h3>
+        and media.media_data
+        and media.media_data.exif_all is defined
+        and media.media_data.exif_all %}
+    <h3>EXIF</h3>
     <table>
-      {% for key, tag in media.media_data.exif.useful.items() %}
+      {% for key, tag in media.exif_display_iter() %}
         <tr>
           <td>{{ key }}</td>
           <td>{{ tag.printable }}</td>