{% from 'macros.html' import bootstrap_icon %} {% from 'resources.html' import resource_breadcrumb %} {% macro flows_breadcrumb(block_evaluation, items=[]) %} {{ resource_breadcrumb([ ('Flows', url_for('flows.list_flows', sourcename=source_name)), (block_evaluation.flow_evaluation.group.flow.name, url_for('flows.display_flow', flowname=block_evaluation.flow_evaluation.group.flow.name, sourcename=source_name)) ] + items) }} {% endmacro %} {% macro flows_header(block_evaluation, title) %}

{{ title }}

{{ block_evaluation.flow_evaluation.series_set_name }} ({{ block_evaluation.flow_evaluation.group.flow.name }}) {{ help_text_icon(block_evaluation.flow_evaluation.group.flow) }}

{% if block_evaluation.flow_evaluation.group.time_range.has_no_time_range() is true %} - {% else %} From {{ block_evaluation.flow_evaluation.group.time_range.start_date|ts_datetime }} to {{ block_evaluation.flow_evaluation.group.time_range.end_date|ts_datetime }} {% endif %}

{% if caller is defined %}
{{ caller() }}
{% endif %}
{{ help_text_side_panel(block_evaluation.flow_evaluation.group.flow, allow_edit=False) }} {% endmacro %} {% macro help_text_icon(flow) %} {% if flow.short_help_text != "" or flow.origin.value == 'ui' %} {% endif %} {% endmacro %} {% macro help_text_side_panel(flow, allow_edit=True) %} {% if flow.short_help_text != "" or flow.origin.value == 'ui' %}

{{ flow.name }}

{% if flow.short_help_text == "" %}

No description provided

{% else %}

{{ flow.short_help_text }}

{{ flow.html_help_text|safe }}
{% endif %} {% if flow.origin.value == 'ui' and allow_edit == True %}

Edit description

{% endif %}
{% endif %} {% endmacro %}