manman-sync fix statuspage
This commit is contained in:
		
							parent
							
								
									436f3eaff5
								
							
						
					
					
						commit
						c5ccdf15f8
					
				@ -1,10 +1,10 @@
 | 
			
		||||
local site_i18n = i18n 'gluon-site'
 | 
			
		||||
 | 
			
		||||
local uci = require("simple-uci").cursor()
 | 
			
		||||
local uci = require('simple-uci').cursor()
 | 
			
		||||
 | 
			
		||||
local msg
 | 
			
		||||
 | 
			
		||||
if uci:get_bool("gluon", "manman_sync", "enabled") then
 | 
			
		||||
if uci:get_bool('gluon-manman-sync', 'sync', 'enabled') then
 | 
			
		||||
	msg = site_i18n._translate('gluon-config-mode:manman')
 | 
			
		||||
else
 | 
			
		||||
	msg = site_i18n._translate('gluon-config-mode:no-manman')
 | 
			
		||||
@ -13,5 +13,5 @@ end
 | 
			
		||||
if not msg then return end
 | 
			
		||||
 | 
			
		||||
renderer.render_string(msg, {
 | 
			
		||||
	location_id = uci:get("gluon", "manman_sync", "location_id")
 | 
			
		||||
	location_id = uci:get('gluon-manman-sync', 'sync', 'node_id')
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user