From 8591d4e3963900082bc6468fe37eb08ce930faec Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 14 Aug 2008 01:31:17 +0000 Subject: [PATCH] * luci/libs: improved cbi templates * luci/modules: fix layout of sshkeys page in admin-full --- libs/cbi/luasrc/view/cbi/nsection.htm | 4 ++- libs/cbi/luasrc/view/cbi/tblsection.htm | 6 ++-- .../luasrc/view/admin_system/sshkeys.htm | 34 +++++++++---------- 3 files changed, 23 insertions(+), 21 deletions(-) diff --git a/libs/cbi/luasrc/view/cbi/nsection.htm b/libs/cbi/luasrc/view/cbi/nsection.htm index 27db4bfbf..156137eeb 100644 --- a/libs/cbi/luasrc/view/cbi/nsection.htm +++ b/libs/cbi/luasrc/view/cbi/nsection.htm @@ -18,7 +18,9 @@ $Id$ <% if self.title and #self.title > 0 then -%> <%=self.title%> <%- end %> -
<%=self.description%>
+ <% if self.description and #self.description > 0 then -%> +
<%=self.description%>
+ <%- end %> <% if self.addremove then -%>
diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm index d4effef49..7bb31caa1 100644 --- a/libs/cbi/luasrc/view/cbi/tblsection.htm +++ b/libs/cbi/luasrc/view/cbi/tblsection.htm @@ -21,8 +21,8 @@ end -%> -
-

<%=self.title%>

+
+ <%=self.title%>
<%=self.description%>
<%- local count = 0 -%> @@ -104,5 +104,5 @@ end
<%- end -%>
-
+ diff --git a/modules/admin-full/luasrc/view/admin_system/sshkeys.htm b/modules/admin-full/luasrc/view/admin_system/sshkeys.htm index 9a08af9e3..7b636090c 100644 --- a/modules/admin-full/luasrc/view/admin_system/sshkeys.htm +++ b/modules/admin-full/luasrc/view/admin_system/sshkeys.htm @@ -12,28 +12,28 @@ You may obtain a copy of the License at $Id$ -%> -<%+header%> -

<%:system%>

-

<%:a_s_sshkeys%>

- -
- -
<%:a_s_sshkeys1%>
-
+<%+header%>
-
-
-
- -
+
+

<%:a_s_sshkeys%>

+
+ <%:a_s_sshkeys1%>
+
+ <%:a_s_sshkeys%> + + <% if msg then -%> +
<%:error%>: <%=msg%>
+ <% end %> +
+
- - + +
- <% if msg then %>
<%:error%>: <%=msg%>
<% end %> -<%+footer%> \ No newline at end of file + +<%+footer%> -- 2.25.1