Werk Tyme in catalog

This commit is contained in:
ccd0 2014-09-16 01:12:53 -07:00
parent a55daa2736
commit 1d2e956d7d
2 changed files with 20 additions and 1 deletions

View File

@ -833,9 +833,19 @@ span.hide-announcement {
display: none;
}
/* Werk Tyme */
.werkTyme .post .file {
.werkTyme .post .file,
.werkTyme .thumb > img,
:root:not(.werkTyme) .thumb > span {
display: none;
}
.werkTyme .thumb {
font-weight: bold;
text-align: center;
}
.werkTyme .pinned .thumb,
.werkTyme .filter-highlight .thumb {
border: 2px solid rgba(255, 0, 0, .5);
}
/* Index/Reply Navigation */
#navlinks {

View File

@ -20,10 +20,19 @@ FappeTyme =
name: 'Fappe Tyme'
cb: @node
CatalogThread.callbacks.push
name: 'Werk Tyme'
cb: @catalogNode
node: ->
return if @file
$.addClass @nodes.root, "noFile"
catalogNode: ->
{file} = @thread.OP
return if !file
$.add @nodes.thumb, $.el('span', textContent: file.name)
cb:
set: (type) ->
FappeTyme[type].checked = Conf[type]