diff --git a/src/General/Build.coffee b/src/General/Build.coffee
index a39df478a..80c9db130 100755
--- a/src/General/Build.coffee
+++ b/src/General/Build.coffee
@@ -1,13 +1,12 @@
Build =
staticPath: '//s.4cdn.org/image/'
gifIcon: if window.devicePixelRatio >= 2 then '@2x.gif' else '.gif'
- initPixelRatio: window.devicePixelRatio
spoilerRange: {}
unescape: (text) ->
return text unless text?
text.replace(/<[^>]*>/g, '').replace /&(amp|#039|quot|lt|gt);/g, (c) ->
{'&': '&', ''': "'", '"': '"', '<': '<', '>': '>'}[c]
- shortFilename: (filename, isReply) ->
+ shortFilename: (filename) ->
threshold = 30
ext = filename.match(/\.?[^\.]*$/)[0]
if filename.length - ext.length > threshold
@@ -15,8 +14,8 @@ Build =
else
filename
thumbRotate: do ->
- n = 0
- -> n = (n + 1) % 2
+ t = 0
+ -> t = (if t then 0 else 1)
sameThread: (boardID, threadID) ->
g.VIEW is 'thread' and g.BOARD.ID is boardID and g.THREADID is +threadID
postURL: (boardID, threadID, postID) ->
@@ -83,8 +82,7 @@ Build =
name or= ''
subject or= ''
isOP = postID is threadID
-
- retina = if Build.initPixelRatio >= 2 then '@2x' else ''
+ {staticPath, gifIcon} = Build
### Name Block ###
@@ -92,15 +90,15 @@ Build =
when 'admin', 'admin_highlight'
capcodeClass = ' capcodeAdmin'
capcodeStart = <%= html(' ## Admin') %>
- capcodeIcon = <%= html('
') %>
+ capcodeIcon = <%= html('
') %>
when 'mod'
capcodeClass = ' capcodeMod'
capcodeStart = <%= html(' ## Mod') %>
- capcodeIcon = <%= html('
') %>
+ capcodeIcon = <%= html('
') %>
when 'developer'
capcodeClass = ' capcodeDeveloper'
capcodeStart = <%= html(' ## Developer') %>
- capcodeIcon = <%= html('
') %>
+ capcodeIcon = <%= html('
') %>
else
capcodeClass = ''
capcodeStart = <%= html('') %>
@@ -151,7 +149,7 @@ Build =
icons = for type in ['Sticky', 'Closed', 'Archived'] when o["is#{type}"] and !(type is 'Closed' and o.isArchived)
typeLC = type.toLowerCase()
- <%= html('
') %>
+ <%= html('
') %>
replyLink = if isOP and g.VIEW is 'index'
<%= html(' [Reply]') %>
@@ -177,7 +175,7 @@ Build =
fileCont = if file?.isDeleted
<%= html(
'' +
- '
' +
+ '
' +
''
) %>
else if file and boardID is 'f'