Display change_url button only if feature available

depends on https://github.com/YunoHost/yunohost/pull/402
This commit is contained in:
Jimmy Monin 2018-01-08 19:00:00 +01:00
parent 45a9250b7f
commit c8c97204cb

View file

@ -48,6 +48,7 @@
</a> </a>
</div> </div>
<hr> <hr>
{{#if change_url}}
<div class="container"> <div class="container">
<p>{{t 'app_info_changeurl_desc' settings.domain}}</p> <p>{{t 'app_info_changeurl_desc' settings.domain}}</p>
<a href="#/apps/{{settings.id}}/changeurl" class="btn btn-info slide"> <a href="#/apps/{{settings.id}}/changeurl" class="btn btn-info slide">
@ -55,6 +56,7 @@
</a> </a>
</div> </div>
<hr> <hr>
{{/if}}
<div class="container"> <div class="container">
<p>{{t 'app_info_uninstall_desc'}}</p> <p>{{t 'app_info_uninstall_desc'}}</p>
<a href="#/apps/{{settings.id}}/uninstall" class="btn btn-danger slide back"> <a href="#/apps/{{settings.id}}/uninstall" class="btn btn-danger slide back">