diff --git a/assets/scripts/app/templates/repos/show/tabs.hbs b/assets/scripts/app/templates/repos/show/tabs.hbs index 670aedda..8b8174b8 100644 --- a/assets/scripts/app/templates/repos/show/tabs.hbs +++ b/assets/scripts/app/templates/repos/show/tabs.hbs @@ -75,7 +75,7 @@ {{/if}} - {{#if Travis.config.caches_enabled}} + {{#if config.caches_enabled}}
  • {{#if repo.slug}} diff --git a/assets/scripts/app/templates/repos/show/tools.hbs b/assets/scripts/app/templates/repos/show/tools.hbs index ed110ae6..b6de3888 100644 --- a/assets/scripts/app/templates/repos/show/tools.hbs +++ b/assets/scripts/app/templates/repos/show/tools.hbs @@ -19,7 +19,7 @@
  • {{#link-to "requests" view.repo}}Requests{{/link-to}}
  • - {{#if Travis.config.caches_enabled}} + {{#if config.caches_enabled}}
  • {{#link-to "caches" view.repo}}Caches{{/link-to}}
  • @@ -68,7 +68,7 @@

    Integrating Code Climate's test coverage reporting with your test suite on Travis CI allows to track changes in coverage over time. If you haven't tried it out already, sign + {{bind-attr href=config.code_climate_url}}" target="_blank">sign up today to improve your code's quality. New customers get 20% off for the first three months!

    diff --git a/assets/scripts/app/templates/settings.hbs b/assets/scripts/app/templates/settings.hbs index 9c9458e4..ec0f6259 100644 --- a/assets/scripts/app/templates/settings.hbs +++ b/assets/scripts/app/templates/settings.hbs @@ -1,7 +1,7 @@ diff --git a/assets/scripts/travis.coffee b/assets/scripts/travis.coffee index 08835a6c..412db1bf 100644 --- a/assets/scripts/travis.coffee +++ b/assets/scripts/travis.coffee @@ -154,6 +154,15 @@ Travis.initializer s = document.getElementsByTagName('script')[0] s.parentNode.insertBefore(ga, s) +Travis.initializer + name: 'inject-config' + + initialize: (container, application) -> + application.register 'config:main', Travis.config, { instantiate: false } + + application.inject('controller', 'config', 'config:main') + + Travis.Router.reopen didTransition: -> @_super.apply @, arguments