Module: check_mk
Branch: master
Commit: ebdc5ae5169b29930b2e07a28f915f39c17113fd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ebdc5ae5169b29…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Jan 23 14:11:13 2012 +0100
MobileUI: Improved header length
---
web/htdocs/mobile.css | 3 +++
web/htdocs/mobile.py | 4 ++--
web/plugins/views/mobile.py | 3 ++-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/mobile.css b/web/htdocs/mobile.css
index 4d87b2f..2668776 100644
--- a/web/htdocs/mobile.css
+++ b/web/htdocs/mobile.css
@@ -147,6 +147,9 @@ body.mobile table.data td.perfometer td.inner {
height: 14px;
}
+.ui-header .ui-title, .ui-footer .ui-title {
+ margin: .6em 46px .8em;
+}
/*-------------------------------------------------------------------------.
| ____ _ _ |
diff --git a/web/htdocs/mobile.py b/web/htdocs/mobile.py
index 81f825d..a5345e5 100644
--- a/web/htdocs/mobile.py
+++ b/web/htdocs/mobile.py
@@ -70,7 +70,7 @@ def mobile_html_foot():
html.write("</body></html>\n")
def jqm_header_button(url, title, icon=""):
- html.write('<a href="%s" data-direction="reverse"
data-icon="%s" title="%s" >%s</a>' % (url, icon, title,
title ))
+ html.write('<a href="%s" data-direction="reverse"
data-icon="%s" data-iconpos="notext" title="%s"
></a>' % (url, icon, title ))
def jqm_page_header(title, id=None, left_button=None, right_button=None):
idtxt = id and (' id="%s"' % id) or ''
@@ -188,7 +188,7 @@ def page_index():
if not view.get("mustsearch"):
count = views.show_view(view, only_count = True)
count = '<span
class="ui-li-count">%d</span>' % count
- items.append((view.get("topic"), url, '%s %s' %
(view["title"], count)))
+ items.append((view.get("topic"), url, '%s %s' %
(view.get("linktitle", view["title"]), count)))
jqm_page_index(_("Check_MK Mobile"), items)
# Link to non-mobile GUI
diff --git a/web/plugins/views/mobile.py b/web/plugins/views/mobile.py
index 17075f5..4faf057 100644
--- a/web/plugins/views/mobile.py
+++ b/web/plugins/views/mobile.py
@@ -215,6 +215,7 @@ multisite_builtin_views.update({
('stateage', False),
('svcdescr', False)
],
+ 'linktitle': _('Problems (unhandled)'),
'title': _('Problems (unhandled)'),
'topic': _('Services'),
}),
@@ -337,7 +338,7 @@ multisite_builtin_views.update({
'show_filters': [],
'sorters': [],
'linktitle': _('Host status'),
- 'title': _('Status of Host'),
+ 'title': '',
}),
# Search hosts