Move this code into the HTML template.
This commit is contained in:
parent
94c0a60b77
commit
84b7f546a5
@ -214,22 +214,4 @@ Build =
|
|||||||
$.addClass root, thread.OP.highlights... if thread.OP.highlights
|
$.addClass root, thread.OP.highlights... if thread.OP.highlights
|
||||||
$.addClass root, 'noFile' unless thread.OP.file
|
$.addClass root, 'noFile' unless thread.OP.file
|
||||||
|
|
||||||
if thread.isSticky
|
|
||||||
$.add $('.catalog-icons', root), $.el 'img',
|
|
||||||
src: "#{staticPath}sticky#{gifIcon}"
|
|
||||||
className: 'stickyIcon'
|
|
||||||
title: 'Sticky'
|
|
||||||
|
|
||||||
if thread.isClosed
|
|
||||||
$.add $('.catalog-icons', root), $.el 'img',
|
|
||||||
src: "#{staticPath}closed#{gifIcon}"
|
|
||||||
className: 'closedIcon'
|
|
||||||
title: 'Closed'
|
|
||||||
|
|
||||||
if data.bumplimit
|
|
||||||
$.addClass $('.post-count', root), 'warning'
|
|
||||||
|
|
||||||
if data.imagelimit
|
|
||||||
$.addClass $('.file-count', root), 'warning'
|
|
||||||
|
|
||||||
root
|
root
|
||||||
|
|||||||
@ -3,7 +3,12 @@
|
|||||||
</a>
|
</a>
|
||||||
<div class="catalog-stats">
|
<div class="catalog-stats">
|
||||||
<span title="Posts / Files / Page">
|
<span title="Posts / Files / Page">
|
||||||
<span class="post-count">${postCount}</span> / <span class="file-count">${fileCount}</span> / <span class="page-count">${pageCount}</span>
|
<span class="post-count?{data.bumplimit}{ warning}">${postCount}</span> /
|
||||||
|
<span class="file-count?{data.imagelimit}{ warning}">${fileCount}</span> /
|
||||||
|
<span class="page-count">${pageCount}</span>
|
||||||
|
</span>
|
||||||
|
<span class="catalog-icons">
|
||||||
|
?{thread.isSticky}{<img src="${staticPath}sticky${gifIcon}" class="stickyIcon" title="Sticky">}
|
||||||
|
?{thread.isClosed}{<img src="${staticPath}closed${gifIcon}" class="closedIcon" title="Closed">}
|
||||||
</span>
|
</span>
|
||||||
<span class="catalog-icons"></span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user