3 LuCI - Lua Configuration Interface
5 Copyright
2012 Manuel Munz
<freifunk at somakoma dot de
>
7 Licensed under the Apache License, Version
2.0 (the
"License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-
2.0
15 --local utl = require
"luci.util"
16 local fs = require
"luci.fs"
17 local title = data.title
18 local name = data['.name']
19 local file =
"/usr/share/customtext/" .. name ..
".html"
20 local text = fs.readfile(file)
21 local width = data.width or
"100%"
22 local pr = data.paddingright or
"0"
23 if type(width) ==
"number" then
29 <div id=
"<%=name%>" style=
"width:<%=width%>;float:left">
30 <div style=
"padding-right: <%=pr%>">
37 <%:Could not load the custom text from%
> "<%=file%>!"