{# Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. #} {% extends base_template %} {% from 'appbuilder/loading_dots.html' import loading_dots %} {% block page_title %} {% if search_query %}"{{ search_query }}" - {% endif %}{{ i18n('dags') }} - {{ appbuilder.app_name }} {% endblock %} {% block head_meta %} {{ super() }} {% endblock %} {% block head_css %} {{ super() }} {% endblock %} {% block content %}
{% if tags_filter|length > 0 %} {% endif %}
{% if search_query %} {% endif %}
{% if dags|length == 0 %} {% endif %} {% for dag in dags %} {# Column 1: Turn dag on/off #} {# Column 2: Name #} {# Column 3: Dag Owners #} {# Column 4: Dag Runs #} {# Column 5: Dag Schedule #} {# Column 6: Last Run #} {# Column 7: Recent Tasks #} {# Column 8: Actions #} {# Column 9: Links #} {% endfor %}
info {{ i18n('dag_id_label') }} {{ i18n('owner') }} {{ i18n('dag_runs') }} {{ i18n('schedule') }} {{ i18n('last_run') }} {{ i18n('tasks') }} {{ i18n('actions') }} {{ i18n('links') }}
{{ i18n('no_results') }}
{% if dag.can_edit %} {% set switch_tooltip = i18n('pause_unpause') %} {% else %} {% set switch_tooltip = i18n('dag_is_paused') if dag.is_paused else i18n('dag_is_active') %} {% endif %} {{ dag.dag_id }}
{% for tag in dag.tags | sort(attribute='name') %} {{ tag.name }} {% endfor %}
{% for owner in dag.owners.split(",") %} {{ owner | trim }} {% endfor %} {{ loading_dots(classes='js-loading-dag-stats text-muted') }} {{ dag.schedule_interval }} {{ loading_dots(classes='js-loading-last-run text-muted') }} {{ loading_dots(classes='js-loading-task-stats text-muted') }}
{% if dag %} {% endif %} {# Use dag_id instead of dag.dag_id, because the DAG might not exist in the webserver's DagBag #}
{% if dag %} {% endif %}
{# 卡片视图 #}
{{paging}}
{{ i18n('showing') }} {{num_dag_from}}-{{num_dag_to}} {{ i18n('of') }} {{num_of_all_dags}} DAGs
{% endblock %} {% block tail %} {{ super() }} {% endblock %}