Build missing [Reply] button.
This commit is contained in:
parent
fecf286d26
commit
a5d72fe515
@ -186,6 +186,11 @@ Build =
|
|||||||
else
|
else
|
||||||
''
|
''
|
||||||
|
|
||||||
|
replyLink = if isOP and g.VIEW is 'index'
|
||||||
|
" <span>[<a href='/#{boardID}/res/#{threadID}' class=replylink>Reply</a>]</span>"
|
||||||
|
else
|
||||||
|
''
|
||||||
|
|
||||||
container = $.el 'div',
|
container = $.el 'div',
|
||||||
id: "pc#{postID}"
|
id: "pc#{postID}"
|
||||||
className: "postContainer #{if isOP then 'op' else 'reply'}Container"
|
className: "postContainer #{if isOP then 'op' else 'reply'}Container"
|
||||||
@ -233,6 +238,7 @@ Build =
|
|||||||
else
|
else
|
||||||
"/#{boardID}/res/#{threadID}#q#{postID}"
|
"/#{boardID}/res/#{threadID}#q#{postID}"
|
||||||
}' title='Quote this post'>#{postID}</a>" +
|
}' title='Quote this post'>#{postID}</a>" +
|
||||||
|
replyLink +
|
||||||
'</span>' +
|
'</span>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
|
|
||||||
@ -266,7 +272,7 @@ Build =
|
|||||||
html = []
|
html = []
|
||||||
html.push "#{omitted_posts} post#{if omitted_posts > 1 then 's' else ''}"
|
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 "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',
|
$.after root.firstChild, $.el 'span',
|
||||||
className: 'summary'
|
className: 'summary'
|
||||||
innerHTML: html.join ' '
|
innerHTML: html.join ' '
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user