forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 15
/
dag_dependencies.html
79 lines (72 loc) · 2.73 KB
/
dag_dependencies.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{#
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 %}
{% block title %}Airflow - DAG Dependencies{% endblock %}
{% block head_css %}
{{ super() }}
<link rel="stylesheet" type="text/css" href="{{ url_for_asset('graph.css') }}">
{% endblock %}
{% block content %}
{{ super() }}
<h2>
{{ title }}
<div class="input-group" style="float: right">
<input type="text" id="searchbox" class="form-control" placeholder="Search for..." onenter="null">
</div>
<label for="deps-filter" class="h5" style="float: right; margin-right: 5px">
<input type="checkbox" id="deps-filter" checked> Only show DAGs with dependencies
</label>
</h2>
<hr/>
<div class="legend-row">
<div>
<span class="legend-item dag">dag</span>
<span class="legend-item trigger">trigger</span>
<span class="legend-item sensor">sensor</span>
<span class="legend-item dataset">dataset</span>
</div>
<div style="float:right">Last refresh: <time datetime="{{ last_refresh }}">{{ last_refresh }}</time></div>
</div>
<div id="error" style="display: none; margin-top: 10px;" class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span id="error_msg">Oops.</span>
</div>
<br/>
<div class="svg-wrapper">
<div class="graph-svg-wrap">
<svg id="graph-svg" width="{{ width }}" height="{{ height }}">
<g id="dig" transform="translate(20,20)"></g>
<filter id="blur-effect-1">
<feGaussianBlur stdDeviation="3"></feGaussianBlur>
</filter>
</svg>
</div>
</div>
{% endblock %}
{% block tail %}
{{ super() }}
<script src="{{ url_for_asset('d3.min.js') }}"></script>
<script src="{{ url_for_asset('dagre-d3.min.js') }}"></script>
<script src="{{ url_for_asset('d3-shape.min.js') }}"></script>
<script src="{{ url_for_asset('d3-tip.js') }}"></script>
<script>
let dagNodes = {{ nodes|tojson }};
let edges = {{ edges|tojson }};
const arrange = '{{ arrange }}';
</script>
<script src="{{ url_for_asset('dagDependencies.js') }}"></script>
{% endblock %}