From: Jo-Philipp Wich Date: Thu, 14 Aug 2008 01:31:17 +0000 (+0000) Subject: * luci/libs: improved cbi templates X-Git-Tag: 0.8.0~444 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8591d4e3963900082bc6468fe37eb08ce930faec;p=project%2Fluci.git * luci/libs: improved cbi templates * luci/modules: fix layout of sshkeys page in admin-full --- 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 -%>
-
+ diff --git a/modules/admin-full/luasrc/view/admin_system/sshkeys.htm b/modules/admin-full/luasrc/view/admin_system/sshkeys.htm index 9a08af9e3b..7b636090cd 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%>