diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-03-23 22:19:26 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-03-23 22:19:26 +0100 |
commit | 6d17667524e4f8ed4f7aef2be7697db5825bb994 (patch) | |
tree | 52509d1c8dd51b092a6a508faabf6732a13b3207 /applications/luci-app-statistics | |
parent | 3a32eb26efd01321f86c50ff4e740aae6618fc01 (diff) |
luci-app-statistics: rework markup and CSS classes for easier styling
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-statistics')
-rw-r--r-- | applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/graphs.js | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/graphs.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/graphs.js index 9da94681d..f1e69b89c 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/graphs.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/graphs.js @@ -200,24 +200,30 @@ return L.view.extend({ var view = E([], [ E('h2', {}, [ _('Statistics') ]), E('div', {}, [ - E('div', {}, [ - hostSel, - E('button', { - 'class': 'cbi-button cbi-button-apply', - 'click': ui.createHandlerFn(this, 'updateGraphs', hostSel, spanSel, timeSel, graphDiv, ) - }, [ _('Display Host »') ]), + E('p', { 'class': 'controls' }, [ + E('span', { 'class': 'nowrap' }, [ + hostSel, + E('button', { + 'class': 'cbi-button cbi-button-apply', + 'click': ui.createHandlerFn(this, 'updateGraphs', hostSel, spanSel, timeSel, graphDiv, ) + }, [ _('Display Host »') ]), + ]), ' ', - spanSel, - E('button', { - 'class': 'cbi-button cbi-button-apply', - 'click': ui.createHandlerFn(this, 'updateGraphs', hostSel, spanSel, timeSel, graphDiv) - }, [ _('Display timespan »') ]), + E('span', { 'class': 'nowrap' }, [ + spanSel, + E('button', { + 'class': 'cbi-button cbi-button-apply', + 'click': ui.createHandlerFn(this, 'updateGraphs', hostSel, spanSel, timeSel, graphDiv) + }, [ _('Display timespan »') ]), + ]), ' ', - timeSel, - E('button', { - 'class': 'cbi-button cbi-button-apply', - 'click': ui.createHandlerFn(this, 'togglePolling', hostSel, spanSel, timeSel, graphDiv) - }, [ _('Apply interval »') ]) + E('span', { 'class': 'nowrap' }, [ + timeSel, + E('button', { + 'class': 'cbi-button cbi-button-apply', + 'click': ui.createHandlerFn(this, 'togglePolling', hostSel, spanSel, timeSel, graphDiv) + }, [ _('Apply interval »') ]) + ]) ]), E('hr'), graphDiv |