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 url = data['url']
16 local name = data['.name']
17 local title = data['title'] or "No title set"
18 local height = data['height'] or "400px"
19 if type(height) == "number" then
20 height = height .. "px"
22 local width = data['width'] or "100%"
23 if type(width) == "number" then
29 <div id="<%=name%>" style="width:<%=width%>;float:left;">
37 <div style="height:<%=height%>;min-height:<%=height%>">
38 <object type="text/html" data="<%=url%>" width="100%" height="<%=height%>" name="widget_<%=name%>" id="widget_<%=name%>">
39 <param name="src" value="<%=url%>" />
40 <%:Sorry, your browser doesn't support the object tag and cannot display this page:%><br />
41 <a href="<%=url%>"><%=url%></a>