Browse Source

Cleanup galleria templates

pull/450/head
Simon Conseil 4 years ago
parent
commit
813acb9251
  1. 50
      sigal/themes/galleria/templates/album_items.html
  2. 32
      sigal/themes/galleria/templates/album_list.html
  3. 2
      sigal/themes/galleria/templates/base.html

50
sigal/themes/galleria/templates/album_items.html

@ -1,35 +1,35 @@
<div class="icons">
<a id="fullscreen"><img src="{{ theme.url }}/img/fullscreen.png"
title="Fullscreen" alt="Fullscreen (f)" /></a>
</div>
{% include 'map.html' %}
<div id="gallery"></div>
<div class="icons">
<a id="fullscreen"><img src="{{ theme.url }}/img/fullscreen.png"
title="Fullscreen" alt="Fullscreen (f)" /></a>
</div>
{% include 'map.html' %}
<div id="gallery"></div>
{% if album.zip %}
{% if album.settings['zip_media_format'] == "orig" %}
<div id="additionnal-infos" class="row">
<p><a href="{{ album.zip }}"
title="Download a zip archive with all images original size">Download ZIP with original files</a></p>
</div>
{% else %}
<div id="additionnal-infos" class="row">
<p><a href="{{ album.zip }}"
title="Download a zip archive with all images">Download ZIP</a></p>
</div>
{% endif %}
{% endif %}
{% if album.zip %}
{% if album.settings['zip_media_format'] == "orig" %}
<div id="additionnal-infos" class="row">
<p><a href="{{ album.zip }}"
title="Download a zip archive with all images original size">Download ZIP with original files</a></p>
</div>
{% else %}
<div id="additionnal-infos" class="row">
<p><a href="{{ album.zip }}"
title="Download a zip archive with all images">Download ZIP</a></p>
</div>
{% endif %}
{% endif %}
{% if album.description %}
<div id="description">
{{ album.description }}
</div>
{% endif %}
{% if album.description %}
<div id="description">
{{ album.description }}
</div>
{% endif %}
{% block late_js %}
{% if album.medias %}
{% macro img_description(media) -%}
{%- if media.big -%}<a href='{{ media.big_url }}'>Full size</a>{%- endif -%}
{# clean up tags and whitespace, including newlines, in the description #}
{# clean up tags and whitespace, including newlines, in the description #}
{%- if media.description -%}<br>{{ media.description | striptags }}{%- endif -%}
{%- if media.exif -%}
<div class='film-meta'>

32
sigal/themes/galleria/templates/album_list.html

@ -1,23 +1,23 @@
{% extends "base.html" %}
{% block extra_head %}
{# These are used on album pages - prefetch now #}
<link rel="prefetch" href="static/jquery-3.3.1.min.js" />
<link rel="prefetch" href="static/galleria.min.js" />
<link rel="prefetch" href="static/themes/classic/galleria.classic.min.js" />
<link rel="prefetch" href="static/plugins/history/galleria.history.min.js" />
{# These are used on album pages - prefetch now #}
<link rel="prefetch" href="static/jquery-3.3.1.min.js" />
<link rel="prefetch" href="static/galleria.min.js" />
<link rel="prefetch" href="static/themes/classic/galleria.classic.min.js" />
<link rel="prefetch" href="static/plugins/history/galleria.history.min.js" />
{% endblock %}
{% block content %}
<div id="albums">
<ul>
{% for alb in album.albums %}
<li><a href="{{ alb.url }}">
<img src="{{ alb.thumbnail }}" class="album_thumb" alt="{{ alb.name }}" title="{{ alb.name }}" /></a>
<span class="album_title">{{ alb.title }}</span>
</li>
{% endfor %}
</ul>
</div>
{% include 'album_items.html' %}
<div id="albums">
<ul>
{% for alb in album.albums %}
<li><a href="{{ alb.url }}">
<img src="{{ alb.thumbnail }}" class="album_thumb" alt="{{ alb.name }}" title="{{ alb.name }}" /></a>
<span class="album_title">{{ alb.title }}</span>
</li>
{% endfor %}
</ul>
</div>
{% include 'album_items.html' %}
{% endblock %}

2
sigal/themes/galleria/templates/base.html

@ -34,7 +34,7 @@
</header>
<div id="main" role="main">
{% block content %}{% endblock content %}
{% block content %}{% endblock content %}
</div>
{% include 'footer.html' %}
</div>

Loading…
Cancel
Save