This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 9ed87e5 show next run if not none (#18273)
9ed87e5 is described below
commit 9ed87e57009d014c5b2f19a2a409439ef690cbfb
Author: Brent Bovenzi <[email protected]>
AuthorDate: Wed Sep 15 18:14:53 2021 +0200
show next run if not none (#18273)
- Instead of `none` which can sometimes end up as `invalid date` We will
only show the next run if it exists and otherwise leave the place blank, which
is a cleaner UI anyway.
---
airflow/www/templates/airflow/dags.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/airflow/www/templates/airflow/dags.html
b/airflow/www/templates/airflow/dags.html
index 4c65a51..0db1feb 100644
--- a/airflow/www/templates/airflow/dags.html
+++ b/airflow/www/templates/airflow/dags.html
@@ -176,7 +176,9 @@
</span>
</td>
<td class="text-nowrap">
- <time datetime="{{ dag.next_dagrun }}">{{ dag.next_dagrun
}}</time>
+ {% if dag.next_dagrun is not none %}
+ <time datetime="{{ dag.next_dagrun }}">{{ dag.next_dagrun
}}</time>
+ {% endif %}
{% if dag.next_dagrun_create_after %}
{# data-nextrun is being used to pass next_dagrun dates to
js to build the full tooltip #}
<span