Skip to content

Commit

Permalink
fix issue with picture plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinit Kumar committed Jul 18, 2017
1 parent ea3f121 commit d06327c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion djangocms_picture/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '1.0.7'
__version__ = '1.0.8'
3 changes: 2 additions & 1 deletion djangocms_picture/templates/djangocms_picture/picture.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
{% if picture.image.width < 800 %}
<img src="{{ picture.image.url }}" alt="{{ picture.alt }}"{% if picture.longdesc %} title="{{ picture.longdesc }}"{% endif %}{% if picture.width %} width="{{ picture.width }}px"{% endif %}{% if picture.height %} height="{{ picture.height }}px"{% endif %} class="img-responsive" />
{% else %}
{% thumbnail picture.image 800x800 as image %}
<img src="{{ image.url }}" alt="{{ picture.alt }}"{% if picture.longdesc %} title="{{ picture.longdesc }}"{% endif %} class="img-responsive" />
{% endif %}
{% if link %}</a>{% endif %}
</span>

0 comments on commit d06327c

Please sign in to comment.