diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/styles.css | 4 | ||||
| -rw-r--r-- | templates/template_picture.html | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/templates/styles.css b/templates/styles.css index b96f19f..ea337f9 100644 --- a/templates/styles.css +++ b/templates/styles.css @@ -175,6 +175,10 @@ div.exif td { font-weight: bold; } +div.no_exif { + padding: 1em 0 0 2.6em; + font-size: 80%; +} /****** GENERAL CLASSES ******/ div.position_marker { diff --git a/templates/template_picture.html b/templates/template_picture.html index 07c79ec..d164b6d 100644 --- a/templates/template_picture.html +++ b/templates/template_picture.html @@ -20,7 +20,9 @@ <span class="navposspacer"></span> <a href="$(LINK_PREV)">< Previous</a> :: <a href="$(LINK_NEXT)">Next ></a> </div> - <div class="navexif">ISO <!-- $(get_exif_value_fixed("Exif.Photo.ISOSpeedRatings")) --> :: <!-- $(get_exif_value_fixed("Exif.Photo.ExposureTime")) --> :: <!-- $(get_exif_value_fixed("Exif.Photo.FNumber")) --> :: <!-- $(get_exif_value_fixed("Exif.Photo.FocalLength")) --></div> + <!-- $(ifdef(HAS_EXIF)) --> + <div class="navexif">ISO <!-- $(get_exif_value_fixed("Exif.Photo.ISOSpeedRatings")) --> :: <!-- $(get_exif_value_fixed("Exif.Photo.ExposureTime")) --> :: <!-- $(get_exif_value_fixed("Exif.Photo.FNumber")) --> :: <!-- $(get_exif_value_fixed("Exif.Photo.FocalLength")) --></div> + <!-- $(endif(HAS_EXIF)) --> </div> @@ -45,7 +47,8 @@ <!-- ## EXIF --> <div class="exif"> <div id="exif_table" style="display: none;"> - :: <a href="javascript: set_exif_table_visibility('no'); write_exif_table_cookie('no');">Hide EXIF</a> + :: <a href="javascript: set_exif_table_visibility('no'); write_exif_table_cookie('no');">Hide EXIF</a><br/> + <!-- $(ifdef(HAS_EXIF)) --> <table><tbody> <tr><td>Date: </td> <td><!-- $(get_exif_value_fixed("Exif.Photo.DateTimeOriginal")) --></td></tr> <tr><td>Camera: </td> <td><!-- $(get_exif_value_fixed("Exif.Image.Model")) --></td></tr> @@ -55,6 +58,11 @@ <tr><td>Exposure time: </td> <td><!-- $(get_exif_value_fixed("Exif.Photo.ExposureTime")) --></td></tr> <tr><td>Flash: </td> <td><!-- $(get_exif_value_fixed("Exif.Photo.Flash")) --></td></tr> </tbody></table> + <!-- $(else(HAS_EXIF)) --> + <div class="no_exif"> + No EXIF information available. + </div> + <!-- $(endif(HAS_EXIF)) --> </div> <div id="exif_line" style="display: block;"> :: <a href="javascript: set_exif_table_visibility('yes'); write_exif_table_cookie('yes');">Show EXIF</a> |
