Build missing [Reply] button.

This commit is contained in:
Mayhem 2013-10-30 00:07:00 +01:00
parent fecf286d26
commit a5d72fe515

View File

@ -186,6 +186,11 @@ Build =
else
''
replyLink = if isOP and g.VIEW is 'index'
" &nbsp; <span>[<a href='/#{boardID}/res/#{threadID}' class=replylink>Reply</a>]</span>"
else
''
container = $.el 'div',
id: "pc#{postID}"
className: "postContainer #{if isOP then 'op' else 'reply'}Container"
@ -233,6 +238,7 @@ Build =
else
"/#{boardID}/res/#{threadID}#q#{postID}"
}' title='Quote this post'>#{postID}</a>" +
replyLink +
'</span>' +
'</div>' +
@ -266,7 +272,7 @@ Build =
html = []
html.push "#{omitted_posts} post#{if omitted_posts > 1 then 's' else ''}"
html.push "and #{omitted_images} image repl#{if omitted_images > 1 then 'ies' else 'y'}" if omitted_images
html.push "omitted. Click <a href=/#{board}/res/#{data.no} class=replylink>here</a> to view."
html.push "omitted. Click <a href='/#{board}/res/#{data.no}' class=replylink>here</a> to view."
$.after root.firstChild, $.el 'span',
className: 'summary'
innerHTML: html.join ' '