from __future__ import annotations from html import escape def monitoring_page_html(device_hostname: str = "") -> str: host_suffix = f" ({escape(device_hostname)})" if device_hostname else "" return """ ScreenJob Monitor

ScreenJob Monitor__MONITOR_HOST__

Read-only monitoring for active and historical tasks.

Jobs

Job Detail


        

Latest Visual

Latest visual update

Live Events

""".replace("__MONITOR_HOST__", host_suffix)