{% load images_tags %} {# This should a generic CSSable and JSable teplate #} {# exaples: #} {# http://virgula.uol.com.br/ver/estaticas/custo-mulher-sexualmente-ativa #} {# http://virgula.uol.com.br/ver/estaticas/fita-cassete-50-anos #} < All infographics
Opps Infographic CSS Detail
{% if infographic.top_image %} {% endif %}
{# show main description or specific item description #} {# 'item' exists only if a slug is passed /infographics/slug/item-slug #} {% if not item %}

{{ infographic.description|safe }}

{% else %}

{{ item.description|safe }}

{% endif %}
{# show main image or single item album or image #} {% if not item %} {% if infographic.main_image %} {% endif %} {% else %} {% if item.timeline %} {# Embed timeline JS #} {% load timeline %} {% timeline src=item.timeline.pk height=600 width=600 %} {% elif item.album %} {# SHOW IMAGE SLIDER USING item.album images #} {% for image in item.album.images %} {% endfor %} {% else %} {# if not has album show item static image #} {% endif %} {% endif %}
{# Load custom css and JS if needed #} {# NOTE: Designers also can create scpecific templates for infographics.. #} {# store in templates/infographics/infographic-slug.html #} {% block custom_css %} {% endblock %} {% block custom_js %} {% if infographic.js_path %} {%endif%} {% endblock %}