def end() -> None: global g_header_open g_header_open = False section_close() html.tr(html.render_td('', colspan=2), class_=["bottom"]) html.close_tbody() html.close_table()
def _show_table(self, api_request): html.open_table(class_="allhosts") html.open_tbody() for map_cfg in api_request["maps"]: html.open_tr() html.open_td() html.div( "", class_=[ "statebullet", self._state_class(map_cfg), self._sub_state_class(map_cfg), self._stale_class(map_cfg), ], title=self._state_title(map_cfg), ) html.a(map_cfg["alias"], href=map_cfg["url"], class_="link", target="main") html.close_td() html.close_tr() html.close_tbody() html.close_table()
def end(): global g_header_open g_header_open = False if g_section_open: html.close_td() html.close_tr() html.end_foldable_container() html.tr(html.render_td('', colspan=2), class_=["bottom"]) html.close_tbody() html.close_table()