projects
/
mediagoblin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use exif_display_iter in the template.
[mediagoblin.git]
/
mediagoblin
/
templates
/
mediagoblin
/
utils
/
exif.html
diff --git
a/mediagoblin/templates/mediagoblin/utils/exif.html
b/mediagoblin/templates/mediagoblin/utils/exif.html
index 37f274fe0dcdfc94ef38cdf77771bfea5e119b41..a89e69c8923900f2c810eb661eabfa333c34044a 100644
(file)
--- a/
mediagoblin/templates/mediagoblin/utils/exif.html
+++ b/
mediagoblin/templates/mediagoblin/utils/exif.html
@@
-18,11
+18,12
@@
{% block exif_content %}
{% if app_config['exif_visible']
{% block exif_content %}
{% if app_config['exif_visible']
- and media.media_data.exif is defined
- and media.media_data.exif.has_key('useful') %}
+ and media.media_data
+ and media.media_data.exif_all is defined
+ and media.media_data.exif_all %}
<h3>EXIF</h3>
<table>
<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>
<tr>
<td>{{ key }}</td>
<td>{{ tag.printable }}</td>