Reapply "Add missing admin action files and navigation links"

This reverts commit 4d515bc400.
This commit is contained in:
Simo committed 2026-07-11 20:52:56 +02:00
1 parent 96ed768f14
commit 5b4228261a
338 files changed
+28143 -5948

No files matched your search

+9 -3
View File
@@ -69,7 +69,9 @@ export default async function AdminSubscriptions() {
</div>
<section className="mt-6">
<h2 className="admin-section-title">{t("activeSubscriptions")} ({active.length})</h2>
<h2 className="admin-section-title">
{t("activeSubscriptions")} ({active.length})
</h2>
<div className="admin-card">
<table>
<thead>
@@ -90,11 +92,15 @@ export default async function AdminSubscriptions() {
<td>{s.userId ?? "—"}</td>
<td>{s.subscriptionType ?? "—"}</td>
<td>
<span className={`inline-block text-[0.72rem] font-bold px-2 py-0.5 rounded-full ${soon ? "bg-[var(--color-primary)]/18 text-[var(--color-text)]" : "bg-green-600/20 text-[var(--color-text)]"}`}>
<span
className={`inline-block text-[0.72rem] font-bold px-2 py-0.5 rounded-full ${soon ? "bg-[var(--color-primary)]/18 text-[var(--color-text)]" : "bg-green-600/20 text-[var(--color-text)]"}`}
>
{soon ? t("statusExpiring") : t("statusActive")}
</span>
</td>
<td className="text-sm text-gray-500 dark:text-gray-400 whitespace-nowrap">{fmt(s.expiresAt)}</td>
<td className="text-sm text-gray-500 dark:text-gray-400 whitespace-nowrap">
{fmt(s.expiresAt)}
</td>
</tr>
);
})}