diff --git a/src/Filtering/ThreadHiding.coffee b/src/Filtering/ThreadHiding.coffee index e8fb10969..1f5a8b3a6 100755 --- a/src/Filtering/ThreadHiding.coffee +++ b/src/Filtering/ThreadHiding.coffee @@ -131,7 +131,7 @@ ThreadHiding = a = $.el 'a', className: "#{type}-thread-button" href: 'javascript:;' - $.extend a, <%= html('') %> + $.extend a, <%= html('') %> a.dataset.fullID = thread.fullID $.on a, 'click', ThreadHiding.toggle a diff --git a/src/Monitoring/ThreadStats.coffee b/src/Monitoring/ThreadStats.coffee index 3b56bd949..52363ef60 100755 --- a/src/Monitoring/ThreadStats.coffee +++ b/src/Monitoring/ThreadStats.coffee @@ -2,14 +2,14 @@ ThreadStats = init: -> return if g.VIEW isnt 'thread' or !Conf['Thread Stats'] - statsHTML = <%= html('? / ?') %> + statsHTML = <%= html( + '? / ?' + + '?{Conf["IP Count in Stats"]}{ / ?}' + + '?{Conf["Page Count in Stats"]}{ / ?}' + ) %> statsTitle = 'Posts / Files' - if Conf['IP Count in Stats'] - statsHTML = <%= html('&{statsHTML} / ?') %> - statsTitle += ' / IPs' - if Conf['Page Count in Stats'] - statsHTML = <%= html('&{statsHTML} / ?') %> - statsTitle += ' / Page' + statsTitle += ' / IPs' if Conf['IP Count in Stats'] + statsTitle += ' / Page' if Conf['Page Count in Stats'] if Conf['Updater and Stats in Header'] @dialog = sc = $.el 'span', diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 46bc63be5..e016e2057 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -48,7 +48,7 @@ QR = link = $.el 'h1', className: "qr-link-container" - $.extend link, <%= html('${(g.VIEW === "thread") ? "Reply to Thread" : "Start a Thread"}') %> + $.extend link, <%= html('?{g.VIEW === "thread"}{Reply to Thread}{Start a Thread}') %> QR.link = link.firstElementChild $.on link.firstChild, 'click', ->