def show(self): group_type = self._group_type_ident() html.open_ul() for name, alias in sites.all_groups(group_type.replace("group", "")): url = "view.py?view_name=%s&%s=%s" % (group_type, group_type, urlencode(name)) bulletlink(alias or name, url) html.close_ul()
def _render_tree(self, tree): for group, attrs in tree.items(): aggr_group_tree = "/".join(attrs["__path__"]) fetch_url = makeuri_contextless( request, [ ("view_name", "aggr_all"), ("aggr_group_tree", aggr_group_tree), ], filename="view.py", ) if attrs.get("__children__"): with foldable_container( treename="bi_aggregation_group_trees", id_=aggr_group_tree, isopen=False, title=HTML( html.render_a( group, href=fetch_url, target="main", )), icon="foldable_sidebar", ): self._render_tree(attrs["__children__"]) else: html.open_ul() bulletlink(group, fetch_url) html.close_ul()
def show(self) -> None: html.open_ul() for _ident, group in bi.aggregation_group_choices(): bulletlink( group, "view.py?view_name=aggr_group&aggr_group=%s" % urlencode(group)) html.close_ul()
def show(self): html.open_ul() bulletlink(_("Homepage"), "https://checkmk.com", target="_blank") bulletlink(_("Documentation"), "https://docs.checkmk.com/master", target="_blank") bulletlink(_("Download"), "https://checkmk.com/download", target="_blank") html.close_ul()