Files
laraundfelix/resources/views/member/article.blade.php
T
LarsandClaude Sonnet 5.5 99122ddfee
Deploy Test / test (push) Successful in 4m27s
Deploy Test / deploy (push) Successful in 40s
Zeige formatierte Texte überall als Klartext, wo kein HTML hingehört
Öffentliche Leser, Shop, Medienliste und Bibliothek lesen Kurzbeschreibung,
Beschreibung und Lernziel als Klartext; Mitgliederseiten zu Programm, Inhalt und
Artikel zeigen die formatierte Fassung. Der Editor trägt die deutsche Bezeichnung
des Felds als Namen für Hilfstechnik, der Tastaturfokus landet im Editor, und der
Abgleich merkt sich nur eine Prüfsumme. ADR-50 nennt Rückfall und Suche.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 00:01:53 +01:00

72 lines
4.1 KiB
PHP

@extends('layouts.member')
@section('title', $title)
@section('nav', 'bibliothek')
{{-- Einzelner Lizenzartikel (Medium oder Material ohne Programmkontext). Aktionen nur mit eigener Entscheidung je Aktion. --}}
@section('content')
<p class="mb-crumb"><a href="{{ route('member.library') }}"><x-heroicon-o-arrow-left aria-hidden="true" /> Zur Bibliothek</a></p>
<header class="mb-content-head">
@if ($kind)
<x-member.type :type="($entries[0]['class'] ?? null) === 'film' ? 'film' : 'material'" :label="$kind" />
@endif
<h1 class="mb-title">{{ $title }}</h1>
@if ($release?->classification_note)
<p class="mb-lede">{{ $release->classification_note }}</p>
@endif
</header>
@if ($entries === [])
<div class="empty mb-empty">
<h2>Kein veröffentlichter Stand</h2>
<p>Für diesen Eintrag liegt noch kein veröffentlichter Stand vor.</p>
</div>
@else
<ol class="mb-outline">
@foreach ($entries as $entry)
<li class="mb-outline-item">
<div class="mb-outline-main">
<h2 class="mb-outline-title">{{ $entry['title'] === $entry['role'] ? $entry['title'] : $entry['role'].': '.$entry['title'] }}</h2>
@if (filled($entry['version']->element->description))
<div class="mb-outline-text mb-prose">{!! \App\Domain\Catalog\FormattedText::display($entry['version']->element->description) !!}</div>
@endif
</div>
@if ($entry['playable'])
<div class="mb-player player">
@include('content.video', [
'playback' => ['mode' => $entry['playback'] ?? 'file', 'url' => $entry['url']],
'poster' => \App\Domain\Media\ThumbnailRef::url('member.thumbnail', 'element', $entry['version']->element->id, $entry['version']->element->thumbnail_path),
])
</div>
<div class="mb-actions">
<button class="button button-secondary" type="button" data-fullscreen><x-heroicon-o-arrow-top-right-on-square aria-hidden="true" /> Vollbild</button>
@if ($entry['download_url'])
<a class="button button-secondary" href="{{ $entry['download_url'] }}"><x-heroicon-o-arrow-down-tray aria-hidden="true" /> Herunterladen</a>
@endif
</div>
@elseif ($entry['allowed'] && $entry['url'])
<div class="mb-actions">
<a class="button" href="{{ $entry['url'] }}"><x-heroicon-o-eye aria-hidden="true" /> Ansehen</a>
@if ($entry['download_url'])
<a class="button button-secondary" href="{{ $entry['download_url'] }}"><x-heroicon-o-arrow-down-tray aria-hidden="true" /> Herunterladen</a>
@endif
</div>
@elseif ($entry['download_url'])
{{-- Lizenz nur zum Herunterladen (kein Streamen oder Ansehen): der Download bleibt erreichbar. --}}
<div class="mb-actions">
<a class="button" href="{{ $entry['download_url'] }}"><x-heroicon-o-arrow-down-tray aria-hidden="true" /> Herunterladen</a>
</div>
@else
<p class="mb-outline-locked">Nicht enthalten. Für diesen Teil liegt keine Freigabe vor.</p>
@endif
@if (filled($entry['version']->body))
<article class="mb-prose">
{!! \App\Domain\Catalog\FormattedText::display($entry['version']->body) !!}
</article>
@endif
</li>
@endforeach
</ol>
@endif
<p class="mb-muted">Artikel {{ $article->code }}</p>
@endsection