YounHS commented on code in PR #39355: URL: https://github.com/apache/airflow/pull/39355#discussion_r1597386702
########## airflow/www/views.py: ########## @@ -719,8 +719,17 @@ def render_template(self, *args, **kwargs): **kwargs, ) +class CustomAirflow(AirflowBaseView): + def render_template(self, *args, **kwargs): + rendered_template = super().render_template(*args, **kwargs) + + script_tag = '<script src="/static/js/toggle_theme.js"></script>' + + return rendered_template.replace("<head>", f"{script_tag}<head>") + -class Airflow(AirflowBaseView): +#class Airflow(AirflowBaseView): Review Comment: yeah I cleaned up! and fix wrong typo. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org