{#if selectedView === 'trash'} Your trash {:else} {selectedTag === 'all' ? 'Filter by tag' : `#${selectedTag}`} {#if tagOptions.length > 0} {tagOptions.length} {/if} {#if tagsLoading} {:else} {/if}
{#if tagSearch} {/if}
{#if filteredTagOptions.length === 0}

{tagOptions.length === 0 ? 'No tags are in use yet.' : 'No tags match your search.'}

{:else} {#each filteredTagOptions as option (option.tag)} {/each} {/if}
{#if canModerate} {#snippet trigger(props)} {/snippet} {/if} {/if}
{ if (!value) return; handleSortChange(parseWorkshopSort(value)); }} > {SORT_OPTIONS.find((option) => option.id === selectedSort)?.label ?? 'Best match'} {#each SORT_OPTIONS as option (option.id)} {/each}
{#snippet trigger(props)} {/snippet}
{#if canModerate} {#snippet trigger(props)} {/snippet} {/if} {#if $currentUser} {#snippet trigger(props)} {/snippet} {/if} {#snippet trigger(props)} {/snippet}
{#if error && themes.length > 0}
Showing the last loaded results. {error}
{/if} {#if loading && themes.length === 0}

Connecting to EZPPFarm Community Workshop...

{:else if error && themes.length === 0}

Workshop unavailable

Check your connection and try again. If this keeps happening, the workshop may be under maintenance.

{error}

{:else if themes.length === 0}

{#if selectedView === 'trash'} Your trash is empty. Themes you delete will appear here. {:else if searchQuery.trim() || selectedTag !== 'all'} No themes match these filters. {:else} No community themes have been published yet. {/if}

{#if selectedView === 'workshop' && (searchQuery.trim() || selectedTag !== 'all')} {/if}
{:else}
{#each themes as theme, index (theme.id)} {@const localTheme = localThemeMap.get(theme.id.toLowerCase()) || localThemeMap.get(theme.name.toLowerCase())} {@const isInstalled = Boolean(localTheme)} {@const isActive = Boolean( localTheme && $active_custom_theme?.folder_name === localTheme.folder_name )} {@const isDownloading = activeThemeDownloads.has(theme.id)} {@const downloadPercent = themeDownloadProgress.get(theme.id) ?? 0} {@const isDeleted = Boolean(theme.deletedAt)} {@const hasUpdate = Boolean( !isDeleted && localTheme && localTheme.version !== theme.version )} {@const owned = isOwnedByCurrentUser(theme)} {@const isLegacy = theme.apiVersion === '1.0' || Boolean(theme.tags?.includes('legacy'))} {@const canReport = Boolean($currentUser) && !owned && !theme.isHidden && !theme.isQuarantined} {@const canFork = canReport && !isLegacy && theme.allowForking !== false} {@const showOverflowMenu = !isDeleted && (owned || canModerate || canReport)}
openThemeInfo(theme)} onkeydown={(event) => { if (event.key !== 'Enter' && event.key !== ' ') return; event.preventDefault(); openThemeInfo(theme); }} >
View details
{theme.name} { // Fallback to default theme preview if server preview not loaded (e.currentTarget as HTMLImageElement).src = DefaultThemePreview; }} />
{#if theme.apiVersion === '1.0' || theme.tags?.includes('legacy')} {#snippet trigger(props)} Legacy v1 {/snippet} {:else if theme.hasExecutableCode} {#snippet trigger(props)} Svelte Code {/snippet} {/if} {#if theme.reviewStatus === 'pending'} {#snippet trigger(props)} In review {/snippet} {:else if theme.reviewStatus === 'rejected'} {#snippet trigger(props)} Rejected {/snippet} {/if} {#if theme.isHidden} {#snippet trigger(props)} Hidden {/snippet} {/if} {#if theme.isQuarantined} {#snippet trigger(props)} Taken down {/snippet} {/if} {#if isDeleted} {#snippet trigger(props)} Trash {/snippet} {/if}
v{theme.version}
{theme.author.name} { (e.currentTarget as HTMLElement).style.display = 'none'; }} /> {theme.author.name} {#if theme.author.role === 'owner'} {#snippet trigger(props)} Owner {/snippet} {:else if theme.author.role === 'moderator'} {#snippet trigger(props)} Moderator {/snippet} {:else if theme.author.role === 'supporter' || (!theme.author.role && theme.author.donor)} {#snippet trigger(props)} Supporter {/snippet} {/if}
{formatBytes(theme.fileSize)}
{#if isDeleted} Deleted {:else} {#snippet trigger(props)} {/snippet} {/if}
{#if theme.description}

{theme.description}

{/if} {#if theme.tags && theme.tags.length > 0}
{#each theme.tags.slice(0, 3) as tag (tag)} {/each}
{/if} {#if owned && theme.reviewStatus !== 'approved'}
{#if theme.reviewStatus === 'pending'}

Awaiting staff review. Submitted {formatModerationDate(theme.createdAt)}.

{:else}

Not approved{theme.reviewedAt ? ` · ${formatModerationDate(theme.reviewedAt)}` : ''}.

{#if theme.reviewNote}

{theme.reviewNote}

{/if} {/if}
{/if} {#if theme.isHidden || theme.isQuarantined}
{#if theme.isHidden}

Hidden by {theme.hiddenByName ?? 'staff'} {#if theme.hiddenAt} · {formatModerationDate(theme.hiddenAt)} {/if}

{#if theme.hiddenReason}

{theme.hiddenReason}

{/if} {/if} {#if theme.isQuarantined}

Taken down by {theme.quarantinedByName ?? 'staff'} {#if theme.quarantinedAt} · {formatModerationDate(theme.quarantinedAt)} {/if}

{#if theme.quarantineReason}

{theme.quarantineReason}

{/if} {/if}
{/if} {#if theme.forkedFrom} {@const forkedFrom = theme.forkedFrom} {#snippet trigger(props)} {/snippet} {/if}
{theme.downloadCount} {#if isInstalled && !isActive} Installed {/if}
{#if isDownloading}
{downloadPercent}%
{:else if deletingId === theme.id} Deleting {:else if forkingId === theme.id} Forking {:else if moderatingId === theme.id} Updating {:else if isDeleted} {#if owned} {:else} Deleted {/if} {:else} {#if owned && !isLegacy && isInstalled} {:else if isActive} In use {:else if isInstalled && hasUpdate} {:else if isInstalled} {:else} {/if} {#if showOverflowMenu} {#snippet child({ props })} {/snippet} {#if owned} openTagEditor(theme)} > Edit tags {#if !isLegacy && isInstalled && hasUpdate} handleRefreshOwnedTheme(theme)} > Refresh installed copy {/if} {:else if canReport || canFork} {#if canReport} openReportDialog(theme)} > Report theme {/if} {#if canFork} handleForkTheme(theme)} > Fork theme {/if} {/if} {#if canModerate} {#if owned || canReport} {/if} {#if !isLegacy} requestVisibilityChange(theme)} > {#if theme.isHidden} Restore visibility {:else} Hide from workshop {/if} {/if} handleToggleQuarantine(theme)} disabled={quarantineId === theme.id} > {#if quarantineId === theme.id} Updating... {:else} {theme.isQuarantined ? 'Lift takedown' : 'Take down theme'} {/if} void openThemeHistory(theme.id, theme.name)} > Moderation history {/if} {#if owned} requestDeleteTheme(theme)} > Move to trash {/if} {/if} {/if}
{/each}
{#if page < totalPages}
{/if} {/if}
Moderation Themes awaiting review, open reports and recent staff activity.
{#snippet trigger(props)} {/snippet} {#snippet trigger(props)} {/snippet} {#snippet trigger(props)} {/snippet}
{#if moderationError}
{moderationError}
{/if}
{ if (!value) return; moderationStatus = value as ThemeReportStatus | 'all'; handleModerationFilterChange(); }} > {REPORT_STATUS_OPTIONS.find((option) => option.id === moderationStatus)?.label ?? 'Open reports'} {#each REPORT_STATUS_OPTIONS as option (option.id)} {/each} { if (!value) return; moderationCategory = value as ThemeReportCategory | 'all'; handleModerationFilterChange(); }} > {REPORT_CATEGORIES.find((category) => category.id === moderationCategory)?.label ?? 'All categories'} {#each REPORT_CATEGORIES as category (category.id)} {/each} { if (event.key === 'Enter') handleModerationFilterChange(); }} /> { if (event.key === 'Enter') handleModerationFilterChange(); }} /> { if (moderationFrom === value) return; moderationFrom = value; handleModerationFilterChange(); }} /> { if (moderationTo === value) return; moderationTo = value; handleModerationFilterChange(); }} />
{#if selectedReportIds.length > 0}
{selectedReportIds.length} report(s) selected
{/if} {#if moderationLoading && moderationReports.length === 0 && moderationEvents.length === 0}
Loading moderation data...
{:else}

Review queue {reviewTotal}

{#if reviewQueue.length === 0}

No themes are waiting for review.

{:else}
{#each reviewQueue as theme (theme.id)}
{ (e.currentTarget as HTMLImageElement).src = DefaultThemePreview; }} />

{theme.name}

by {theme.author.name} · v{theme.version} · {formatBytes(theme.fileSize)}

Submitted {formatModerationDate(theme.createdAt)}

{#if theme.description}

{theme.description}

{/if} {#if theme.tags.length > 0}
{#each theme.tags.slice(0, 5) as tag (tag)} #{tag} {/each}
{/if}
{/each}
{#if reviewPage < reviewTotalPages}
{/if} {/if}

Reports {moderationTotal}

{#if selectableReports.length > 0} {/if} {#if moderationReports.length === 0}

No reports match these filters.

{:else}
{#each moderationReports as report (report.id)}
{#if report.status === 'open' && !report.themeDeleted} toggleReportSelection(report.id)} aria-label={`Select report for ${report.themeName}`} /> {/if}

{report.themeName}

{reportCategoryLabel(report.category)} {#if report.themeHidden} Hidden {/if} {#if report.themeQuarantined} Taken down {/if} {#if report.themeDeleted} Trash {/if}

by {report.themeAuthorName} · reported by {report.reporterName}

{formatModerationDate(report.createdAt)}

{report.reason}

{#if report.status !== 'open'}

{report.status === 'resolved' ? 'Resolved' : 'Dismissed'} by {report.resolvedByName ?? 'Unknown'} {#if report.resolvedAt} · {formatModerationDate(report.resolvedAt)} {/if}

{#if report.resolutionNote}

Note: {report.resolutionNote}

{/if} {/if}
{#if report.status === 'open'} {/if}
{/each}
{#if moderationTotalPages > 1}
Page {moderationPage} of {moderationTotalPages}
{/if} {/if}

Recent activity

{ if (!value) return; moderationEventAction = value; handleAuditFilterChange(); }} > {AUDIT_ACTIONS.find((action) => action.id === moderationEventAction)?.label ?? 'All actions'} {#each AUDIT_ACTIONS as action (action.id)} {/each} { if (event.key === 'Enter') handleAuditFilterChange(); }} />
{#if moderationEvents.length === 0}

No moderation events yet.

{:else}
{#each moderationEvents as event (event.id)}

{event.actorName} · {moderationActionLabel(event.action)} · {event.themeName}

{formatModerationDate(event.createdAt)}
{#if event.reason} {#snippet trigger(props)}

{event.reason}

{/snippet}
{/if}
{/each}
{#if moderationEventsPage < moderationEventsTotalPages}
{/if} {/if}
{/if}
{#if announcementOpen}
{/if} {#if sourceDialogOpen}
{/if} {#if tagEditorTarget}
{/if} {#if quarantineTarget}
{/if} {#if reportTarget}
{/if} {#if historyOpen && historyTarget}
{/if} { if (!open) closeThemeInfo(); }} > {#if infoTheme} {@const themeInfo = infoTheme} {@const infoLocal = localThemeMap.get(themeInfo.id.toLowerCase()) ?? localThemeMap.get(themeInfo.name.toLowerCase())} {@const infoInstalled = Boolean(infoLocal)} {@const infoActive = Boolean( infoLocal && $active_custom_theme?.folder_name === infoLocal.folder_name )} {@const infoDownloading = activeThemeDownloads.has(themeInfo.id)} {@const infoPercent = themeDownloadProgress.get(themeInfo.id) ?? 0} {@const infoOwned = isOwnedByCurrentUser(themeInfo)} {@const infoLegacy = themeInfo.apiVersion === '1.0' || Boolean(themeInfo.tags?.includes('legacy'))} {@const infoHasUpdate = Boolean( !themeInfo.deletedAt && infoLocal && infoLocal.version !== themeInfo.version )} {@const infoUnavailable = themeInfo.isHidden || themeInfo.isQuarantined}
{themeInfo.name} by {themeInfo.author.name} · v{themeInfo.version} · {themeInfo.apiVersion === '1.0' ? 'Legacy v1' : `API ${themeInfo.apiVersion}`} {#if infoActive} · In use {/if}
{`${themeInfo.name} { (e.currentTarget as HTMLImageElement).src = DefaultThemePreview; }} />
{themeInfo.downloadCount} downloads {themeInfo.likeCount} likes {formatBytes(themeInfo.fileSize)} Updated {formatModerationDate(themeInfo.updatedAt)}

{themeInfo.description || 'No description provided.'}

Tags

{#if themeInfo.tags.length > 0}
{#each themeInfo.tags as tag (tag)} {/each}
{:else}

No tags.

{/if}
{#if themeInfo.reviewStatus !== 'approved'}
{#if themeInfo.reviewStatus === 'pending'}

Awaiting staff review.

{:else}

Not approved.

{#if themeInfo.reviewNote}

{themeInfo.reviewNote}

{/if} {/if}
{/if} {#if infoUnavailable}
{#if themeInfo.isQuarantined}

Taken down: {themeInfo.quarantineReason ?? 'No reason provided.'}

{/if} {#if themeInfo.isHidden}

Hidden: {themeInfo.hiddenReason ?? 'No reason provided.'}

{/if}
{/if} {#if themeInfo.forkedFrom} {@const forkedFrom = themeInfo.forkedFrom} {/if}
{#if themeInfo.deletedAt}

This theme is in your trash. Restore it from the Trash view.

{:else if infoUnavailable} {:else if infoDownloading}
Downloading... {infoPercent}%
{:else if infoOwned && infoInstalled && !infoLegacy} {:else if infoActive} {:else if infoInstalled && infoHasUpdate} {:else if infoInstalled} {:else} {/if} {#if !infoOwned && $currentUser && !infoUnavailable && !themeInfo.deletedAt} {/if}
{/if}
{ if (!open) closePendingAction(); }} > { event.preventDefault(); requestAnimationFrame(() => actionDialogContent?.querySelector('[data-autofocus]')?.focus() ); }} onInteractOutside={(event) => { if (actionBusy) event.preventDefault(); }} onEscapeKeydown={(event) => { if (actionBusy) event.preventDefault(); }} > {#if actionDialog}
{actionDialog.title} {actionDialog.description}
{#if actionDialog.note} {/if} {#if actionError}

{actionError}

{/if}
{/if}
{ if (!open) closeRestoreDialog(); }} > Restore theme? Restore {restoreTarget?.name} to the workshop? It will return with its existing visibility and moderation state. {#if trashActionError}

{trashActionError}

{/if}
{ if (!open) closePermanentDeleteDialog(); }} > Permanently delete theme? Permanently delete {purgeTarget?.name}? This removes the theme package, preview, likes, downloads and reports from the server. This cannot be undone. Installed copies on computers are not affected. {#if trashActionError}

{trashActionError}

{/if}