mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Display correctly backup dates
This commit is contained in:
parent
28a0eaeb04
commit
a71b6d4a88
3 changed files with 7 additions and 3 deletions
|
@ -136,6 +136,7 @@
|
|||
data.name = c.params['archive'];
|
||||
data.system_parts = c.groupHooks(Object.keys(data['system']));
|
||||
data.items = (data['hooks']!={} || data['apps']!=[]);
|
||||
data.locale = y18n.locale
|
||||
c.view('backup/backup_info', data);
|
||||
});
|
||||
});
|
||||
|
@ -153,6 +154,7 @@
|
|||
data.archives2.unshift(info)
|
||||
});
|
||||
data.archives = data.archives2;
|
||||
data.locale = y18n.locale
|
||||
c.view('backup/backup_list', data);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<div class="panel-body">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>{{t 'id'}}</dt><dd>{{ name }}</dd>
|
||||
<dt>{{t 'created_at'}}</dt><dd>{{ created_at }}</dd>
|
||||
<dt>{{t 'created_at'}}</dt><dd>{{formatTime created_at day="numeric" month="long" year="numeric" hour="numeric" minute="numeric"}}</dd>
|
||||
<dt>{{t 'size'}}</dt><dd>{{ humanSize size}}</dd>
|
||||
<dt>{{t 'path'}}</dt><dd>{{ path }}</dd>
|
||||
</dl>
|
||||
|
|
|
@ -12,11 +12,12 @@
|
|||
|
||||
<div class="separator"></div>
|
||||
|
||||
{{#intl locales=locale}}
|
||||
<div class="list-group">
|
||||
{{#each archives}}
|
||||
<a href="#/backup/{{../storage.id}}/{{name}}" class="list-group-item slide clearfix">
|
||||
<a href="#/backup/{{../storage.id}}/{{name}}" class="list-group-item slide clearfix" title='{{formatTime created_at day="numeric" month="long" year="numeric" hour="numeric" minute="numeric"}}'>
|
||||
<span class="pull-right fa-chevron-right"></span>
|
||||
<h2 class="list-group-item-heading">{{created_at}} <small>{{name}} ({{humanSize size}})</small></h2>
|
||||
<h2 class="list-group-item-heading">{{formatRelative created_at}} <small>{{name}} ({{humanSize size}})</small></h2>
|
||||
<p class="list-group-item-text">{{path}}</p>
|
||||
</a>
|
||||
{{/each}}
|
||||
|
@ -28,6 +29,7 @@
|
|||
{{/archives}}
|
||||
|
||||
</div>
|
||||
{{/intl}}
|
||||
|
||||
<!--<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
|
|
Loading…
Add table
Reference in a new issue