{% 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 %}
{# 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 %}
|
{% endif %}
|