diff --git a/app/routes/home-pro.js b/app/routes/home-pro.js index 0f305d73..3444fd40 100644 --- a/app/routes/home-pro.js +++ b/app/routes/home-pro.js @@ -1,4 +1,5 @@ import TravisRoute from 'travis/routes/basic'; +import config from 'travis/config/environment'; export default TravisRoute.extend({ needsAuth: false diff --git a/app/templates/account.hbs b/app/templates/account.hbs index 19bdae4a..b1f83d6c 100644 --- a/app/templates/account.hbs +++ b/app/templates/account.hbs @@ -1,26 +1,19 @@ {{#if allHooks.isLoaded}}
- - {{#if config.billingEndpoint}} -
- {{#if subscribeButtonInfo.subscribed}} - - Subscription active! - - {{else}} - {{#if subscribeButtonInfo.education}} - - Educational account! - - {{else}} - - Sign up this account! - - {{/if}} + {{#if config.billingEndpoint}} +
+ {{#if subscribeButtonInfo.subscribed}} + Subscription active! + {{else}} + {{#if subscribeButtonInfo.education}} + Educational account! + {{else}} + Sign up this account! + {{/if}} + {{/if}} +
{{/if}} -
- {{/if}}

{{accountName}}

@@ -29,15 +22,17 @@ {{sync-button user=auth.currentUser}} {{#if user.isSyncing}} - {{#if config.pro}} -

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

+ {{#unless config.enterprise}} + {{#if config.pro}} +

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

{{else}} -

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

- {{/if}} +

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

+ {{/if}} + {{/unless}} {{/if}} -
+
{{!-- --}}
    diff --git a/app/templates/components/log-content.hbs b/app/templates/components/log-content.hbs index d993f6b5..8c6b578d 100644 --- a/app/templates/components/log-content.hbs +++ b/app/templates/components/log-content.hbs @@ -2,27 +2,29 @@
    - {{#if auth.signedIn}} - {{#if job.isLegacyInfrastructure}} - {{#if job.isFinished}} -

    - This job ran on our legacy infrastructure. Please read our docs on how to upgrade.

    - {{else}} -

    - This job is running on our legacy infrastructure. Please read our docs on how to upgrade.

    + {{#unless config.enterprise}} + {{#if auth.signedIn}} + {{#if job.isLegacyInfrastructure}} + {{#if job.isFinished}} +

    + This job ran on our legacy infrastructure. Please read our docs on how to upgrade.

    + {{else}} +

    + This job is running on our legacy infrastructure. Please read our docs on how to upgrade.

    + {{/if}} {{/if}} - {{/if}} - {{#if job.displayGceNotice}} - {{#if job.isFinished}} -

    - This job ran on our new platform for Precise builds. Please read our blog post for more information.

    - {{else}} -

    - This job is running on our new platform for Legacy Precise builds. Please read our blog post for more information.

    + {{#if job.displayGceNotice}} + {{#if job.isFinished}} +

    + This job ran on our new platform for Precise builds. Please read our blog post for more information.

    + {{else}} +

    + This job is running on our new platform for Legacy Precise builds. Please read our blog post for more information.

    + {{/if}} {{/if}} {{/if}} - {{/if}} + {{/unless}} {{#if job.notStarted}}
    Hang tight, the log cannot be shown until the build has started.
    diff --git a/app/templates/footer.hbs b/app/templates/footer.hbs index b1dfb2f2..47ac3f4f 100644 --- a/app/templates/footer.hbs +++ b/app/templates/footer.hbs @@ -3,32 +3,40 @@ - + + {{#unless config.enterprise}} + + {{/unless}} - {{#if config.pro}} + {{#unless config.enterprise}} + {{#if config.pro}} + + {{/if}} + - {{/if}} - + {{/unless}} diff --git a/app/templates/top.hbs b/app/templates/top.hbs index c5df2481..2649139d 100644 --- a/app/templates/top.hbs +++ b/app/templates/top.hbs @@ -5,32 +5,36 @@ -{{#if auth.signedIn}} +{{#unless config.enterprise}} + {{#if auth.signedIn}} - {{broadcast-tower toggleBroadcasts="toggleBroadcasts" status=broadcasts.lastBroadcastStatus}} + {{broadcast-tower toggleBroadcasts="toggleBroadcasts" status=broadcasts.lastBroadcastStatus}} -
      - {{#each broadcasts.content as |broadcast|}} -
    • {{{broadcast.message}}}

    • - {{else}} -
    • There are no broadcasts transmitted

    • - {{/each}} -
    -{{/if}} +
      + {{#each broadcasts.content as |broadcast|}} +
    • {{{broadcast.message}}}

    • + {{else}} +
    • There are no broadcasts transmitted

    • + {{/each}} +
    + {{/if}} +{{/unless}}