♻️ Atributos class e id explícitos en html!
Se usa `class="..."` e `id="..."` en lugar de `div.a #x`. El HTML generado es idéntico.
This commit is contained in:
parent
58d1fef4f1
commit
3f3634fdab
21 changed files with 80 additions and 74 deletions
|
|
@ -361,12 +361,12 @@ fn role_view_permissions(groups: &PermissionGroups) -> Vec<Block> {
|
|||
.with_title(group_label.clone())
|
||||
.with_child(Html::with(move |cx| {
|
||||
html! {
|
||||
ul.user-admin-permission-list {
|
||||
ul class="user-admin-permission-list" {
|
||||
@for (_key, label, granted) in &perms {
|
||||
@if *granted {
|
||||
li.user-admin-permission-granted { (label.using(cx)) }
|
||||
li class="user-admin-permission-granted" { (label.using(cx)) }
|
||||
} @else {
|
||||
li.user-admin-permission-missing { (label.using(cx)) }
|
||||
li class="user-admin-permission-missing" { (label.using(cx)) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue