{% import 'project/pagination.html' as pag %} {% macro displayOperationResults(operation_row) -%} {% if operation_row['datatype_group_gid'] is not none or operation_row['results'] | length > 10 %} {% endif %} {% if operation_row['results'] is not none and operation_row['results'] | length < 10 %}
{% for result in operation_row['results'] %} {% if not result.invalid and not result.is_nan and result.visible %} {% endif %} {% endfor %} {% for result in operation_row['results'] %} {% if result.invalid or result.is_nan %} {% endif %} {% endfor %}
{% endif %} {%- endmacro %}

Filter

Manage Operations

{{ pag.displayPaginationControls(page_number, total_pages, 11, 'operationsForm') }} {{ pag.displayPaginationControls(page_number, total_pages, 11, 'operationsForm') }} {% if operationsList %} {% for operation in operationsList %} {% set status_class = {model.STATUS_FINISHED:'ops-finished', model.STATUS_ERROR:'ops-error', model.STATUS_CANCELED:'ops-cancelled', model.STATUS_STARTED:'ops-started', model.STATUS_PENDING:'ops-submitted'}[operation['status']] %} {% with %} {% set op_ui_status = operation['status'].split('-')[1] | title %} {% endwith %} {% with %} {% if not operation['group'] %} {% set op_id = operation['id'] %} {% else %} {% set op_id = operation['operation_group_id'] %} {% endif %} {% if operation['group'] %} {% set is_group = 1 %} {% else %} {% set is_group = 0 %} {% endif %} {% endwith %} {% endfor %} {% endif %}
Status Control Operation Simulation Creator Created/Ended Duration Result Relevance
{{ operation['id'] }} {% if operation['additional'] == '' %} {{ op_ui_status }} {% endif %} {% if operation['additional'] != '' %} {% endif %}
{% if operation['algorithm'].algorithm_category.displayname == 'Simulate' %} {% else %} {% if (not operation['group']) and (not operation['algorithm'].algorithm_category.displayname == 'Create') and (not operation['algorithm'].algorithm_category.rawinput) %} {% else %} {% endif %} {% endif %} {% if operation['status'] == model.STATUS_STARTED %} {% else %} {% endif %} {% with %} {% set ok_callback = 'cancelOrRemoveOperation(' ~ (op_id | string) ~ ', ' ~ (is_group | string) ~ ', true);' %} {% endwith %}
{{ operation['algorithm'].algorithm_category.displayname }} {{ operation['algorithm'].displayname }} {{ operation['burst_name'] if operation['burst_name']!='-' else '' }} {{ operation['user'].display_name }}
{{ operation['create'].strftime('%Y/%m/%d') }} {{ operation['create'].strftime('%H:%M') }}
{% if operation['complete']!= none %}
{{ operation['complete'].strftime('%Y/%m/%d') }} {{ operation['complete'].strftime('%H:%M') }}
{% endif %}
{% if 'duration' in operation %} {{ operation['duration'] }} {% endif %} {{ displayOperationResults(operation) }} {% with %} {% set toBeStatus = 'false' if operation['visible'] else 'true' %} {% set buttonLabel = 'Make not relevant' if operation['visible'] else 'Make relevant' %} {% set buttonClass = 'action-make-irrelevant' if operation['visible'] else 'action-make-relevant' %} {% set is_group = 'true' if 'operation_group_id' in operation else 'false' %} {% endwith %}