From a411c56c8776a7f9844a9c4baebfb08cec00afd7 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Tue, 23 Nov 2010 23:40:54 +0000 Subject: modules/freifunk/services: Use cbi table style --- .../luasrc/view/freifunk-services/services.htm | 48 +++++++++++----------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'modules/freifunk') diff --git a/modules/freifunk/luasrc/view/freifunk-services/services.htm b/modules/freifunk/luasrc/view/freifunk-services/services.htm index 941f85591..650ef43a4 100644 --- a/modules/freifunk/luasrc/view/freifunk-services/services.htm +++ b/modules/freifunk/luasrc/view/freifunk-services/services.htm @@ -45,36 +45,36 @@ function fetch_services() return tables end - %> <% if has_services then %> +

<%:Services%>

-
- - - - - - - - <% - table=fetch_services() +
+
+
+
<%:Url%><%:Source%>
+ + + + + + <% table=fetch_services() + local i = 1 for k, line in ipairs(table) do - local field = {} - -- split line at # and |, 1=url, 2=proto, 3=description, 4=source - local field = luci.util.split(line, "[#|]", split, true) - %> - - - + local field = {} + -- split line at # and |, 1=url, 2=proto, 3=description, 4=source + local field = luci.util.split(line, "[#|]", split, true) %> + + + + + <% if i == 1 then i = 0 elseif i == 0 then i = 1 end %> <%end%> - -
<%:Url%><%:Source%>
- <%=field[3]%> - - <%=field[4]%> -
<%=field[3]%><%=field[4]%>
+ +
+ +
<%=last_update%> -- cgit v1.2.3