jschan - Anonymous imageboard software. Classic look, modern features and feel. Works without JavaScript and supports Tor, I2P, Lokinet, etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
641 B

for perm, index in Object.keys(jsonPermissions)
if jsonPermissions[perm].title && index > 0
hr(size=1)
h4.mv-5 #{jsonPermissions[perm].title}
if jsonPermissions[perm].subtitle
p #{jsonPermissions[perm].subtitle}
.row
- const hasParent = jsonPermissions[perm].parent == null || permissions.get(jsonPermissions[perm].parent);
label.postform-style.ph-5(class=(!hasParent ? 'notallowed' : null))
input(type='checkbox' name=perm value=jsonPermissions[perm].bit checked=jsonPermissions[perm].state disabled=!hasParent)
.rlabel #{jsonPermissions[perm].label}
p #{jsonPermissions[perm].desc}
input(type='submit', value='Save')