Whitespace.

This commit is contained in:
ccd0 2015-03-22 20:14:54 -07:00
parent b0fd56ac8d
commit abcc232f8f

View File

@ -5,6 +5,7 @@ FileInfo =
Post.callbacks.push Post.callbacks.push
name: 'File Info Formatting' name: 'File Info Formatting'
cb: @node cb: @node
node: -> node: ->
return if !@file or @isClone return if !@file or @isClone
@file.link.hidden = true @file.link.hidden = true
@ -12,6 +13,7 @@ FileInfo =
info = $.el 'span', className: 'file-info' info = $.el 'span', className: 'file-info'
$.after @file.link.nextSibling, info $.after @file.link.nextSibling, info
FileInfo.format Conf['fileInfo'], @, info FileInfo.format Conf['fileInfo'], @, info
format: (formatString, post, outputNode) -> format: (formatString, post, outputNode) ->
output = [] output = []
formatString.replace /%(.)|[^%]+/g, (s, c) -> formatString.replace /%(.)|[^%]+/g, (s, c) ->
@ -21,6 +23,7 @@ FileInfo =
<%= html('${s}') %> <%= html('${s}') %>
'' ''
$.extend outputNode, <%= html('@{output}') %> $.extend outputNode, <%= html('@{output}') %>
formatters: formatters:
t: -> <%= html('${this.file.URL.match(/[^\/]*$/)[0]}') %> t: -> <%= html('${this.file.URL.match(/[^\/]*$/)[0]}') %>
T: -> <%= html('<a href="${this.file.URL}" target="_blank">&{FileInfo.formatters.t.call(this)}</a>') %> T: -> <%= html('<a href="${this.file.URL}" target="_blank">&{FileInfo.formatters.t.call(this)}</a>') %>