diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/backups/+page.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/backups/+page.svelte index c55156484..316deda77 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/backups/+page.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/backups/+page.svelte @@ -1,5 +1,5 @@ - - - {#each policies.policies as policy, index} - - - - - {policy.name} - - { - showDropdown[index] = !showDropdown[index]; - }}> - - - - - { - showDelete = true; - selectedPolicy = policy; - showDropdown[index] = false; - }}> - Delete - - - - - - - {getPolicyDescription(policy.schedule)} - ● - {formatRetentionMessage(policy.retention)} - - - - + + + + {#each policies.policies as policy, index} + - - Previous + class="policy-card-item-padding u-flex-vertical u-gap-10" + class:u-padding-block-start-10={index !== 0} + class:u-sep-block-end={index !== policies.total - 1} + style:margin-block={index !== 0 ? '6px' : ''}> + + + {policy.name} + + { + showDropdown[index] = !showDropdown[index]; + }}> + + - - - ● - + + { + showDelete = true; + selectedPolicy = policy; + showDropdown[index] = false; + }}> + Delete + + + + - {#if lastBackupDates[policy.$id]} - {toLocaleDateTime(lastBackupDates[policy.$id])} - {:else} - No backups yet - {/if} + + {getPolicyDescription(policy.schedule)} + ● + {formatRetentionMessage(policy.retention)} - + + + + Previous - - Next - - {toLocaleDateTime( - parseExpression(policy.schedule, { - utc: !isHourlySchedule(policy.schedule) - }) - .next() - .toString() - )} + + + ● + + + {#if lastBackupDates[policy.$id]} + {toLocaleDateTime(lastBackupDates[policy.$id])} + {:else} + No backups yet + {/if} + + + + + + + Next + + {toLocaleDateTime( + parseExpression(policy.schedule, { + utc: !isHourlySchedule(policy.schedule) + }) + .next() + .toString() + )} + - - {:else} - (showCreatePolicy = true)}> - - {#if $app.themeInUse === 'dark'} - - {:else} - - {/if} - - - - - Ensure your data stays safe + {:else} + (showCreatePolicy = true)}> + + {#if $app.themeInUse === 'dark'} + + {:else} + + {/if} - - Create a backup policy to automate regular and secure data protection. - - - - (showCreatePolicy = true)}> - - Create Policy - - - - {/each} - - + + + + Ensure your data stays safe + + + Create a backup policy to automate regular and secure data protection. + + + + (showCreatePolicy = true)}> + + Create Policy + + + + {/each} + + + + + Database backups are free until November 2024. Starting then, a $20.00 fee will apply + per backup policy. + +
- Create a backup policy to automate regular and secure data protection. -
+ Create a backup policy to automate regular and secure data protection. +