2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.showBackupStats}}
|
2018-12-14 17:14:46 -05:00
|
|
|
<div class="backups">
|
|
|
|
<h3 class="storage-stats-title">
|
2020-03-07 06:58:48 -05:00
|
|
|
<a href={{get-url "/admin/backups"}}>{{d-icon "archive"}}
|
|
|
|
{{i18n "admin.dashboard.backups"}}</a>
|
2018-12-14 17:14:46 -05:00
|
|
|
</h3>
|
|
|
|
<p>
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.backupStats.free_bytes}}
|
|
|
|
{{i18n
|
|
|
|
"admin.dashboard.space_used_and_free"
|
|
|
|
usedSize=this.usedBackupSpace
|
|
|
|
freeSize=this.freeBackupSpace
|
|
|
|
}}
|
2018-12-14 17:14:46 -05:00
|
|
|
{{else}}
|
2022-07-05 13:41:31 -04:00
|
|
|
{{i18n "admin.dashboard.space_used" usedSize=this.usedBackupSpace}}
|
2018-12-14 17:14:46 -05:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<br />
|
2022-07-05 13:41:31 -04:00
|
|
|
{{i18n
|
|
|
|
"admin.dashboard.backup_count"
|
|
|
|
count=this.backupStats.count
|
|
|
|
location=this.backupLocationName
|
|
|
|
}}
|
2018-12-14 17:14:46 -05:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.backupStats.last_backup_taken_at}}
|
2018-12-14 17:14:46 -05:00
|
|
|
<br />
|
2022-07-05 13:41:31 -04:00
|
|
|
{{html-safe
|
|
|
|
(i18n
|
|
|
|
"admin.dashboard.lastest_backup"
|
|
|
|
date=(format-date
|
|
|
|
this.backupStats.last_backup_taken_at leaveAgo="true"
|
2022-12-28 07:28:11 -05:00
|
|
|
)
|
|
|
|
)
|
2022-07-05 13:41:31 -04:00
|
|
|
}}
|
2018-12-14 17:14:46 -05:00
|
|
|
{{/if}}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="uploads">
|
|
|
|
<h3 class="storage-stats-title">{{d-icon "upload"}}
|
|
|
|
{{i18n "admin.dashboard.uploads"}}</h3>
|
|
|
|
<p>
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.uploadStats.free_bytes}}
|
|
|
|
{{i18n
|
|
|
|
"admin.dashboard.space_used_and_free"
|
|
|
|
usedSize=this.usedUploadSpace
|
|
|
|
freeSize=this.freeUploadSpace
|
|
|
|
}}
|
2018-12-14 17:14:46 -05:00
|
|
|
{{else}}
|
2022-07-05 13:41:31 -04:00
|
|
|
{{i18n "admin.dashboard.space_used" usedSize=this.usedUploadSpace}}
|
2018-12-14 17:14:46 -05:00
|
|
|
{{/if}}
|
|
|
|
</p>
|
|
|
|
</div>
|