Use injected 'config' object instead of global Travis.config

This commit is contained in:
Piotr Sarnacki 2014-12-30 11:19:55 +01:00
parent 15283b0294
commit f64adfbc89
7 changed files with 13 additions and 13 deletions

View File

@ -11,7 +11,7 @@
{{yield}}
</div>
{{#if Travis.config.pro}}
{{#if config.pro}}
<div id="right">
{{render "layouts/sidebar"}}
</div>

View File

@ -10,7 +10,7 @@
</div>
{{/if}}
{{#if Travis.config.pages_endpoint}}
{{#if config.pages_endpoint}}
{{view templateName="layouts/support"}}
{{/if}}

View File

@ -1,7 +1,7 @@
<div id="about" class="box">
<h4>How can we help?</h4>
<ul>
{{#if Travis.config.billing_endpoint}}
{{#if config.billing_endpoint}}
<li><a href="#" {{action displayCharm target="Travis"}}>Support Ticket</a></li>
{{/if}}
<li><a href="http://chat.travis-ci.com">Live Chat</a></li>

View File

@ -14,7 +14,7 @@
<li>
<a href="http://traviscistatus.com">Status</a>
</li>
{{#unless Travis.config.pro}}
{{#unless config.pro}}
<li class="menu community">
<p class="handle">
<a href="#">Help</a>
@ -29,23 +29,23 @@
</li>
{{/unless}}
{{#if Travis.config.pages_endpoint}}
{{#if config.pages_endpoint}}
<li>
<a href="http://traviscistatus.com">Status</a>
</li>
<li class="menu legal">
<p class="handle">
<a {{bind-attr href="Travis.config.url_legal"}}>Legal</a>
<a {{bind-attr href="config.url_legal"}}>Legal</a>
</p>
<ul>
<li>
<a {{bind-attr href="Travis.config.url_imprint"}}>Imprint</a>
<a {{bind-attr href="config.url_imprint"}}>Imprint</a>
</li>
<li>
<a {{bind-attr href="Travis.config.url_security"}}>Security</a>
<a {{bind-attr href="config.url_security"}}>Security</a>
</li>
<li>
<a {{bind-attr href="Travis.config.url_terms"}}>Terms</a>
<a {{bind-attr href="config.url_terms"}}>Terms</a>
</li>
</ul>
</li>
@ -58,7 +58,7 @@
</li>
hiding for now -->
{{#unless Travis.config.pro}}
{{#unless config.pro}}
<li class="traviscicom">
<a href="http://travis-ci.com">Travis CI for Private Repositories</a>
</li>

View File

@ -1,6 +1,6 @@
<h3>{{view.name}}</h3>
{{#if Travis.config.billing_endpoint}}
{{#if config.billing_endpoint}}
{{#if view.subscribed}}
<a class="button activated" {{bind-attr href="billingUrl"}}>
Subscription active!

View File

@ -11,7 +11,7 @@
</h5>
</li>
{{/if}}
{{#if Travis.config.billing_endpoint}}
{{#if config.billing_endpoint}}
<li id="tab_billing" class="right">
<h5>
<a {{bind-attr href="billingUrl"}}>Billing</a>

View File

@ -3,7 +3,7 @@
<h5>{{#link-to "index.my_repositories"}}My Repositories{{/link-to}}</h5>
</li>
{{#unless Travis.config.pro}}
{{#unless config.pro}}
<li id="tab_recent" {{bind-attr class="view.classRecent"}}>
<h5>{{#link-to "index.recent"}}Recent{{/link-to}}</h5>
</li>