[Commotion-admin] [luci-commotion] Babel Integration (#200)

Seamus Tuohy notifications at github.com
Tue Mar 25 14:10:20 UTC 2014


> @@ -126,7 +126,14 @@ function status_builder(page, assets, active_tab)
>  end
>  
>  function viz()
> -   status_builder("commotion/viz", nil, "mesh_visualizer")
> +	local uci = require "luci.model.uci".cursor()
> +	local meshname = uci:get("wireless", "commotionMesh", "network")
> +	local protocol = uci:get("network", meshname, "proto")
> +	if protocol == "commotion" then
> +		status_builder("commotion/viz", nil, "mesh_visualizer")
> +	else
> +		status_builder("commotion/warning_protocol", {proto=protocol}, "mesh_visualizer")

Ugh, I am so sorry about the Russian nesting doll status builder process. 

---
Reply to this email directly or view it on GitHub:
https://github.com/opentechinstitute/luci-commotion/pull/200/files#r10931368
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20140325/4d141766/attachment.html>


More information about the Commotion-admin mailing list