Example #1
0
def sidebar_head():
    html.open_div(id_="side_header")
    html.div('', id_="side_fold")
    html.open_a(href=config.user.get_attribute("start_url")
                or config.start_url,
                target="main",
                title=_("Go to main overview"))
    html.img(src="images/sidebar_top.png", id_="side_bg")
    html.open_div(id_="side_version")
    html.open_a(href="version.py",
                target="main",
                title=_("Open release notes"))
    html.write(get_check_mk_edition_title())
    html.br()
    html.write(cmk.__version__)

    if werks.may_acknowledge():
        num_unacknowledged_werks = werks.num_unacknowledged_incompatible_werks(
        )
        if num_unacknowledged_werks:
            html.span(num_unacknowledged_werks,
                      class_="unack_werks",
                      title=_("%d unacknowledged incompatible werks") %
                      num_unacknowledged_werks)
    html.close_a()
    html.close_div()
    html.close_a()
    html.close_div()
Example #2
0
def sidebar_head():
    html.write('<div id="side_header">')
    html.write('<div id="side_fold"></div>')
    html.write('<a title="%s" target="main" href="%s">' %
          (_("Go to main overview"), html.attrencode(config.user.get("start_url") or config.start_url)))
    html.write('<img id="side_bg" src="images/sidebar_top.png">')
    html.write('<div id="side_version">'
               '<a href="version.py" target="main" title=\"%s\">%s<br>%s' %
        (_("Open release notes"), get_check_mk_edition_title(), defaults.check_mk_version))
    if werks.may_acknowledge():
        num_unacknowledged_werks = werks.num_unacknowledged_incompatible_werks()
        if num_unacknowledged_werks:
            html.write("<span title=\"%s\" class=\"unack_werks\">%d</span>" %
                (_("%d unacknowledged incompatible werks") % num_unacknowledged_werks, num_unacknowledged_werks))
    html.write('</a></div>')
    html.write('</a></div>\n')
Example #3
0
def sidebar_head():
    html.write('<div id="side_header">')
    html.write('<div id="side_fold"></div>')
    html.write(
        '<a title="%s" target="main" href="%s">' %
        (_("Go to main overview"),
         html.attrencode(config.user.get("start_url") or config.start_url)))
    html.write('<img id="side_bg" src="images/sidebar_top.png">')
    html.write('<div id="side_version">'
               '<a href="version.py" target="main" title=\"%s\">%s<br>%s' %
               (_("Open release notes"), get_check_mk_edition_title(),
                defaults.check_mk_version))
    if werks.may_acknowledge():
        num_unacknowledged_werks = werks.num_unacknowledged_incompatible_werks(
        )
        if num_unacknowledged_werks:
            html.write("<span title=\"%s\" class=\"unack_werks\">%d</span>" %
                       (_("%d unacknowledged incompatible werks") %
                        num_unacknowledged_werks, num_unacknowledged_werks))
    html.write('</a></div>')
    html.write('</a></div>\n')