parsav  Diff

Differences From Artifact [a292c2030a]:

To Artifact [fa9db8630d]:


50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
local terra 
render_conf([co], [path], notify: pstr)
	var menu = co:stra(256)
	menu:lpush('<hr>') 

	-- build menu
	do var p = co.who.rights.powers
		if p:affect_users() then menu:lpush '<a href="/conf/users">users</a>' end
		if p.censor() then menu:lpush '<a href="/conf/censor">badthink alerts</a>' end
		if p.config() then menu:lpush([
			'<a href="/conf/srv">server &amp; policy</a>' ..
			'<a href="/conf/badge">badges</a>' ..
			'<a href="/conf/emoji">emoji packs</a>'
		]) end
		if p.rebrand() then menu:lpush '<a href="/conf/brand">instance branding</a>' end
	end

	-- select the appropriate panel
	var [panel] = pstr { ptr = ''; ct = 0 }
	if path.ct >= 2 then [invoker] end

	-- avoid the hr if we didn't add any elements







|
|

|
|
|

|







50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
local terra 
render_conf([co], [path], notify: pstr)
	var menu = co:stra(256)
	menu:lpush('<hr>') 

	-- build menu
	do var p = co.who.rights.powers
		if p:affect_users() then menu:lpush '<a class="button" href="/conf/users">users</a>' end
		if p.censor() then menu:lpush '<a class="button" href="/conf/censor">badthink alerts</a>' end
		if p.config() then menu:lpush([
			'<a class="button" href="/conf/srv">server &amp; policy</a>' ..
			'<a class="button" href="/conf/badge">badges</a>' ..
			'<a class="button" href="/conf/emoji">emoji packs</a>'
		]) end
		if p.rebrand() then menu:lpush '<a class="button" href="/conf/brand">instance branding</a>' end
	end

	-- select the appropriate panel
	var [panel] = pstr { ptr = ''; ct = 0 }
	if path.ct >= 2 then [invoker] end

	-- avoid the hr if we didn't add any elements