aboutsummaryrefslogtreecommitdiff
path: root/bgstack15-gallery-theme/templates/album_list.html
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2021-02-01 09:07:23 -0500
committerB Stack <bgstack15@gmail.com>2021-02-01 09:07:23 -0500
commita4481dc007ff202882b783ed4b36e03a8b4c1d05 (patch)
tree0f8b5ccb6ea5e966e8d517b07936479ef49b3516 /bgstack15-gallery-theme/templates/album_list.html
downloadgallery-a4481dc007ff202882b783ed4b36e03a8b4c1d05.tar.gz
gallery-a4481dc007ff202882b783ed4b36e03a8b4c1d05.tar.bz2
gallery-a4481dc007ff202882b783ed4b36e03a8b4c1d05.zip
initial commit
Diffstat (limited to 'bgstack15-gallery-theme/templates/album_list.html')
-rw-r--r--bgstack15-gallery-theme/templates/album_list.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/bgstack15-gallery-theme/templates/album_list.html b/bgstack15-gallery-theme/templates/album_list.html
new file mode 100644
index 0000000..8955992
--- /dev/null
+++ b/bgstack15-gallery-theme/templates/album_list.html
@@ -0,0 +1,22 @@
+{% extends "base.html" %}
+{% block content %}
+ {% set numbers = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine"] %}
+ {% set column_size = settings.colorbox_column_size %}
+ {% set nb_columns = (9 / column_size)|int %}
+ {% set column_size_t = numbers[column_size] %}
+
+ {% for alb in album.albums %}
+ {% if loop.index % nb_columns == 1 %}
+ <div id="albums" class="row">
+ {% endif%}
+ <div class="{{ column_size_t }} columns thumbnail">
+ <a href="{{ alb.url }}">
+ <img src="{{ alb.thumbnail }}" class="album_thumb"
+ alt="{{ alb.title }}" title="{{ alb.title }}" /></a>
+ <span class="album_title">{{ alb.title }}<p></span>
+ </div>
+ {% if loop.last or loop.index % nb_columns == 0 %}
+ </div>
+ {% endif%}
+ {% endfor %}
+{% endblock %}
bgstack15