formatDuration was renamed to format-duration

This commit is contained in:
Piotr Sarnacki 2015-01-30 17:44:12 +01:00
parent bfdb9cd47b
commit 64804aae08
7 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@
</div>
<div class="runtime">
{{#if build.isFinished}}ran{{else}}running{{/if}} for {{formatDuration build.duration}}
{{#if build.isFinished}}ran{{else}}running{{/if}} for {{format-duration build.duration}}
</div>
<div class="finished">

View File

@ -50,7 +50,7 @@
</td>
{{/if}}
<td class="duration" {{bind-attr title="build.duration"}}>
{{formatDuration build.duration}}
{{format-duration build.duration}}
</td>
<td class="finished_at timeago" {{bind-attr title="build.formattedFinishedAt"}}>
{{format-time build.finishedAt}}

View File

@ -44,7 +44,7 @@
<div class="build-information">
<p class="org">{{repo.owner.login}}</p>
<p class="repo">{{#link-to "repo" repo.owner.login repo.name}}{{repo.name}}{{/link-to}}</p>
<div class="duration">{{formatDuration repo.last_build.duration}}</div>
<div class="duration">{{format-duration repo.last_build.duration}}</div>
<div class="finished">{{format-time repo.last_build.finished_at}}</div>
<p class="build-status">
{{#link-to "build" repo.owner.login repo.name repo.last_build.id}}

View File

@ -11,7 +11,7 @@
</div>
<div class="runtime">
{{#if job.isFinished}}ran{{else}}running{{/if}} for {{formatDuration job.duration}}
{{#if job.isFinished}}ran{{else}}running{{/if}} for {{format-duration job.duration}}
</div>
<div class="finished">

View File

@ -30,7 +30,7 @@
{{/if}}
</td>
<td class="duration" {{bind-attr title="startedAt"}}>
{{formatDuration duration}}
{{format-duration duration}}
</td>
<td class="finished_at timeago" {{bind-attr title="formattedFinishedAt"}}>
{{format-time finishedAt}}

View File

@ -25,7 +25,7 @@
<p class="summary">
<span class="duration_label">Duration:</span>
<abbr class="duration" {{bind-attr title="lastBuildStartedAt"}}>
{{formatDuration repo.lastBuildDuration}}
{{format-duration repo.lastBuildDuration}}
</abbr>
</p>
<p class="summary">

View File

@ -38,8 +38,8 @@ TravisPusher.prototype.unsubscribe = (channel) ->
@pusher.unsubscribe(channel) if @pusher?.channel(channel)
TravisPusher.prototype.prefix = (channel) ->
if channel.indexOf(@config.pusher.channel_prefix) != 0
"#{@config.pusher.channel_prefix}#{channel}"
if channel.indexOf(config.pusher.channel_prefix) != 0
"#{config.pusher.channel_prefix}#{channel}"
else
channel