X-Git-Url: http://git.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-freifunk-widgets%2Fluasrc%2Fview%2Ffreifunk%2Fwidgets%2Fiframe%2Fmain.htm;fp=applications%2Fluci-freifunk-widgets%2Fluasrc%2Fview%2Ffreifunk%2Fwidgets%2Fiframe%2Fmain.htm;h=7d8f087e4569dc299aca5e9721253495ab7246f0;hp=0000000000000000000000000000000000000000;hb=745920eb08b63944ea03cb140dbe4033d7467973;hpb=2ad8d7fe61697bdeb9dc9ca421c9149c9ec33917 diff --git a/applications/luci-freifunk-widgets/luasrc/view/freifunk/widgets/iframe/main.htm b/applications/luci-freifunk-widgets/luasrc/view/freifunk/widgets/iframe/main.htm new file mode 100644 index 0000000000..7d8f087e45 --- /dev/null +++ b/applications/luci-freifunk-widgets/luasrc/view/freifunk/widgets/iframe/main.htm @@ -0,0 +1,31 @@ +<% +local url = data['url'] +local title = data['title'] or "No title set" +local height = data['height'] or "400px" +if type(height) == "number" then + height = height .. "px" +end +local width = data['width'] or "100%" +if type(width) == "number" then + width = width .. "px" +end + +%> + +
+

<%=title%>

+ +<% if not url then %> + +<%:No url set.%> + +<% else %> +
+ + +<%:Sorry, your browser doesn't support the object tag and cannot display this page:%>
+<%=url%> +
+
+
+<%end%>