Zeige Kurse im Mitgliederbereich und mach hochgeladene Fassungen ansehbar.
Deploy Test / test (push) Successful in 14s
Deploy Test / deploy (push) Successful in 22s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-15 10:27:20 +01:00
1 parent b374335b3a
commit 4f2e5a5f3b
24 files changed
+413 -47

No files matched your search

+29 -15
View File
@@ -1,29 +1,43 @@
@extends('layouts.site')
@section('title', $article->code)
@section('title', $title)
@section('content')
@include('member.partials.nav')
<h1>{{ $article->code }}</h1>
@if ($release === null)
<div class="empty"><p>Für diesen Artikel ist noch kein Stand veröffentlicht.</p></div>
<h1>{{ $title }}</h1>
@if ($release?->classification_note)
<p class="lede">{{ $release->classification_note }}</p>
@endif
@if ($entries === [])
<div class="empty">
<p>Dieser Kurs hat noch keinen veröffentlichten Stand.</p>
</div>
@else
<p>Stand {{ $release->number }}@if ($release->change_note) · {{ $release->change_note }}@endif</p>
<ul class="catalog">
<ol class="course">
@foreach ($entries as $entry)
<li>
<strong>{{ $entry['content']->path }}</strong>
@if ($entry['allowed'] && $entry['url'])
@if ($entry['action'] === 'streamen' && filled($entry['version']->metadata['file'] ?? null))
<video controls preload="metadata" src="{{ $entry['url'] }}">Der Film kann hier abgespielt werden.</video>
@else
<a href="{{ $entry['url'] }}">Öffnen</a>
@endif
<h2>{{ $entry['role'] }}: {{ $entry['version']->element->working_title }}</h2>
@if ($entry['playable'])
<video controls preload="metadata" playsinline src="{{ $entry['url'] }}" @if ($entry['decision'] !== null) data-decision="{{ $entry['decision'] }}" @endif></video>
<p class="course-actions">
@if ($entry['decision'] !== null)
<button class="button" type="button" data-course-decision>Zur Entscheidungsmarke ({{ $entry['decision'] }} s)</button>
@endif
<button class="button" type="button" data-course-restart>Nochmal von vorn</button>
</p>
@elseif ($entry['allowed'] && $entry['url'])
<p><a href="{{ $entry['url'] }}">Ansehen</a></p>
@else
<span>{{ $entry['reason'] }}</span>
<p>Für diesen Teil liegt keine Freigabe vor.</p>
@endif
@if (filled($entry['version']->body))
<article class="prose">
{!! nl2br(e($entry['version']->body)) !!}
</article>
@endif
</li>
@endforeach
</ul>
</ol>
@endif
<p>Artikel {{ $article->code }}</p>
@endsection