diff --git a/sigal/themes/galleria/templates/album.html b/sigal/themes/galleria/templates/album.html index 3187519..65500da 100644 --- a/sigal/themes/galleria/templates/album.html +++ b/sigal/themes/galleria/templates/album.html @@ -14,235 +14,7 @@ {% endblock %} {% block content %} -
- {% if settings.show_map and album.show_map %} - Show/Hide Map (m) - {% endif %} - Fullscreen (f) -
- + {% include 'album_items.html' %} - {% if album.zip %} -
-

Download ZIP -

-
- {% endif %} - - {% if album.description %} -
- {{ album.description }} -
- {% endif %} {% endblock %} -{% block late_js %} - {% macro img_description(media) -%} - {%- if media.big -%}Full size{%- endif -%} - {# clean up tags and whitespace, including newlines, in the description #} - {%- if media.description -%}
{{ media.description | striptags }}{%- endif -%} - {%- if media.exif -%} -
- {%- if media.exif.iso -%}{{ media.exif.iso }} {%- endif -%} - {%- if media.exif.exposure -%}{{ media.exif.exposure }} {%- endif -%} - {%- if media.exif.fstop -%}{{ media.exif.fstop }} {%- endif -%} - {%- if media.exif.focal -%}{{ media.exif.focal }} {%- endif -%} -
- {%- if media.exif.gps -%} - {{ 'N{:.6f}'.format(media.exif.gps.lat) if media.exif.gps.lat > 0 else 'S{:.6f}'.format(-media.exif.gps.lat) }}{{ 'E{:.6f}'.format(media.exif.gps.lon) if media.exif.gps.lon > 0 else 'W{:.6f}'.format(-media.exif.gps.lon) }} - {%- endif -%} - {%- if media.exif.Make or media.exif.Model -%} - {{ media.exif.Make }} {{ media.exif.Model }} - {%- endif -%} - {%- if media.exif.datetime -%} - {{ media.exif.datetime }} - {%- endif -%} - {% endif %} - {%- endmacro %} - - - {% if settings.show_map and album.show_map %} - - - {% endif %} - - - - -{% endblock %} diff --git a/sigal/themes/galleria/templates/album_items.html b/sigal/themes/galleria/templates/album_items.html new file mode 100644 index 0000000..ded498c --- /dev/null +++ b/sigal/themes/galleria/templates/album_items.html @@ -0,0 +1,233 @@ +
+ {% if settings.show_map and album.show_map %} + Show/Hide Map (m) + {% endif %} + Fullscreen (f) +
+ + + {% if album.zip %} +
+

Download ZIP +

+
+ {% endif %} + + {% if album.description %} +
+ {{ album.description }} +
+ {% endif %} + +{% block late_js %} + {% if album.medias %} + {% macro img_description(media) -%} + {%- if media.big -%}Full size{%- endif -%} + {# clean up tags and whitespace, including newlines, in the description #} + {%- if media.description -%}
{{ media.description | striptags }}{%- endif -%} + {%- if media.exif -%} +
+ {%- if media.exif.iso -%}{{ media.exif.iso }} {%- endif -%} + {%- if media.exif.exposure -%}{{ media.exif.exposure }} {%- endif -%} + {%- if media.exif.fstop -%}{{ media.exif.fstop }} {%- endif -%} + {%- if media.exif.focal -%}{{ media.exif.focal }} {%- endif -%} +
+ {%- if media.exif.gps -%} + {{ 'N{:.6f}'.format(media.exif.gps.lat) if media.exif.gps.lat > 0 else 'S{:.6f}'.format(-media.exif.gps.lat) }}{{ 'E{:.6f}'.format(media.exif.gps.lon) if media.exif.gps.lon > 0 else 'W{:.6f}'.format(-media.exif.gps.lon) }} + {%- endif -%} + {%- if media.exif.Make or media.exif.Model -%} + {{ media.exif.Make }} {{ media.exif.Model }} + {%- endif -%} + {%- if media.exif.datetime -%} + {{ media.exif.datetime }} + {%- endif -%} + {% endif %} + {%- endmacro %} + + + {% if settings.show_map and album.show_map %} + + + {% endif %} + + + + + {% endif %} +{% endblock %} diff --git a/sigal/themes/galleria/templates/album_list.html b/sigal/themes/galleria/templates/album_list.html index 9670e21..558c6ad 100644 --- a/sigal/themes/galleria/templates/album_list.html +++ b/sigal/themes/galleria/templates/album_list.html @@ -24,10 +24,8 @@ {% endfor %} + {% include 'album_items.html' %} + + - {% if album.description %} -
- {{ album.description }} -
- {% endif %} {% endblock %}