From 65479e3236afecfc8efa51fbcd831927e1ce8c56 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 26 Apr 2018 09:28:53 +0200 Subject: themes: fix CSS class of uci change indicator The previous commit incorrectly added a new class attribute without considering existing ones. Fixes 736d8fee4 ("themes: add common class to uci change indicator") Signed-off-by: Jo-Philipp Wich --- themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm | 2 +- .../luasrc/view/themes/freifunk-generic/header.htm | 2 +- themes/luci-theme-material/luasrc/view/themes/material/header.htm | 2 +- 3 files changed, 3 insertions(+), 3 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 7596236a6..4881535ac 100644 --- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm +++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm @@ -145,7 +145,7 @@ end if ucichanges > 0 then - write('%s: %d' %{ + write('%s: %d' %{ url(category, 'uci/changes'), http.urlencode(http.formvalue('redir') or table.concat(disp.context.request, "/")), translate('Unsaved Changes'), diff --git a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm index e9e8288e0..16ffc992a 100644 --- a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm +++ b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm @@ -205,7 +205,7 @@ if tree.nodes[category] and tree.nodes[category].ucidata then -%> <% end %> diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm index 3592f3873..0aca882c0 100644 --- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm +++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm @@ -170,7 +170,7 @@ end if ucichanges > 0 then - write('%s: %d' %{ + write('%s: %d' %{ url(category, 'uci/changes'), http.urlencode(http.formvalue('redir') or table.concat(disp.context.request, "/")), translate('Unsaved Changes'), -- cgit v1.2.3