{% extends "base.html" %} {% block title %}{{ section_name }}{% if section_description %} — {{ section_description }}{% endif %} — {{ cruise }}{% endblock %} {% block masthead_title %}{{ section_name }}{% if section_description %} — {{ section_description }}{% endif %}{% endblock %} {% block masthead_type %}Section{% endblock %} {% block head_extra %} {% endblock %} {% block topbar %}
{% endblock %} {% block masthead_meta %}
Cruise
{{ cruise }}
Ship
{{ ship }}
Description
{{ section_description }}
CTD casts
{{ cast_list_str }}
Distance
{{ dist_str }}
Max depth
{{ p_max_str }}
Start position
{{ start_pos }}
Start time
{{ start_time }}
End position
{{ end_pos }}
End time
{{ end_time }}
{% endblock %} {% block content %}
{% if fig_map_b64 %}Map{% endif %} {% if physics_panels | selectattr("b64") | list %}Hydrography{% endif %} {% if biogeo_panels | selectattr("b64") | list %}Biogeochemistry{% endif %} {% for card in extra_cards %}{{ card.short }}{% endfor %}
{% for cn in cast_nums %} {{ cn }} {% endfor %}
{% if fig_map_b64 %}

Map

Section map
{% endif %} {% macro section_panel_group(panels, slot, anchor, heading) %} {% if panels | selectattr("b64") | list %} {% if heading %}

{{ heading }}

{% endif %} {% if slot == "slot-third" %}
{% for panel in panels %}{% if panel.b64 %}
{{ panel.title }}
{{ panel.short }}
{% endif %}{% endfor %}
{% elif slot == "slot-half" %} {% for row in panels | batch(2, None) %}
{% for panel in row %}{% if panel and panel.b64 %}
{{ panel.title }}
{{ panel.short }}
{% endif %}{% endfor %}
{% endfor %} {% else %} {% for panel in panels %}{% if panel.b64 %}
{{ panel.title }}
{% endif %}{% endfor %} {% endif %} {% endif %} {% endmacro %} {{ section_panel_group(physics_panels, section_slot, "s-physics", "Hydrography") }} {{ section_panel_group(biogeo_panels, section_slot, "s-biogeo", "Biogeochemistry") }} {% for card in extra_cards %}

{{ card.title }}

{% if card.id == "ladcp" %} {{ section_panel_group(card.panels, section_slot, "", "") }} {% elif card.panels | length == 1 %} {% if card.panels[0].b64 %}
{{ card.panels[0].title }}
{% endif %} {% else %} {% if card.panels | selectattr("b64") | list %}
{% for panel in card.panels %} {% if panel.b64 %}
{{ panel.title }}
{{ panel.title }}
{% endif %} {% endfor %}
{% endif %} {% endif %} {% endfor %} {{ js_top_links | safe }} {% endblock %}