From cb06573805826173c0f19ca13bc9670f74f6b499 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 7 Dec 2008 21:27:11 +0000 Subject: [PATCH] modules/admin-full: improve layout of uci changes pages --- .../luasrc/view/admin_uci/apply.htm | 47 +++++++++--------- .../luasrc/view/admin_uci/changes.htm | 48 +++++++++++-------- .../luasrc/view/admin_uci/revert.htm | 26 +++++----- 3 files changed, 66 insertions(+), 55 deletions(-) diff --git a/modules/admin-full/luasrc/view/admin_uci/apply.htm b/modules/admin-full/luasrc/view/admin_uci/apply.htm index a908b6a8b..ac18746b6 100644 --- a/modules/admin-full/luasrc/view/admin_uci/apply.htm +++ b/modules/admin-full/luasrc/view/admin_uci/apply.htm @@ -13,27 +13,30 @@ $Id$ -%> <%+header%> -
-"><< <%:back%> -
-
-
+

<%:config%>

-

<%:uci_applied%>:

-<%=(changes or "-")%> - -<% -local fp = reload() -local line = fp:read() -while line do - write(line.."\n") - line = fp:read() -end -fp:close() -%> -
-"><< <%:back%> -
-
+

<%:uci_applied%>:

+ +
+ <%=(changes or "-")%>
-<%+footer%> \ No newline at end of file + +
+
    <%- + local fp = reload() + local line = fp:read() + while line do + write("
  • " .. luci.util.pcdata(line) .. "
  • \n") + line = fp:read() + end + fp:close() + -%>
+
+ +
+
"> + +
+
+ +<%+footer%> diff --git a/modules/admin-full/luasrc/view/admin_uci/changes.htm b/modules/admin-full/luasrc/view/admin_uci/changes.htm index 6375aaf71..a9db8b49b 100644 --- a/modules/admin-full/luasrc/view/admin_uci/changes.htm +++ b/modules/admin-full/luasrc/view/admin_uci/changes.htm @@ -12,28 +12,34 @@ You may obtain a copy of the License at $Id$ -%> + <%+header%> -
-"><< <%:back%> -
-
-
+

<%:config%>

-

<%:changes%>

-<%=changes%> -

-
- -
-
- -
-
- -
- -
-
-"><< <%:back%> +

<%:changes%>:

+ +
+ <%=changes%>
+ +
+
+
"> + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ <%+footer%> diff --git a/modules/admin-full/luasrc/view/admin_uci/revert.htm b/modules/admin-full/luasrc/view/admin_uci/revert.htm index e8515dc41..9c98d452e 100644 --- a/modules/admin-full/luasrc/view/admin_uci/revert.htm +++ b/modules/admin-full/luasrc/view/admin_uci/revert.htm @@ -12,18 +12,20 @@ You may obtain a copy of the License at $Id$ -%> + <%+header%> -
-"><< <%:back%> -
-
-
+

<%:config%>

-

<%:uci_reverted%>:

-<%=(changes or "-")%> -
-"><< <%:back%> -
-
+

<%:uci_reverted%>:

+ +
+ <%=(changes or "-")%>
-<%+footer%> \ No newline at end of file + +
+
"> + +
+
+ +<%+footer%> -- 2.25.1