Module: check_mk
Branch: master
Commit: b4ba00601f3365459da16701e0e3779b2d2ed3b0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b4ba00601f3365…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 29 12:14:43 2011 +0200
Changed general bg_brighten class to individual code again
---
web/htdocs/check_mk.css | 15 ++++++++-------
web/htdocs/permissions.py | 2 +-
web/htdocs/views.py | 10 +++++-----
web/htdocs/wato.py | 2 +-
4 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/web/htdocs/check_mk.css b/web/htdocs/check_mk.css
index bcc2895..1673660 100644
--- a/web/htdocs/check_mk.css
+++ b/web/htdocs/check_mk.css
@@ -45,13 +45,6 @@ div {
padding: 0;
}
-/* Lightens up background colors of tables/divs and so on
- * form_background.png is a fully transparent image */
-.bg_brighten {
- background-image: url("images/form_background.png");
- background-repeat: repeat;
-}
-
/*
__ __ _
| \/ | __ _(_)_ __
@@ -1020,6 +1013,8 @@ h2.formcaption {
}
table.form {
+ background-image: url("images/form_background.png");
+ background-repeat: repeat;
border-collapse: collapse;
empty-cells: show;
border-spacing: 0px;
@@ -1063,6 +1058,8 @@ table.form td.legend.border {
border-right-style: solid;
}
table.form td.hilite {
+ background-image: url("images/form_background.png");
+ background-repeat: repeat;
margin: 10px;
}
@@ -1452,6 +1449,8 @@ div.columneditor {
div.columneditor table {
padding: 0;
margin: 0;
+ background-image: url("images/form_background.png");
+ background-repeat: repeat;
border: 1px solid #fff;
-moz-border-radius: 5px;
width: 100%;
@@ -1586,6 +1585,8 @@ table.add_snapin i {
*/
.wato table.auditlog {
+ background-image: url("images/form_background.png");
+ background-repeat: repeat;
border-collapse: collapse;
margin-top: 3px;
margin-bottom: 1em;
diff --git a/web/htdocs/permissions.py b/web/htdocs/permissions.py
index 7a2e219..1c5bb28 100644
--- a/web/htdocs/permissions.py
+++ b/web/htdocs/permissions.py
@@ -87,7 +87,7 @@ def page_edit_permissions(h):
section_title = config.permission_sections[section]
if section != current_section:
current_section = section
- html.write('<tr><td class="legend border hilite
bg_brighten" colspan=%d><b>%s</b></td></tr>\n' %
(len(config.roles) + 1, section_title))
+ html.write('<tr><td class="legend border hilite"
colspan=%d><b>%s</b></td></tr>\n' % (len(config.roles) + 1,
section_title))
if current_section == None:
title = "<b>%s</b><br><i>%s</i>" %
(perm["title"], perm["description"])
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index d5585e5..96a7aa7 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -99,7 +99,7 @@ def show_filter_form(is_open, filters):
html.begin_form("filter")
html.write("<div class=whiteborder>\n")
- html.write("<table class=\"form bg_brighten\">\n")
+ html.write("<table class=\"form\">\n")
# sort filters according to title
s = [(f.sort_index, f.title, f) for f in filters]
s.sort()
@@ -133,7 +133,7 @@ def show_painter_options(painter_options):
html.begin_form("painteroptions")
html.write("<div class=whiteborder>\n")
- html.write("<table class=\"form bg_brighten\">\n")
+ html.write("<table class=\"form\">\n")
for on in painter_options:
opt = multisite_painter_options[on]
html.write("<tr>")
@@ -496,7 +496,7 @@ def page_edit_view(h):
html.begin_form("view")
html.hidden_field("back", html.var("back", ""))
html.hidden_field("old_name", viewname) # safe old name in case user
changes it
- html.write("<table class=\"form bg_brighten\">\n")
+ html.write("<table class=\"form\">\n")
html.write("<tr><td class=legend>Title</td><td
class=content>")
html.text_input("view_title")
@@ -677,7 +677,7 @@ function toggle_section(nr, oImg) {
def view_edit_column(n, var_prefix, maxnum, allowed):
collist = [ ("", "") ] + [ (name, p["title"]) for name,
p in allowed.items() ]
- html.write("<div class=columneditor id=%seditor_%d><table
class=bg_brighten><tr>" % (var_prefix, n))
+ html.write("<div class=columneditor
id=%seditor_%d><table><tr>" % (var_prefix, n))
html.write('<td rowspan=3>')
html.write('<img onclick="delete_view_column(this);" '
'onmouseover=\"hilite_icon(this, 1)\" '
@@ -1543,7 +1543,7 @@ def show_action_form(is_open, datasource):
html.hidden_field("actions", "yes")
html.hidden_fields() # set all current variables, exception action vars
html.write("<div class=whiteborder>\n")
- html.write("<table class=\"form bg_brighten\">\n")
+ html.write("<table class=\"form\">\n")
if what in [ "host", "service" ]:
show_host_service_actions(what)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index ddf44dd..b3034d8 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -242,7 +242,7 @@ def host_link(hostname):
def render_audit_log(log, what, with_filename = False):
- htmlcode = '<table class="wato auditlog bg_brighten">'
+ htmlcode = '<table class="wato auditlog">'
even = "even"
for t, filename, user, action, text in log:
text = parse_host_names(text)