Differences From
Artifact [a292c2030a]:
50 50 local terra
51 51 render_conf([co], [path], notify: pstr)
52 52 var menu = co:stra(256)
53 53 menu:lpush('<hr>')
54 54
55 55 -- build menu
56 56 do var p = co.who.rights.powers
57 - if p:affect_users() then menu:lpush '<a href="/conf/users">users</a>' end
58 - if p.censor() then menu:lpush '<a href="/conf/censor">badthink alerts</a>' end
57 + if p:affect_users() then menu:lpush '<a class="button" href="/conf/users">users</a>' end
58 + if p.censor() then menu:lpush '<a class="button" href="/conf/censor">badthink alerts</a>' end
59 59 if p.config() then menu:lpush([
60 - '<a href="/conf/srv">server & policy</a>' ..
61 - '<a href="/conf/badge">badges</a>' ..
62 - '<a href="/conf/emoji">emoji packs</a>'
60 + '<a class="button" href="/conf/srv">server & policy</a>' ..
61 + '<a class="button" href="/conf/badge">badges</a>' ..
62 + '<a class="button" href="/conf/emoji">emoji packs</a>'
63 63 ]) end
64 - if p.rebrand() then menu:lpush '<a href="/conf/brand">instance branding</a>' end
64 + if p.rebrand() then menu:lpush '<a class="button" href="/conf/brand">instance branding</a>' end
65 65 end
66 66
67 67 -- select the appropriate panel
68 68 var [panel] = pstr { ptr = ''; ct = 0 }
69 69 if path.ct >= 2 then [invoker] end
70 70
71 71 -- avoid the hr if we didn't add any elements