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}} {{/if}}
</h5> </h5>
</li> </li>
<li id="tab_caches" {{bind-attr class="view.classCaches"}}> {{#if Travis.config.caches_enabled}}
<h5> <li id="tab_caches" {{bind-attr class="view.classCaches"}}>
{{#if repo.slug}} <h5>
{{#link-to "caches" repo}} {{#if repo.slug}}
Caches {{#link-to "caches" repo}}
{{/link-to}} Caches
{{/if}} {{/link-to}}
</h5> {{/if}}
</li> </h5>
</li>
{{/if}}
<li id="tab_request" {{bind-attr class="view.classRequest"}}> <li id="tab_request" {{bind-attr class="view.classRequest"}}>
<h5> <h5>