Example #1
0
 def _render_topic(self, topic):
     html.open_h2()
     html.div(class_="spacer", content="")
     # TODO: Add the corresponding icon
     html.icon("topic_overview")
     html.span(topic)
     html.close_h2()
Example #2
0
 def _show_topic_title(self, menu_id: str, topic_id: str, topic: TopicMenuTopic) -> None:
     html.open_h2()
     html.open_a(class_="show_all_topics",
                 href="",
                 onclick="cmk.popup_menu.mega_menu_show_all_topics('%s')" % topic_id)
     html.icon(icon="collapse_arrow", title=_("Show all %s topics") % menu_id)
     html.close_a()
     if not config.user.get_attribute("icons_per_item") and topic.icon:
         html.icon(topic.icon)
     html.span(topic.title)
     html.close_h2()
Example #3
0
    def page(self):
        self._activation_msg()
        self._activation_form()

        html.h2(_("Activation status"))
        self._activation_status()

        if self.has_changes():
            html.open_h2(class_="pending_changes_header")
            html.write_text(_("Pending changes"))
            html.div("", id_="row_info")
            html.close_h2()
            html.final_javascript("cmk.utils.display_header_info();")
            self._change_table()
Example #4
0
 def _show_topic_title(self, menu_ident: str, topic_id: str,
                       topic: TopicMenuTopic) -> None:
     html.open_h2()
     html.open_a(class_="show_all_topics",
                 href="",
                 onclick="cmk.popup_menu.mega_menu_show_all_topics('%s')" %
                 topic_id)
     html.icon(title=_("Show all %s topics") % menu_ident,
               icon="collapse_arrow")
     html.close_a()
     if topic.icon_name:
         html.icon(title=None, icon=topic.icon_name)
     html.span(topic.title)
     html.close_h2()