From 63d9f7b3694235d13731635159cbabfa1e3218e9 Mon Sep 17 00:00:00 2001 From: Josh Kalderimis Date: Mon, 7 Oct 2013 23:12:35 +0200 Subject: [PATCH] remove the link stuff from repo list hbs --- assets/scripts/app/templates/repos/list.hbs | 48 ++++++++++----------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/assets/scripts/app/templates/repos/list.hbs b/assets/scripts/app/templates/repos/list.hbs index 48f54a87..378891fc 100644 --- a/assets/scripts/app/templates/repos/list.hbs +++ b/assets/scripts/app/templates/repos/list.hbs @@ -7,32 +7,30 @@
{{#if isLoaded}} {{#collection Travis.ReposListView contentBinding="this"}} - {{#linkTo "repo" this}} - {{#with view.repo}} -
- - {{#if slug}} - {{#linkTo "repo" this class="slug"}}{{slug}}{{/linkTo}} - {{/if}} -
- {{#with lastBuildHash}} - {{#if repo.slug}} - {{#linkTo "build" repo id class="last_build"}}{{number}}{{/linkTo}} - {{/if}} - {{/with}} - -

- {{t repositories.duration}}: - {{formatDuration lastBuildDuration}} -

-

- {{t repositories.finished_at}}: - {{formatTime lastBuildFinishedAt}} -

- -
+ {{#with view.repo}} +
+ + {{#if slug}} + {{#linkTo "repo" this class="slug"}}{{slug}}{{/linkTo}} + {{/if}} +
+ {{#with lastBuildHash}} + {{#if repo.slug}} + {{#linkTo "build" repo id class="last_build"}}{{number}}{{/linkTo}} + {{/if}} {{/with}} - {{/linkTo}} + +

+ {{t repositories.duration}}: + {{formatDuration lastBuildDuration}} +

+

+ {{t repositories.finished_at}}: + {{formatTime lastBuildFinishedAt}} +

+ +
+ {{/with}} {{else}}

{{noReposMessage}}

{{/collection}}