From 8591d4e3963900082bc6468fe37eb08ce930faec Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 14 Aug 2008 01:31:17 +0000 Subject: * 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 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'libs/cbi/luasrc/view') diff --git a/libs/cbi/luasrc/view/cbi/nsection.htm b/libs/cbi/luasrc/view/cbi/nsection.htm index 27db4bfbfb..156137eeba 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 d4effef493..7bb31caa1d 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 -%>
-
+ -- cgit v1.2.3