diff --git a/src/General/Build.coffee b/src/General/Build.coffee index 535ec502f..0d56e4e97 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -198,36 +198,16 @@ Build = src = "#{staticPath}nofile.png" imgClass = 'no-file' - thumb = if imgClass - <%= html('') %> - else - <%= html('') %> - postCount = data.replies + 1 fileCount = data.images + !!data.ext pageCount = Index.liveThreadIDs.indexOf(thread.ID) // Index.threadsNumPerPage + 1 - subject = if thread.OP.info.subject - <%= html('
${thread.OP.info.subject}
') %> - else - <%= html('') %> - comment = innerHTML: data.com or '' root = $.el 'div', className: 'catalog-thread' - $.extend root, <%= html( - '' + - '&{thumb}' + - '' + - '
' + - '${postCount} / ${fileCount} / ${pageCount}' + - '' + - '
' + - '&{subject}' + - '
&{comment}
' - ) %> + $.extend root, <%= importHTML('Build/CatalogThread') %> root.dataset.fullID = thread.fullID $.addClass root, thread.OP.highlights... if thread.OP.highlights diff --git a/src/General/html/Build/CatalogThread.html b/src/General/html/Build/CatalogThread.html new file mode 100644 index 000000000..2550e3269 --- /dev/null +++ b/src/General/html/Build/CatalogThread.html @@ -0,0 +1,9 @@ + + + +
+ ${postCount} / ${fileCount} / ${pageCount} + +
+?{thread.OP.info.subject}{
${thread.OP.info.subject}
} +
&{comment}