mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Multi instance settings is not a real boolean.
This commit is contained in:
parent
038643392a
commit
7665df49fc
3 changed files with 8 additions and 2 deletions
|
@ -747,6 +747,9 @@ app = Sammy('#main', function (sam) {
|
|||
data.manifest.description['en']
|
||||
;
|
||||
|
||||
// Multi Instance settings
|
||||
data.manifest.multi_instance = (data.manifest.multi_instance == 'true') ? y18n.t('yes') : y18n.t('no');
|
||||
|
||||
// Installation date
|
||||
var d = new Date(data.settings.install_time * 1000);
|
||||
data.install_time = d.getDate() + '/' + (d.getMonth()+1) + '/' + d.getFullYear();
|
||||
|
@ -811,6 +814,9 @@ app = Sammy('#main', function (sam) {
|
|||
appData.manifest.description['en']
|
||||
;
|
||||
|
||||
// Multi Instance settings
|
||||
appData.manifest.multi_instance = (appData.manifest.multi_instance == 'true') ? y18n.t('yes') : y18n.t('no');
|
||||
|
||||
c.view('app/app_install', appData);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<dt>{{t 'description'}}</dt>
|
||||
<dd>{{description}}</dd>
|
||||
<dt>{{t 'multi_instance'}}</dt>
|
||||
<dd>{{#if manifest.multi_instance}}{{t 'yes'}}{{else}}{{t 'no'}}{{/if}}</dd>
|
||||
<dd>{{manifest.multi_instance}}</dd>
|
||||
<dt>{{t 'install_time'}}</dt>
|
||||
<dd>{{install_time}}</dd>
|
||||
<dt>{{t 'url'}}</dt>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<dt>{{t 'description'}}</dt>
|
||||
<dd>{{description}}</dd>
|
||||
<dt>{{t 'multi_instance'}}</dt>
|
||||
<dd>{{#if manifest.multi_instance}}{{t 'yes'}}{{else}}{{t 'no'}}{{/if}}</dd>
|
||||
<dd>{{manifest.multi_instance}}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue