diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-09-29 14:16:46 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-09-29 14:21:28 +0200 |
commit | 82dea9ca3000bc146e510cdae0e403e6780d71f5 (patch) | |
tree | e41d4019da7924dbd82c460996cde1e93ff6ccc1 /themes/luci-theme-bootstrap | |
parent | d79d9874d7a1cf29531ee927b2668263557b21f3 (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-bootstrap')
-rw-r--r-- | themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm index 3fc535949..9ea1ff228 100644 --- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm +++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm @@ -171,7 +171,7 @@ <script src="<%=resource%>/xhr.js"></script> </head> - <body class="lang_<%=luci.i18n.context.lang%> <%- if node then %><%= striptags( node.title ) %><%- end %>"> + <body class="lang_<%=luci.i18n.context.lang%> <% if node then %><%= striptags( node.title ) %><%- end %>" data-page="<%= table.concat(disp.context.requestpath, "-") %>"> <header> <div class="fill"> <div class="container"> |