Fix compare link text for tags.

This commit is contained in:
Mathias Meyer 2014-05-08 15:31:27 +02:00
parent 1ceb935e19
commit 882d479c0f

View File

@ -332,8 +332,12 @@ Ember.registerBoundHelper 'formatConfig', (config, options) ->
safe Travis.Helpers.formatConfig(config)
Ember.registerBoundHelper 'shortCompareShas', (url, options) ->
shas = Travis.Helpers.pathFrom(url).split('...')
"#{shas[0][0..6]}..#{shas[1][0..6]}"
path = Travis.Helpers.pathFrom(url)
if path.indexOf('...') >= 0
shas = path.split('...')
"#{shas[0][0..6]}..#{shas[1][0..6]}"
else
path
Ember.registerBoundHelper 'formatLog', (log, options) ->
parentView = @get 'parentView'