Displays time remaining relative to now

This commit is contained in:
Phil Hughes
2016-06-13 11:08:15 +01:00
parent e0673f82c9
commit 93080b65cd
2 changed files with 9 additions and 2 deletions
@@ -254,8 +254,6 @@ $ ->
.on "resize.app", (e) ->
fitSidebarForSize()
jQuery.timeago.settings.allowFuture = true;
gl.awardsHandler = new AwardsHandler()
checkInitialSidebarSize()
new Aside()
+9
View File
@@ -17,6 +17,8 @@ class @CiBuild
.off 'resize.build'
.on 'resize.build', @hideSidebar
@updateArtifactRemoveDate()
if $('#build-trace').length
@getInitialBuildTrace()
@initScrollButtonAffix()
@@ -103,3 +105,10 @@ class @CiBuild
$('.js-build-sidebar')
.removeClass 'right-sidebar-collapsed'
.addClass 'right-sidebar-expanded'
updateArtifactRemoveDate: ->
$date = $('.js-artifacts-remove')
if $date.length
date = $date.text()
$date.text $.timefor(new Date(date), ' ')