{% load common %} {% load data_view_config %} {% include "catmaid/common_data_view_header.html" %} {% with catalogue_link=config|get_or_none:"catalogue_link"|default_if_none:1 %} {% with sample_images=config|get_or_none:"sample_images"|default_if_none:0 %} {% with sample_slice=config|get_or_none:"sample_slice"|default_if_none:"center" %} {% with sample_width=config|get_or_none:"sample_width"|default_if_none:-1 %} {% with sample_height=config|get_or_none:"sample_height"|default_if_none:-1 %} {% for p in projects %} {% if p.stacks.count > 0 %} {% for s in p.stacks|order_by:'id' %} {% if sample_images %} {% else %} {% endif %} {% endfor %} {% if p.is_catalogueable and catalogue_link %} {% endif %} {% endif %} {% endfor %}
{{ p.title }} {# Get the wanted slice #} {% with slice=s|get_slice:sample_slice %} {% if slice|is_none %} Couldn't find requested slice: {{ sample_slice }} {% else %}
Sample image for {{ s.title }} on slice {{ slice }} -1 %} width="{{ sample_width }}" {% endif %} {% if sample_height > -1 %} height="{{ sample_height }}" {% endif %} />
{{s.comment}}
{% endif %} {% endwith %}
{{ s.title }} Neuron Catalogue
{% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %}