### Apache Airflow version

2.7.0rc2

### What happened

In the Airflow UI, currently, the DAG Processor is visible in the Cluster Activity page even if there is no stand-alone dag processor. 

### What you think should happen instead

It should be hidden if there is no stand-alone dag processor.

### How to reproduce

Run Airflow 2.7 

### Operating System

Mac OS

### Versions of Apache Airflow Providers

Airflow > 2.7

### Deployment

Official Apache Airflow Helm Chart

### Deployment details

_No response_

### Anything else

_No response_

### Are you willing to submit PR?

- [X] Yes I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)

"""Base View to set Airflow related properties."""
    from airflow import macros
    route_base = ""
    extra_args = {
        
        "macros": macros,
        "get_docs_url": get_docs_url,
    }
    if not conf.getboolean("core", "unit_test_mode"):
        executor, _ = ExecutorLoader.import_default_executor_cls()
        extra_args["sqlite_warning"] = settings.engine.dialect.name == "sqlite"
        if not executor.is_production:
            extra_args["production_executor_warning"] = executor.__name__
        extra_args["otel_on"] = conf.getboolean("metrics", "otel_on")
    line_chart_attr = {
        "legend.maxKeyLength": 200,
    }
    def render_template(self, *args, **kwargs):
        
        if TriggererJobRunner.is_needed():
            kwargs["triggerer_job"] = lazy_object_proxy.Proxy(TriggererJobRunner.most_recent_job)
        return super().render_template(
            *args,
            
            scheduler_job=lazy_object_proxy.Proxy(SchedulerJobRunner.most_recent_job),
            **kwargs,
        )
class Airflow(AirflowBaseView):