summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-openwrt
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-09-29 14:16:46 +0200
committerJo-Philipp Wich <jo@mein.io>2018-09-29 14:21:28 +0200
commit82dea9ca3000bc146e510cdae0e403e6780d71f5 (patch)
treee41d4019da7924dbd82c460996cde1e93ff6ccc1 /themes/luci-theme-openwrt
parentd79d9874d7a1cf29531ee927b2668263557b21f3 (diff)
themes: add data-page attribute to body elements
This is useful to write page specific CSS rules. Also fix a missing space in the body CSS class name in the bootstrap theme while we're at it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-openwrt')
-rw-r--r--themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
index 1d2161168..873d4d948 100644
--- a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
+++ b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
@@ -205,7 +205,7 @@
//]]></script>
<title><%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>
</head>
-<body class="lang_<%=luci.i18n.context.lang%>">
+<body class="lang_<%=luci.i18n.context.lang%>" data-page="<%= table.concat(disp.context.requestpath, "-") %>">
<p class="skiplink">
<span id="skiplink1"><a href="#navigation"><%:Skip to navigation%></a></span>