From 7ae3fc5478312e6213d33b6300626eeb8cde9a5f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 25 May 2009 13:53:31 +0000 Subject: modules/freifunk: add map --- .../freifunk/luasrc/view/freifunk-map/frame.htm | 21 +++++ modules/freifunk/luasrc/view/freifunk-map/map.htm | 97 ++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 modules/freifunk/luasrc/view/freifunk-map/frame.htm create mode 100644 modules/freifunk/luasrc/view/freifunk-map/map.htm (limited to 'modules/freifunk/luasrc/view/freifunk-map') diff --git a/modules/freifunk/luasrc/view/freifunk-map/frame.htm b/modules/freifunk/luasrc/view/freifunk-map/frame.htm new file mode 100644 index 0000000000..9ec4f1c5db --- /dev/null +++ b/modules/freifunk/luasrc/view/freifunk-map/frame.htm @@ -0,0 +1,21 @@ +<%+header%> + +<% + local has_latlon = false + local uci = require "luci.model.uci".cursor() + uci:foreach("olsrd", "LoadPlugin", function(s) + if s.library == "olsrd_nameservice.so.0.3" and s.latlon_file then + has_latlon = true + end + end) +%> + +<% if has_latlon then %> + +<% else %> +

<%:freifunk_map_error Map Error%>

+

<%:freifunk_map_nodata The OLSRd service is not configured to capture position data from the network.
+ Please make sure that the nameservice plugin is properly configured and that the latlon_file option is enabled.%>

+<% end %> + +<%+footer%> diff --git a/modules/freifunk/luasrc/view/freifunk-map/map.htm b/modules/freifunk/luasrc/view/freifunk-map/map.htm new file mode 100644 index 0000000000..7ecf495210 --- /dev/null +++ b/modules/freifunk/luasrc/view/freifunk-map/map.htm @@ -0,0 +1,97 @@ + + + + Map + + + + + +
+ + -- cgit v1.2.3