{% load common %} {% load data_view_config %} {% include "catmaid/common_data_view_header.html" %} {% with show_stackgroups=config|get_or_none:"show_stackgroups"|default_if_none:1 %} {% with show_stacks=config|get_or_none:"show_stacks"|default_if_none:1 %} {% with show_mirrors=config|get_or_none:"show_mirrors"|default_if_none:0 %} {% 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_mirror_index=config|get_or_none:"sample_mirror_index"|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 show_stacks and stacks_of|get:p.id or show_stackgroups and stackgroups_of|get:p.id %} {% if show_stackgroups %} {% for sg in stackgroups_of|get:p.id|dictsort:'id' %} {% endfor %} {% endif %} {% if show_stacks %} {% for s in stacks_of|get:p.id|dictsort:'id' %} {% if sample_images %} {% endfor %} {% endif %} {% if p.is_catalogueable and catalogue_link %} {% endif %} {% endif %} {% endfor %}
{{ p.title }} {{ sg.title }} {# Get the wanted slice #} {% with slice=s|get_slice:sample_slice %} {% if slice|is_none %} Couldn't find requested slice: {{ sample_slice }} {% elif s.stackmirror_set.all|length %}
{% with s.stackmirror_set.all|dictsort:'position'|get:sample_mirror_index as mirror %} Sample image for {{ s.title }} on slice {{ slice }} -1 %} width="{{ sample_width }}" {% endif %} {% if sample_height > -1 %} height="{{ sample_height }}" {% endif %} /> {% endwith %}
{{s.comment|safe}}
{% endif %} {% endwith %} {% else %}
{{ s.title }} {% endif %} {% if show_mirrors %}
{% for m in s.stackmirror_set.all %}
{{ m.title }}
{% endfor %}
{% endif %}
Neuron Catalogue
{% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %}