80 lines
No EOL
3.3 KiB
HTML
80 lines
No EOL
3.3 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Dashboard — Myst{% endblock %}
|
|
{% block content %}
|
|
<div class="flex flex-col gap-6">
|
|
<section class="flex flex-col justify-between gap-4 pb-6 border-b border-stroke sm:flex-row sm:items-end">
|
|
<div>
|
|
<h1 class="mt-2 text-3xl font-semibold leading-10 tracking-normal text-foreground">Dashboard</h1>
|
|
<p class="mt-1 text-sm text-text-secondary">Welcome, {{ user.display_name or user.email }}.</p>
|
|
</div>
|
|
<a href="/links/create" class="w-fit btn-primary">
|
|
Create share link
|
|
</a>
|
|
</section>
|
|
<section class="grid gap-4 md:grid-cols-3">
|
|
<div class="p-4 card">
|
|
<p class="section-header-subtle">Active links</p>
|
|
<p class="mt-3 text-2xl font-semibold text-foreground">0</p>
|
|
<p class="mt-2 text-xs text-text-tertiary">No repository snapshots published yet.</p>
|
|
</div>
|
|
<div class="p-4 card">
|
|
<p class="section-header-subtle">Default expiry</p>
|
|
<p class="mt-3 text-2xl font-semibold text-foreground">7 days</p>
|
|
<p class="mt-2 text-xs text-text-tertiary">Applied to newly created links.</p>
|
|
</div>
|
|
<div class="p-4 card">
|
|
<p class="section-header-subtle">Audit events</p>
|
|
<p class="mt-3 text-2xl font-semibold text-foreground">0</p>
|
|
<p class="mt-2 text-xs text-text-tertiary">Viewer activity will appear here.</p>
|
|
</div>
|
|
</section>
|
|
<section class="card">
|
|
<div class="card-header">
|
|
<h2 class="text-base font-semibold text-foreground">Forgejo access token</h2>
|
|
<p class="mt-2 text-sm text-text-secondary">
|
|
Register a <code
|
|
class="rounded-sm bg-background-secondary px-1.5 py-0.5 text-primary">read:repository</code>-scoped PAT
|
|
to enable share link viewing.
|
|
</p>
|
|
</div>
|
|
<form method="post" class="grid gap-4 px-4 py-4 sm:grid-cols-[1fr_auto] sm:items-end">
|
|
<div>
|
|
<label for="pat" class="section-header-subtle">
|
|
Forgejo access token
|
|
</label>
|
|
<input type="text" id="pat" name="pat" class="block w-full mt-2 input-mono" placeholder="ad8j3..." required />
|
|
</div>
|
|
<button type="submit" class="px-4 py-2 btn-primary">
|
|
Register
|
|
</button>
|
|
</form>
|
|
</section>
|
|
<section class="card">
|
|
<div class="flex items-center justify-between card-header">
|
|
<div>
|
|
<h2 class="text-base font-semibold text-foreground">Share links</h2>
|
|
<p class="mt-1 text-sm text-text-secondary">Repository snapshots published from this account.</p>
|
|
</div>
|
|
<span class="rounded-full bg-background-secondary px-2.5 py-1 text-xs font-medium text-text-tertiary">Empty</span>
|
|
</div>
|
|
<div class="overflow-x-auto">
|
|
<table class="w-full min-w-[720px] text-left text-sm">
|
|
<thead class="bg-background-muted text-xs font-semibold uppercase tracking-[0.05em] text-text-tertiary">
|
|
<tr>
|
|
<th class="px-4 py-3">Repository</th>
|
|
<th class="px-4 py-3">Commit</th>
|
|
<th class="px-4 py-3">Status</th>
|
|
<th class="px-4 py-3">Views</th>
|
|
<th class="px-4 py-3">Expires</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="divide-y divide-border-light">
|
|
<tr class="text-text-secondary">
|
|
<td class="px-4 py-5" colspan="5">You have not created any share links yet.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
{% endblock %} |