adding lock to protected categories
This commit is contained in:
parent
3edf3609f2
commit
b13c0f21ac
|
@ -7,8 +7,13 @@
|
|||
.category-title-contents {
|
||||
max-width: 500px;
|
||||
padding: 40px 40px 30px;
|
||||
i {
|
||||
margin-right: .25em;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
h1 {
|
||||
text-transform: capitalize;
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,15 +28,23 @@
|
|||
return h('p', category.description_text);
|
||||
}
|
||||
}
|
||||
|
||||
function ifProtected() {
|
||||
if(category.read_restricted) {
|
||||
return h('i.fa.fa-lock');
|
||||
}
|
||||
}
|
||||
|
||||
return h('div.category-title-header', {
|
||||
"attributes" : {
|
||||
"style" : "background-color: #" + category.color + "; color: #" + category.text_color + ";"
|
||||
}
|
||||
}, h('div.category-title-contents', [
|
||||
ifProtected(),
|
||||
h('h1', category.name),
|
||||
catDesc()
|
||||
])
|
||||
h('div.category-title-description',catDesc())
|
||||
]),
|
||||
|
||||
);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue