[enh] Add install_date on application info.

This commit is contained in:
opi 2014-06-01 19:56:56 +02:00
parent 6a91ddcf33
commit 62f74cb148
4 changed files with 7 additions and 0 deletions

View file

@ -718,6 +718,9 @@ app = Sammy('#main', function (sam) {
data.manifest.description['en']
;
// Installation date
var d = new Date(data.settings.install_time * 1000);
data.install_time = d.getDate() + '/' + (d.getMonth()+1) + '/' + d.getFullYear();
c.view('app/app_info', data);
});

View file

@ -106,6 +106,7 @@
"multi_instance" : "Multi instance",
"manage_domains" : "Manage domains",
"manage_users" : "Manage users",
"install_time" : "Install time",
"backup" : "Backup",
"backup_warning_title" : "The backup system is not implemented yet.",

View file

@ -106,6 +106,7 @@
"multi_instance" : "Multi instance",
"manage_domains" : "Gerer les domaines",
"manage_users" : "Gerer les utilisateurs",
"install_time" : "Date d'installation",
"backup" : "Sauvegarde",

View file

@ -22,6 +22,8 @@
<dd>{{description}}</dd>
<dt>{{t 'multi_instance'}}</dt>
<dd>{{#if manifest.multi_instance}}{{t 'yes'}}{{else}}{{t 'no'}}{{/if}}</dd>
<dt>{{t 'install_time'}}</dt>
<dd>{{install_time}}</dd>
<dt>{{t 'url'}}</dt>
<dd><a href="https://{{settings.domain}}{{settings.path}}" target="_blank">https://{{settings.domain}}{{settings.path}}</a></dd>
</dl>