applications/freifunk-widgets: remove order variable, fix html in rss view, fix searc...
[project/luci.git] / applications / luci-freifunk-widgets / luasrc / view / freifunk / widgets / iframe / main.htm
1 <%
2 --[[
3 LuCI - Lua Configuration Interface
4
5 Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
6
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
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 ]]--
14
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"
21 end
22 local width = data['width'] or "100%"
23 if type(width) == "number" then
24 width = width .. "px"
25 end
26
27 %>
28
29 <div id="<%=name%>" style="width:<%=width%>;float:left;">
30 <h2><%=title%></h2>
31
32 <% if not url then %>
33
34 <%:No url set.%>
35
36 <% else %>
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>
42 </object>
43 </div>
44 </div>
45 <%end%>