Module: check_mk
Branch: master
Commit: 8602d0bcc06f5af368754f8decd09100eb924f7e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8602d0bcc06f5a…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Apr 1 09:08:48 2014 +0200
htmllib.py: converted tabs to spaces
---
web/htdocs/htmllib.py | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index a9b4d79..847d338 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -514,9 +514,9 @@ class html:
def begin_radio_group(self, horizontal=False):
if self.mobile:
if horizontal:
- add = 'data-type="horizontal" '
- else:
- add = ''
+ add = 'data-type="horizontal" '
+ else:
+ add = ''
self.write('<fieldset %s data-role="controlgroup">' %
add)
def end_radio_group(self):
@@ -539,7 +539,7 @@ class html:
self.form_vars.append(varname)
def begin_checkbox_group(self, horizonal=False):
- self.begin_radio_group(horizonal)
+ self.begin_radio_group(horizonal)
def end_checkbox_group(self):
self.end_radio_group()
@@ -808,10 +808,10 @@ class html:
self.store_new_transids()
def add_status_icon(self, img, tooltip, url = None):
- if url:
- self.status_icons[img] = tooltip, url
- else:
- self.status_icons[img] = tooltip
+ if url:
+ self.status_icons[img] = tooltip, url
+ else:
+ self.status_icons[img] = tooltip
def render_status_icons(self):
h = '<a target="_top" href="%s"><img
class=statusicon src="images/status_frameurl.png"
title="%s"></a>\n' % \
@@ -825,12 +825,12 @@ class html:
(self.makeuri([("output_format", "csv_export")]),
_("Export as CSV"))
for img, tooltip in self.status_icons.items():
- if type(tooltip) == tuple:
- tooltip, url = tooltip
- h += '<a target="_top" href="%s"><img class=statusicon
src="images/status_%s.png" title="%s"></a>\n' % \
- (url, img, tooltip)
- else:
- h += '<img class=statusicon src="images/status_%s.png"
title="%s">\n' % (img, tooltip)
+ if type(tooltip) == tuple:
+ tooltip, url = tooltip
+ h += '<a target="_top" href="%s"><img
class=statusicon src="images/status_%s.png"
title="%s"></a>\n' % \
+ (url, img, tooltip)
+ else:
+ h += '<img class=statusicon src="images/status_%s.png"
title="%s">\n' % (img, tooltip)
return h
def show_error(self, msg):