mik-laj commented on a change in pull request #4787: [AIRFLOW-3967] Extract
Jinja directive from Javascript
URL: https://github.com/apache/airflow/pull/4787#discussion_r261342578
##########
File path: airflow/www/templates/airflow/dag_details.html
##########
@@ -29,7 +29,7 @@ <h2>{{ title }}</h2>
<a
class="btn"
style="border: none; background-color:{{ State.color(state)}};
color: {{ State.color_fg(state) }};"
- href="/taskinstance/list/?_flt_3_dag_id={{ dag.dag_id
}}&_flt_3_state={{ state }}">
+ href="{{ url_for('TaskInstanceModelView.list') }}?_flt_3_dag_id={{
dag.dag_id }}&_flt_3_state={{ state }}">
Review comment:
I apply your suggestion. I will introduce similar changes in other places
in the project as seperate PR. I add your suggestion to the list of my tasks.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services