Created
April 2, 2014 04:10
-
-
Save avelino/9927792 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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