{t.title} ({sessions.length})
{t.subtitle}
{#if error}
{error}
{/if} {#if loading && sessions.length === 0}
{:else if sessions.length === 0}
{t.noSessions}
{:else}
{#each sessions as session (session.id)} {@const current = isCurrent(session)} {@const deviceType = getDeviceType(session.userAgent)}
{#if deviceType === 'mobile'}
{:else if deviceType === 'tablet'}
{:else}
{/if}
{getSessionLabel(session)}
{#if current}
{t.current}
{/if}
{#if session.ipAddress}
{session.ipAddress}
{/if} {#if session.lastActivityAt}
{t.lastActivity}: {formatRelativeTime(session.lastActivityAt)}
{/if}
{#if !current}
handleRevoke(session.id)} disabled={revoking === session.id || revokingAll} > {#if revoking === session.id}
{:else} {t.revoke} {/if}
{/if}
{/each}
{#if otherSessionCount > 0}
{#if revokingAll}
{:else} {t.revokeAll} {/if}
{/if} {/if}