{#if link.title}
{link.title}
{:else}
Untitled Link
{/if} {#if !link.is_active}
Inactive
{/if}
{#if link.expand?.folder}
{link.expand.folder.icon} {link.expand.folder.display_name}
{/if} {#if link.expand?.['link_tags(link_id)'] && link.expand['link_tags(link_id)'].length > 0}
{#each link.expand['link_tags(link_id)'] as linkTag} {#if linkTag.expand?.tag_id}
{/if} {/each}
{/if}
{#if dropdownOpen}
📊 Analytics
{link.is_active ? '⏸️ Deactivate' : '▶️ Activate'}
{ return async ({ update, result }) => { if (confirm('Möchtest du diesen Link wirklich löschen?')) { toggleDropdown(); await update(); if (result.type === 'success') { trackEvent(EVENTS.LINK_DELETED, { short_code: link.short_code, }); toastMessages.linkDeleted(); } } }; }} >
🗑️ Delete
{/if}
Short URL:
trackLinkClick({ shortCode: link.short_code, username: username || 'direct', hasPassword: !!link.password, isExpiring: !!link.expires_at, })} > {formatUrl(link.short_code)}
→ {link.original_url}
{#if link.description}
{link.description}
{/if}
Clicks: {link.clicks || 0}
{#if link.expires_at}
Expires: {new Date(link.expires_at).toLocaleDateString()}
{/if} {#if link.max_clicks}
Max: {link.max_clicks}
{/if} {#if link.password}
🔒
{/if}
copyToClipboard(formatUrl(link.short_code), link.id, link.short_code)} class="rounded-lg bg-theme-primary px-3 py-1 text-sm font-medium text-white transition-colors hover:bg-theme-primary-hover" > {copiedStates[link.id] ? '✓ Copied' : '📋 Copy'}