diff options
author | luxagraf <sng@luxagraf.net> | 2018-09-27 11:33:59 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-09-27 11:33:59 -0500 |
commit | 1596c642731e5839da942c7727bbc1fa8016fdee (patch) | |
tree | c8630e2332d4e40a3335a67f1931462eb020c700 /app/utils | |
parent | efabaed1ef7ec2baafabed9dfd3c08dc192d98bd (diff) |
version 9 of stylesheet
Diffstat (limited to 'app/utils')
-rw-r--r-- | app/utils/util.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/utils/util.py b/app/utils/util.py index 4cc7d31..1ceb699 100644 --- a/app/utils/util.py +++ b/app/utils/util.py @@ -57,9 +57,11 @@ def parse_image(s): caption = False exif = False cluster_class = None + is_cluster = False extra = None if cl[0] == 'cluster': css_class = cl[0] + is_cluster = True cluster_class = cl[1] try: if cl[2] == 'caption': @@ -89,7 +91,7 @@ def parse_image(s): print('caption'+str(caption)) else: css_class = cl[0] - return render_to_string("lib/img_%s.html" % css_class, {'image': i, 'caption': caption, 'exif': exif, 'cluster_class': cluster_class, 'extra':extra}) + return render_to_string("lib/img_%s.html" % css_class, {'image': i, 'caption': caption, 'exif': exif, 'is_cluster': is_cluster, 'cluster_class': cluster_class, 'extra': extra}) def render_images(s): |