From 51c1b4dcee676c97bddfb7c81c51cd3c853e20db Mon Sep 17 00:00:00 2001 From: Justine Arreche Date: Mon, 7 Oct 2013 17:16:54 -0400 Subject: [PATCH] Took out linkTo in list.hbs and fixed cursor to pointer on li elements for left repo list view --- assets/scripts/app/templates/repos/list.hbs | 48 ++++++++++----------- assets/styles/left/list.sass | 1 + 2 files changed, 24 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}} diff --git a/assets/styles/left/list.sass b/assets/styles/left/list.sass index 4857e07e..127368b7 100644 --- a/assets/styles/left/list.sass +++ b/assets/styles/left/list.sass @@ -11,6 +11,7 @@ padding: 15px 20px 15px 15px border-bottom: 1px solid $color-border-light background-repeat: no-repeat + cursor: pointer &:nth-child(odd), &:nth-child(odd) .indicator span