- New collection "documents" (title, slug, file, category, order, public); editors upload PDFs in the admin, no developer or redeploy needed - The app serves each file at /dokumente/<slug>.pdf, a URL that survives a new upload (PocketBase's own file name gets a random suffix) - New "documents" embed lists them as file cards, grouped by category; /downloads uses it - List/view rules are "public = true", so a draft PDF is not reachable through the PocketBase API either - Dev seed adds example documents with generated PDFs and fixes the const reassignment that broke seeding a fresh volume - Docs: editor guide, architecture, and the manual production setup steps Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
653 B
Plaintext
21 lines
653 B
Plaintext
@if (_groups.Count > 0)
|
|
{
|
|
@* markdown-body and the lone-link class give the entries the same file cards a
|
|
lone PDF link gets in a page body, so both look alike on /downloads. *@
|
|
<section class="embed embed-documents markdown-body">
|
|
@foreach (var group in _groups)
|
|
{
|
|
@if (group.Key.Length > 0)
|
|
{
|
|
<h2>@group.Key</h2>
|
|
}
|
|
<ul>
|
|
@foreach (var document in group)
|
|
{
|
|
<li class="@Markdown.LoneLinkClass"><a href="@document.Path">@document.Title</a></li>
|
|
}
|
|
</ul>
|
|
}
|
|
</section>
|
|
}
|