Eine Navigation (Meine Bibliothek, Programme, Meine Lizenzen, Konto-Menü) mit der freigegebenen Wortmarke, Startseite ohne erfundene Inhalte, Bibliothek mit Inhaltsart-Filter und einer Karte je Medienidentität („Verwendet in“), Programm-/Moduldetail, Film und Material im Zusammenhang mit Begleitmaterial und Weg zurück, Lizenzübersicht mit Detailseite je Berechtigung. Alle Größen aus der Größenskala (ADR-44, neues Token --card-min). Tests bewusst angepasst: Der Film spielt auf der Kontextseite statt eingebettet im Programm, Download-Links tragen ein Symbol, der Platzhalter ist ein dekoratives Element, die Wortmarke ist das freigegebene Logo. Die Vorschau der Bibliothekskarte in der Verwaltung nutzt dieselbe Komponente. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
68 lines
3.7 KiB
PHP
68 lines
3.7 KiB
PHP
{{--
|
|
Geordnete Struktur eines Programms oder Moduls. Jede Einbindung steht an ihrer Stelle, auch wenn dasselbe Medium in
|
|
einem anderen Programm vorkommt. Verschachtelung bleibt erhalten (Module in Programmen, Medien in Modulen).
|
|
Aktionen: Film → Kontextseite (Player, Beschreibung, Begleitmaterial); Dokument → Ansehen; Laden nur mit eigenem Recht.
|
|
Gesperrte Teile zeigen den Grund, aber keine Datei und keine Adresse.
|
|
--}}
|
|
<ol class="mb-outline">
|
|
@foreach ($nodes as $node)
|
|
@php
|
|
$isFilm = $node['output_class'] === 'film';
|
|
$isAudio = $node['output_class'] === 'audio';
|
|
$isGroup = $node['children'] !== [] || $node['composition_id'] !== null;
|
|
$type = $isGroup ? 'modul' : ($isFilm ? 'film' : 'material');
|
|
@endphp
|
|
<li class="mb-outline-item mb-outline-{{ $type }}">
|
|
<div class="mb-outline-row">
|
|
@if (! $isGroup && filled($node['poster_url']))
|
|
<img class="mb-outline-thumb" src="{{ $node['poster_url'] }}" alt="" loading="lazy">
|
|
@endif
|
|
<div class="mb-outline-main">
|
|
<p class="mb-outline-meta">
|
|
<x-member.type :type="$type" :label="$node['kind'] ?: $node['role']" />
|
|
@if ($node['role'] !== ($node['kind'] ?: $node['role']))
|
|
<span class="mb-outline-role">Rolle: {{ $node['role'] }}</span>
|
|
@endif
|
|
</p>
|
|
<h3 class="mb-outline-title">
|
|
@if ($isGroup && $node['program_url'])
|
|
<a href="{{ $node['program_url'] }}">{{ $node['title'] }}</a>
|
|
@elseif ($isFilm && $node['view_url'] && $node['content_url'])
|
|
<a href="{{ $node['content_url'] }}">{{ $node['title'] }}</a>
|
|
@else
|
|
{{ $node['title'] }}
|
|
@endif
|
|
</h3>
|
|
@if (filled($node['summary']))
|
|
<p class="mb-outline-text">{{ $node['summary'] }}</p>
|
|
@endif
|
|
</div>
|
|
@if (! $isGroup)
|
|
<div class="mb-outline-actions">
|
|
@if ($node['view_url'])
|
|
@if ($isFilm || $isAudio)
|
|
<a class="button" href="{{ $node['content_url'] }}"><x-heroicon-o-play aria-hidden="true" /> {{ $isAudio ? 'Anhören' : 'Film ansehen' }}</a>
|
|
@else
|
|
<a class="button button-secondary" href="{{ $node['view_url'] }}"><x-heroicon-o-eye aria-hidden="true" /> Ansehen</a>
|
|
@endif
|
|
@if ($node['download_url'])
|
|
<a class="button button-secondary" href="{{ $node['download_url'] }}"><x-heroicon-o-arrow-down-tray aria-hidden="true" /> Laden</a>
|
|
@endif
|
|
@else
|
|
<x-member.status state="nicht enthalten" />
|
|
@endif
|
|
</div>
|
|
@endif
|
|
</div>
|
|
@if (! $isGroup && ! $node['view_url'])
|
|
<p class="mb-outline-locked">Nicht enthalten. Für diesen Teil liegt keine Freigabe vor.</p>
|
|
@elseif ($isGroup && $node['children'] === [])
|
|
<p class="mb-outline-locked">Nicht enthalten. Für diesen Teil liegt keine Freigabe vor.</p>
|
|
@endif
|
|
@if ($node['children'] !== [])
|
|
@include('member.partials.structure', ['nodes' => $node['children']])
|
|
@endif
|
|
</li>
|
|
@endforeach
|
|
</ol>
|