Don't display link to caches if caches are disabled

This commit is contained in:
Piotr Sarnacki 2014-08-12 16:06:06 +02:00
parent eb8b5092e6
commit 1f2b8a84ff

View File

@ -66,15 +66,17 @@
{{/if}}
</h5>
</li>
<li id="tab_caches" {{bind-attr class="view.classCaches"}}>
<h5>
{{#if repo.slug}}
{{#link-to "caches" repo}}
Caches
{{/link-to}}
{{/if}}
</h5>
</li>
{{#if Travis.config.caches_enabled}}
<li id="tab_caches" {{bind-attr class="view.classCaches"}}>
<h5>
{{#if repo.slug}}
{{#link-to "caches" repo}}
Caches
{{/link-to}}
{{/if}}
</h5>
</li>
{{/if}}
<li id="tab_request" {{bind-attr class="view.classRequest"}}>
<h5>