Skip to content

Instantly share code, notes, and snippets.

@avelino
Created April 2, 2014 04:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avelino/9927792 to your computer and use it in GitHub Desktop.
Save avelino/9927792 to your computer and use it in GitHub Desktop.
{% all_images_check_permission object request.user as iamges %}
{% for image in images %}
{% try_values image.caption image.description image.title as image_caption %}
<div class="swiper-slide">
<div class="inner">
<img class="img-responsive-height" src="{% image_obj image height=430 fitin=True %}" alt="{{ image_caption|striptags|safe }}" />
{% if image_caption %}
<div class="desc">
<p class="source"><strong>Fonte:</strong> {{ image.source }}</p>
<p class="caption">{{ image_caption|striptags|safe }}</p>
</div>
{% endif %}
</div>
</div>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment