diff --git a/assets/scripts/app/templates/repos/list.hbs b/assets/scripts/app/templates/repos/list.hbs index 961db9b6..574414ba 100644 --- a/assets/scripts/app/templates/repos/list.hbs +++ b/assets/scripts/app/templates/repos/list.hbs @@ -7,27 +7,32 @@
{{#if isLoaded}} {{#collection 'repos-list' content=this}} - {{#with view.repo}} + {{#with view.repo as repo}}
- {{#if slug}} - {{#link-to "repo" this class="slug"}}{{slug}}{{/link-to}} + {{#if repo.slug}} + {{#link-to "repo" repo class="slug"}}{{repo.slug}}{{/link-to}} {{/if}}
- {{#with lastBuildHash}} + {{#with repo.lastBuildHash as lastBuild}} {{#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}} {{/with}} - {{#if lastBuildHash.number }} + {{#if repo.lastBuildHash.number }}

Duration: - {{formatDuration lastBuildDuration}} + + {{formatDuration repo.lastBuildDuration}} +

Finished: - {{formatTime lastBuildFinishedAt}} + + {{formatTime repo.lastBuildFinishedAt}} +

{{/if}} diff --git a/assets/scripts/app/templates/repos/show.hbs b/assets/scripts/app/templates/repos/show.hbs index b9de7359..5b359522 100644 --- a/assets/scripts/app/templates/repos/show.hbs +++ b/assets/scripts/app/templates/repos/show.hbs @@ -3,24 +3,22 @@ {{view Travis.ReposEmptyView}} {{else}} {{#if repo.isLoaded}} - {{#with repo}} -
-

{{#link-to "repo" this}}{{slug}}{{/link-to}}

-
-
- - - -
- - {{view 'repo-show-tools'}} +
+

{{#link-to "repo" repo}}{{repo.slug}}{{/link-to}}

+
+ -

{{description}}

+ {{view 'repo-show-tools'}} +
- {{view 'repo-show-tabs'}} - {{view 'repo-actions'}} - {{/with}} +

{{description}}

+ + {{view 'repo-show-tabs'}} + {{view 'repo-actions'}}
{{outlet}}