Permalink
Browse files

Revert "change field name in template to reflect model change."

This reverts commit 6a04ebe.
  • Loading branch information...
stefanfoulis committed Jun 14, 2012
1 parent 3998082 commit 2c4074c83ae79667c623b25601f27bab895c0ac0
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/cmsplugin_filer_image/templates/cmsplugin_filer_image/image.html
@@ -9,16 +9,16 @@
{% else %}
{% thumbnail instance.image opts.size crop=opts.crop upscale=opts.upscale as thumbnail %}
{% endif %}
- {% if link %}<a href="{{ link }}">{% endif %}<img{% if instance.alignment %} class="{{ instance.alignment }}"{% endif %} alt="{% if instance.alt %}{{ instance.alt }}{% endif %}" src="{{ thumbnail.url }}"{% if instance.caption_text %} title="{{ instance.caption_text }}"{% endif %} />{% if link %}</a>{% endif %}
+ {% if link %}<a href="{{ link }}">{% endif %}<img{% if instance.alignment %} class="{{ instance.alignment }}"{% endif %} alt="{% if instance.alt %}{{ instance.alt }}{% endif %}" src="{{ thumbnail.url }}"{% if instance.caption %} title="{{ instance.caption }}"{% endif %} />{% if link %}</a>{% endif %}
{% endcomment %}
{% if instance.image %}
{% thumbnail instance.image size crop=opts.crop upscale=opts.upscale subject_location=opts.subject_location as thumbnail %}
- {% if link %}<a href="{{ link }}">{% endif %}<img{% if instance.alignment %} class="{{ instance.alignment }}"{% endif %} alt="{% if instance.alt %}{{ instance.alt }}{% endif %}" src="{{ thumbnail.url }}"{% if thumbnail.width %} width="{{ thumbnail.width }}"{% endif %}{% if thumbnail.height %} height="{{ thumbnail.height }}"{% endif %}{% if instance.caption_text %} title="{{ instance.caption_text }}"{% endif %} />{% if link %}</a>{% endif %}
+ {% if link %}<a href="{{ link }}">{% endif %}<img{% if instance.alignment %} class="{{ instance.alignment }}"{% endif %} alt="{% if instance.alt %}{{ instance.alt }}{% endif %}" src="{{ thumbnail.url }}"{% if thumbnail.width %} width="{{ thumbnail.width }}"{% endif %}{% if thumbnail.height %} height="{{ thumbnail.height }}"{% endif %}{% if instance.caption %} title="{{ instance.caption }}"{% endif %} />{% if link %}</a>{% endif %}
{% else %}
{# just a plain link to some external image #}
- {% if link %}<a href="{{ link }}">{% endif %}<img{% if instance.alignment %} class="{{ instance.alignment }}"{% endif %} alt="{% if instance.alt %}{{ instance.alt }}{% endif %}" src="{{ instance.image_url }}"{% if size.0 %} width="{{ size.0 }}"{% endif %}{% if size.1 %} height="{{ size.1 }}"{% endif %}{% if instance.caption_text %} title="{{ instance.caption_text }}"{% endif %} />{% if link %}</a>{% endif %}
+ {% if link %}<a href="{{ link }}">{% endif %}<img{% if instance.alignment %} class="{{ instance.alignment }}"{% endif %} alt="{% if instance.alt %}{{ instance.alt }}{% endif %}" src="{{ instance.image_url }}"{% if size.0 %} width="{{ size.0 }}"{% endif %}{% if size.1 %} height="{{ size.1 }}"{% endif %}{% if instance.caption %} title="{{ instance.caption }}"{% endif %} />{% if link %}</a>{% endif %}
{% endif %}
{% endspaceless %}

0 comments on commit 2c4074c

Please sign in to comment.