pcandoalmeida commented on a change in pull request #10162:
URL: https://github.com/apache/airflow/pull/10162#discussion_r490453209
##########
File path: airflow/www/views.py
##########
@@ -356,11 +356,18 @@ def get_int_arg(value, default=0):
state_color_mapping = State.state_color.copy()
state_color_mapping["null"] = state_color_mapping.pop(None)
+ page_title = "Airflow - DAGs"
+ site_title = conf.get(section="webserver", key="site_title",
fallback="DAGs")
+ if site_title != "DAGs":
+ page_title = site_title
+
return self.render_template(
'airflow/dags.html',
dags=dags,
current_page=current_page,
search_query=arg_search_query if arg_search_query else '',
+ page_title=page_title,
Review comment:
Have amended the code slightly so that `Airflow - DAGs - CustomText`
appears as the site_title and the `<h2>` renders the page_title as per the
original suggestion.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]