diff --git a/src/General/Build.coffee b/src/General/Build.coffee index d870bdcac..28d0b6d93 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -1,6 +1,5 @@ Build = - h_staticPath: '//s.4cdn.org/image/' - h_gifIcon: if window.devicePixelRatio >= 2 then '@2x.gif' else '.gif' + initPixelRatio: window.devicePixelRatio spoilerRange: {} h_escape: (text) -> (text+'').replace /[&"'<>]/g, (c) -> @@ -80,55 +79,33 @@ Build = postID, threadID, boardID name, capcode, tripcode, uniqueID, email, subject, flagCode, flagName, date, dateUTC isSticky, isClosed - h_comment file } = o name or= '' subject or= '' + h_comment = o.h_comment isOP = postID is threadID - {h_staticPath, h_gifIcon} = Build - if isOP - h_sideArrows = '' + if Build.initPixelRatio >= 2 + h_retina = '@2x' else - h_sideArrows = "
"
else
- h_flag = ""
-
- if file?.isDeleted
- h_file = "
"
else
- shortFilename = Build.shortFilename file.name, !isOP
+ h_flag = ""
- if file.url[-4..] is '.pdf'
- h_fileDims = 'PDF'
- else
- h_fileDims = "#{+file.width}x#{+file.height}"
+ h_nameBlock = ""
+ h_nameBlock += "#{h_email}#{h_capcodeIcon}#{h_userID}#{h_flag}"
+ h_nameBlock += ' '
- if boardID is 'f'
- h_imgSrc = ''
- h_fileInfo = "
"
+ else
+ h_sticky = ''
+
+ if isClosed
+ h_closed = "
"
+ else
+ h_closed = ''
+
if isOP and g.VIEW is 'index'
h_replyLink = " [Reply]"
else
h_replyLink = ''
+ h_postInfo = "
"
+ h_fileCont += ''
+ else if file and boardID is 'f'
+ fileSize = $.bytesToString file.size
+ h_fileCont = "#{h_comment}" + + if isOP + h_post = "
#{h_comment}- -