{% extends 'base.html' %} {% load markdown_extras %} {% block content %}

This should be left.

This should be right.

{% for tn_url, tn_filename in resource.thumbnails %}
{{ tn_filename }}
{% endfor %}

{{ resource.name }}

{{ resource.main_resource_category }}

{{ resource.age_range }}

Number of PDF files: {{ resource.pdf_filenames|length }}

Product summary

{{resource.card_description}}

{% for snapshot_filename, snapshot_urls in resource.snapshot_urls.items %} {% for snapshot_url in snapshot_urls %}
{{ snapshot_name }}
{% endfor %} {% endfor %}

Product detail

{{ resource.description | markdown | safe }}

{{ resource.name }}

Subject {{ resource.main_resource_category }}
Age range {{ resource.age_range }}
Resource type {{ resource.resource_type }}
Number of files {{ resource.pdf_filenames|length }}
Created {{ resource.created|date:"D d M Y" }}
Resource Description
{{ resource.description | markdown | safe }}
{% if request.user.is_authenticated and request.user.is_staff %} Edit this resource {% endif %}

Feature Images

{% for tn_url, tn_filename in resource.thumbnails %}
{{ tn_filename }}
{% endfor %}
{% for snapshot_filename, snapshot_urls in resource.snapshot_urls.items %}
{% if resource.snapshot_urls.items|length > 1 %}

File preview {{ forloop.counter }}: {{ snapshot_filename|cut:".pdf" }}

{% else %}

File preview: {{ snapshot_filename|cut:".pdf" }}

{% endif %}
{% endfor %}
{% endblock content %}