diff options
author | luxagraf <sng@luxagraf.net> | 2016-11-18 08:25:22 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-11-18 08:25:22 -0500 |
commit | 99a23d820bc0abd93aa55ab53f0c8f1a5598175f (patch) | |
tree | 2ec4038639924619782f4bfeccf6a8f05dc3849c /app/utils | |
parent | 367ca2fa4682d26507f56a91f93baa7680764b93 (diff) |
photo parser now creates size if it doesn't exist and picwide within
image clusters gets responsive images
Diffstat (limited to 'app/utils')
-rw-r--r-- | app/utils/widgets.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/utils/widgets.py b/app/utils/widgets.py index 4f96e38..3c97b12 100644 --- a/app/utils/widgets.py +++ b/app/utils/widgets.py @@ -158,8 +158,7 @@ def parse_image(s): print('caption'+str(caption)) else: css_class = cl[0] - c = Context({'image': i, 'caption': caption, 'exif': exif, 'cluster_class': cluster_class, 'extra':extra}) - return render_to_string("lib/img_%s.html" % css_class, c) + return render_to_string("lib/img_%s.html" % css_class, {'image': i, 'caption': caption, 'exif': exif, 'cluster_class': cluster_class, 'extra':extra}) def parse_video(s): |