mirror of https://gitgud.io/fatchan/jschan.git
ref #377 refactor, "my permissions" now a mixin
parent
8bd41eabd0
commit
9c629226cb
3 changed files with 14 additions and 18 deletions
@ -0,0 +1,10 @@ |
|||||||
|
mixin mypermissions(jsonPermissions, keys) |
||||||
|
for perm, index in keys |
||||||
|
if jsonPermissions[perm].title && index > 0 |
||||||
|
hr(size=1) |
||||||
|
h4.mv-5 #{jsonPermissions[perm].title} |
||||||
|
.row |
||||||
|
label.postform-style.ph-5 |
||||||
|
input(type='checkbox' checked=jsonPermissions[perm].state disabled) |
||||||
|
.rlabel #{jsonPermissions[perm].label} |
||||||
|
p #{jsonPermissions[perm].desc} |
Loading…
Reference in new issue