moved forgot pw views to basic_auth plugin
[mediagoblin.git] / mediagoblin / templates / mediagoblin / utils / exif.html
CommitLineData
cc7ca4da
JW
1{#
2# GNU MediaGoblin -- federated, autonomous media hosting
cf29e8a8 3# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
cc7ca4da
JW
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU Affero General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU Affero General Public License for more details.
14#
15# You should have received a copy of the GNU Affero General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17#}
18
19{% block exif_content %}
420e1374
GS
20<noscript>
21 <style type="text/css">
22 #exif_additional_info {
23 display: block;
24 }
25 </style>
26</noscript>
27<div id="exif_content">
729424be 28 {% if app_config['exif_visible']
f116a124
E
29 and media.media_data
30 and media.media_data.exif_all is defined
31 and media.media_data.exif_all %}
420e1374
GS
32 <h3>Camera Information</h3>
33 <table id="exif_camera_information">
34 <tbody>
14aa2eaa 35 {% for label, value in media.exif_display_data_short().iteritems() %}
420e1374 36 <tr>
14aa2eaa
JW
37 <td class="col1">{{ label }}</td>
38 <td>{{ value }}</td>
420e1374 39 </tr>
14aa2eaa 40 {% endfor %}
420e1374
GS
41 </tbody>
42 </table>
43 <h3 id="exif_additional_info_button" class="button_action">
44 Additional Information
45 </h3>
46 <div id="exif_additional_info">
47 <table class="exif_info">
f116a124 48 {% for key, tag in media.exif_display_iter() %}
cc7ca4da 49 <tr>
420e1374 50 <td class="col1">{{ key }}</td>
cc7ca4da
JW
51 <td>{{ tag.printable }}</td>
52 </tr>
53 {% endfor %}
54 </table>
420e1374 55 </div>
cc7ca4da 56 {% endif %}
420e1374
GS
57<script type="text/javascript">
58$(document).ready(function(){
59
60$("#exif_additional_info_button").click(function(){
61 $("#exif_additional_info").slideToggle("slow");
62});
63
64});
65</script>
66</div> <!-- end exif_content div -->
cc7ca4da 67{% endblock %}