formatDuration was renamed to format-duration
This commit is contained in:
parent
bfdb9cd47b
commit
64804aae08
|
@ -10,7 +10,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="runtime">
|
<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>
|
||||||
|
|
||||||
<div class="finished">
|
<div class="finished">
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
</td>
|
</td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<td class="duration" {{bind-attr title="build.duration"}}>
|
<td class="duration" {{bind-attr title="build.duration"}}>
|
||||||
{{formatDuration build.duration}}
|
{{format-duration build.duration}}
|
||||||
</td>
|
</td>
|
||||||
<td class="finished_at timeago" {{bind-attr title="build.formattedFinishedAt"}}>
|
<td class="finished_at timeago" {{bind-attr title="build.formattedFinishedAt"}}>
|
||||||
{{format-time build.finishedAt}}
|
{{format-time build.finishedAt}}
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<div class="build-information">
|
<div class="build-information">
|
||||||
<p class="org">{{repo.owner.login}}</p>
|
<p class="org">{{repo.owner.login}}</p>
|
||||||
<p class="repo">{{#link-to "repo" repo.owner.login repo.name}}{{repo.name}}{{/link-to}}</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>
|
<div class="finished">{{format-time repo.last_build.finished_at}}</div>
|
||||||
<p class="build-status">
|
<p class="build-status">
|
||||||
{{#link-to "build" repo.owner.login repo.name repo.last_build.id}}
|
{{#link-to "build" repo.owner.login repo.name repo.last_build.id}}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="runtime">
|
<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>
|
||||||
|
|
||||||
<div class="finished">
|
<div class="finished">
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
<td class="duration" {{bind-attr title="startedAt"}}>
|
<td class="duration" {{bind-attr title="startedAt"}}>
|
||||||
{{formatDuration duration}}
|
{{format-duration duration}}
|
||||||
</td>
|
</td>
|
||||||
<td class="finished_at timeago" {{bind-attr title="formattedFinishedAt"}}>
|
<td class="finished_at timeago" {{bind-attr title="formattedFinishedAt"}}>
|
||||||
{{format-time finishedAt}}
|
{{format-time finishedAt}}
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<p class="summary">
|
<p class="summary">
|
||||||
<span class="duration_label">Duration:</span>
|
<span class="duration_label">Duration:</span>
|
||||||
<abbr class="duration" {{bind-attr title="lastBuildStartedAt"}}>
|
<abbr class="duration" {{bind-attr title="lastBuildStartedAt"}}>
|
||||||
{{formatDuration repo.lastBuildDuration}}
|
{{format-duration repo.lastBuildDuration}}
|
||||||
</abbr>
|
</abbr>
|
||||||
</p>
|
</p>
|
||||||
<p class="summary">
|
<p class="summary">
|
||||||
|
|
|
@ -38,8 +38,8 @@ TravisPusher.prototype.unsubscribe = (channel) ->
|
||||||
@pusher.unsubscribe(channel) if @pusher?.channel(channel)
|
@pusher.unsubscribe(channel) if @pusher?.channel(channel)
|
||||||
|
|
||||||
TravisPusher.prototype.prefix = (channel) ->
|
TravisPusher.prototype.prefix = (channel) ->
|
||||||
if channel.indexOf(@config.pusher.channel_prefix) != 0
|
if channel.indexOf(config.pusher.channel_prefix) != 0
|
||||||
"#{@config.pusher.channel_prefix}#{channel}"
|
"#{config.pusher.channel_prefix}#{channel}"
|
||||||
else
|
else
|
||||||
channel
|
channel
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user