luci-theme-argon/luasrc/view/themes/argon/out_footer_login.htm
Giovanni Giacobbi 147b362334
Removed install scripts hacks as they are no longer needed
- The default 'postinst' from 'luci.mk' is sufficient for what we need, also updated the 'uci-default' to a standard version
- Hack about 'header_login' is replaced with adding 'out_header_login' directly from the sysauth template
- Also added specialized 'out_footer_login' and 'footer_login' for symmetric reasons
- Synced 'out_header_login.htm' with current LuCI 'header.htm'

Signed-off-by: Giovanni Giacobbi <giovanni@giacobbi.net>
2021-01-21 11:13:38 +01:00

28 lines
804 B
HTML

<%#
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008-2019 Jo-Philipp Wich <jo@mein.io>
Licensed to the public under the Apache License 2.0.
-%>
<%
local is_rollback_pending, rollback_time_remaining, rollback_session, rollback_token = luci.model.uci:rollback_pending()
if is_rollback_pending or trigger_apply or trigger_revert then
%>
<script type="text/javascript">
document.addEventListener("luci-loaded", function() {
<% if trigger_apply then -%>
L.ui.changes.apply(true);
<%- elseif trigger_revert then -%>
L.ui.changes.revert();
<%- else -%>
L.ui.changes.confirm(true, Date.now() + <%=rollback_time_remaining%> * 1000, <%=luci.http.write_json(rollback_token)%>);
<%- end %>
});
</script>
<%
end
include("themes/" .. theme .. "/footer_login")
%>