From: Manuel Munz Date: Tue, 23 Nov 2010 23:40:54 +0000 (+0000) Subject: modules/freifunk/services: Use cbi table style X-Git-Tag: 0.10.0~377 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a411c56c8776a7f9844a9c4baebfb08cec00afd7;p=oweals%2Fluci.git modules/freifunk/services: Use cbi table style --- 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%>