From 88b128fc3ece71dc9a5c9bd4632b7b27715633b3 Mon Sep 17 00:00:00 2001 From: Lisa Passing Date: Tue, 24 Mar 2015 12:46:09 +0100 Subject: [PATCH] trying to make sense to templates --- app/styles/app/layouts/profile.sass | 2 +- app/templates/account.hbs | 101 +++++++++++++++++----------- app/templates/profile/show.hbs | 52 +------------- 3 files changed, 67 insertions(+), 88 deletions(-) diff --git a/app/styles/app/layouts/profile.sass b/app/styles/app/layouts/profile.sass index 8066b098..8cbac5d2 100644 --- a/app/styles/app/layouts/profile.sass +++ b/app/styles/app/layouts/profile.sass @@ -137,7 +137,7 @@ p.profile-user-last color: #484849 &:hover background-color: #ededec - .is-active &:hover + .active &:hover background-color: #e2eee2 @media #{$medium-up} width: grid-calc(17, 24) diff --git a/app/templates/account.hbs b/app/templates/account.hbs index 54c9119e..9bc68795 100644 --- a/app/templates/account.hbs +++ b/app/templates/account.hbs @@ -1,19 +1,40 @@ -

- {{#if config.pro}} - We're only showing your private repositories below. - You can find your public projects on travis-ci.org. - {{else}} - We're only showing your public repositories below. - You can find your private projects on travis-ci.com. - {{/if}} -

- -

- Enable your projects below by flicking the switch, add a .travis.yml to your project, and push a new commit to - GitHub. -

- {{#if allHooks.isLoaded}} +
+ +

{{view.name}}

+ {{!-- {{sync-button user=auth.currentUser}} --}} + + {{#if config.pro}} +

We're only showing you private repositories. You can find your public projects on travis-ci.org.

+ {{else}} +

We're only showing you public repositories. You can find your private projects on travis-ci.com.

+ {{/if}} +
+
+ +
    +
  1. +
    + +
    Flick the repository switch on
    +
    +
  2. +
  3. +
    + +
    Add .travis.yml file to your repository
    +
    +
  4. +
  5. +
    + +
    Trigger your first build with a git push
    +
    +
  6. +
+
+ + {{#if user.isSyncing}}

Please wait while we synchronize your data from GitHub @@ -26,30 +47,34 @@

- - {{#if hooksWithoutAdmin.length}} + + {{!-- {{#if hooksWithoutAdmin.length}}

Repositories without admin access

@@ -66,7 +91,7 @@ {{/each}}
- {{/if}} + {{/if}} --}} {{/if}} {{else}}

diff --git a/app/templates/profile/show.hbs b/app/templates/profile/show.hbs index 85933281..fdb71e78 100644 --- a/app/templates/profile/show.hbs +++ b/app/templates/profile/show.hbs @@ -1,50 +1,4 @@

-
-

{{view.name}}

- {{sync-button user=auth.currentUser}} -

We're only showing you public repositories. You can find your private projects on travis-ci.com.

-
-
- -
    -
  1. -
    - -
    Flick the repository switch on
    -
    -
  2. -
  3. -
    - -
    Add .travis.yml file to your repository
    -
    -
  4. -
  5. -
    - -
    Trigger your first build with a git push
    -
    -
  6. -
-
-
- -
{{#if config.billingEndpoint}} {{#if view.subscribed}} @@ -64,9 +18,9 @@ {{/if}} {{/if}} -{{!-- {{view 'profile-tabs'}} --}} -{{!-- + {{!-- {{view 'profile-tabs'}} --}} +
{{outlet}} -
--}} +