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: https://git.librecmc.org/?a=commitdiff_plain;h=8591d4e3963900082bc6468fe37eb08ce930faec;p=oweals%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 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%>