From 1596c642731e5839da942c7727bbc1fa8016fdee Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 27 Sep 2018 11:33:59 -0500 Subject: version 9 of stylesheet --- app/utils/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/utils') 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): -- cgit v1.2.3-70-g09d2