adding lock to protected categories

This commit is contained in:
Kris 2018-06-11 13:54:15 -04:00
parent 3edf3609f2
commit b13c0f21ac
2 changed files with 15 additions and 2 deletions

View File

@ -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;
}
}
}

View File

@ -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 {