Remove deprecation warnings for #with
This commit is contained in:
parent
b771f79587
commit
345dacff29
|
@ -7,27 +7,32 @@
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
{{#if isLoaded}}
|
{{#if isLoaded}}
|
||||||
{{#collection 'repos-list' content=this}}
|
{{#collection 'repos-list' content=this}}
|
||||||
{{#with view.repo}}
|
{{#with view.repo as repo}}
|
||||||
<div class="slug-and-status">
|
<div class="slug-and-status">
|
||||||
<span class="status"></span>
|
<span class="status"></span>
|
||||||
{{#if slug}}
|
{{#if repo.slug}}
|
||||||
{{#link-to "repo" this class="slug"}}{{slug}}{{/link-to}}
|
{{#link-to "repo" repo class="slug"}}{{repo.slug}}{{/link-to}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{#with lastBuildHash}}
|
{{#with repo.lastBuildHash as lastBuild}}
|
||||||
{{#if repo.slug}}
|
{{#if repo.slug}}
|
||||||
{{#link-to "build" repo id class="last_build"}}{{number}}{{/link-to}}
|
{{#link-to "build" repo lastBuild.id
|
||||||
|
class="last_build"}}{{lastBuild.number}}{{/link-to}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/with}}
|
{{/with}}
|
||||||
|
|
||||||
{{#if lastBuildHash.number }}
|
{{#if repo.lastBuildHash.number }}
|
||||||
<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"}}>{{formatDuration lastBuildDuration}}</abbr>
|
<abbr class="duration" {{bind-attr title="lastBuildStartedAt"}}>
|
||||||
|
{{formatDuration repo.lastBuildDuration}}
|
||||||
|
</abbr>
|
||||||
</p>
|
</p>
|
||||||
<p class="summary">
|
<p class="summary">
|
||||||
<span class="finished-icon"></span><span class="finished_at_label">Finished:</span>
|
<span class="finished-icon"></span><span class="finished_at_label">Finished:</span>
|
||||||
<abbr class="finished_at timeago" {{bind-attr title="lastBuildFinishedAt"}}>{{formatTime lastBuildFinishedAt}}</abbr>
|
<abbr class="finished_at timeago" {{bind-attr title="lastBuildFinishedAt"}}>
|
||||||
|
{{formatTime repo.lastBuildFinishedAt}}
|
||||||
|
</abbr>
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
|
@ -3,24 +3,22 @@
|
||||||
{{view Travis.ReposEmptyView}}
|
{{view Travis.ReposEmptyView}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if repo.isLoaded}}
|
{{#if repo.isLoaded}}
|
||||||
{{#with repo}}
|
<div id="repo-header">
|
||||||
<div id="repo-header">
|
<h3>{{#link-to "repo" repo}}{{repo.slug}}{{/link-to}}</h3>
|
||||||
<h3>{{#link-to "repo" this}}{{slug}}{{/link-to}}</h3>
|
<div class="github-icon"><a {{bind-attr href="controller.urlGithub"}}><img src="/images/icons/github.svg" width="21" height="21"/></a></div>
|
||||||
<div class="github-icon"><a {{bind-attr href="controller.urlGithub"}}><img src="/images/icons/github.svg" width="21" height="21"/></a></div>
|
<div class="status-image">
|
||||||
<div class="status-image">
|
<a href="#" id="status-image-popup" name="status-images" class="open-popup" {{action "statusImages" target="view"}}>
|
||||||
<a href="#" id="status-image-popup" name="status-images" class="open-popup" {{action "statusImages" target="view"}}>
|
<img {{bind-attr src="view.statusImageUrl"}} title="Build Status Images"/>
|
||||||
<img {{bind-attr src="view.statusImageUrl"}} title="Build Status Images"/>
|
</a>
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{view 'repo-show-tools'}}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="description">{{description}}</p>
|
{{view 'repo-show-tools'}}
|
||||||
|
</div>
|
||||||
|
|
||||||
{{view 'repo-show-tabs'}}
|
<p class="description">{{description}}</p>
|
||||||
{{view 'repo-actions'}}
|
|
||||||
{{/with}}
|
{{view 'repo-show-tabs'}}
|
||||||
|
{{view 'repo-actions'}}
|
||||||
|
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user