Properly check for caches and ssKey on pro

This commit is contained in:
Piotr Sarnacki 2015-02-06 15:07:29 +01:00
parent 76672e76ca
commit a6b9c2b0d9
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@
<li>
{{#link-to "requests" view.repo}}Requests{{/link-to}}
</li>
{{#if config.caches_enabled}}
{{#if config.endpoints.caches}}
<li>
{{#link-to "caches" view.repo}}Caches{{/link-to}}
</li>

View File

@ -1,7 +1,8 @@
<ul class="navigation">
<li>{{#link-to "settings.index"}}General Settings{{/link-to}}</li>
<li>{{#link-to "env_vars"}}Environment Variables{{/link-to}}</li>
{{#if config.ssh_key_enabled}}
{{#if config.endpoints.sshKey}}
<li>{{#link-to "ssh_key"}}SSH Key{{/link-to}}</li>
{{/if}}
</ul>

View File

@ -46,8 +46,7 @@ module.exports = function(environment) {
ENV.endpoints = {
sshKey: true,
caches: true
}
};
}
}