{% 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_stack=config|get_or_none:"sample_stack"|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 %} {# Add a sample image if requested #} {% if sample_images %} {% endif %} {% endif %} {% endfor %}
{# Get the samlpe stack #} {% with stack=p.stacks|order_by:'id'|get_stack:sample_stack %} {% if stack|is_none %} Couldn't find requested stack: {{ sample_stack }} {% else %} {# Get the wanted slice #} {% with slice=stack|get_slice:sample_slice %} {% if slice|is_none %} Couldn't find requested slice: {{ sample_slice }} {% else %} Sample image for {{ stack.title }} on slice {{ slice }} -1 %} width="{{ sample_width }}" {% endif %} {% if sample_height > -1 %} height="{{ sample_height }}" {% endif %} /> {% endif %} {% endwith %} {% endif %} {% endwith %}
{{ p.title }}
{% for s in p.stacks|order_by:"id" %}
{{ s.title }} {{ s.comment }}
{% endfor %} {# Optionally, add the the neuron catalogue link #} {% if p.is_catalogueable and catalogue_link %}
Browse the Neuron Catalogue
{% endif %}
{% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %}