PM-Detailseite: Attributions-Zeile Urheber/Übermittler
Rendert unter dem Inhalt „Original-Inhalt von {Firma} und übermittelt
von {Übermittler}" (Legacy-Konvention), Übermittler aus dem Profilfeld
users.agency_name; bei Namensgleichheit kollabiert die Zeile zu
„Inhalt übermittelt von …", ohne Übermittler zu „Original-Inhalt von …".
Nur die Attributions-Hunks aus dem laufenden Web-Umbau; die übrigen
Working-Tree-Änderungen an View/Sprachdateien bleiben unangetastet.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
402fa4a38b
commit
a62a5eea6e
3 changed files with 24 additions and 0 deletions
|
|
@ -60,6 +60,11 @@
|
|||
$contact = $release->contacts->first();
|
||||
$contactName = $contact ? trim(implode(' ', array_filter([$contact->title, $contact->first_name, $contact->last_name]))) : null;
|
||||
|
||||
// Attributions-Zeile wie im Legacy-System: Urheber (Firma der PM) und
|
||||
// Übermittler (Profilfeld agency_name des einliefernden Accounts, z. B.
|
||||
// "connektar.de Presseverteiler" bei API-Einlieferungen).
|
||||
$agencyName = $release->user?->agency_name;
|
||||
|
||||
$publisherVerified = (bool) ($company?->is_active && filled($company?->website));
|
||||
$isRecommended = $release->content_score !== null && $release->content_score >= 80;
|
||||
|
||||
|
|
@ -300,6 +305,19 @@
|
|||
</div>
|
||||
@endif
|
||||
|
||||
{{-- Attribution: Urheber & übermittelnder Verteiler (Legacy-Konvention) --}}
|
||||
@if ($companyName)
|
||||
<p class="mt-6 text-[12px] text-ink-3 italic max-w-[680px]">
|
||||
@if ($agencyName && $agencyName !== $companyName)
|
||||
{{ __('web.detail.attribution_via', ['company' => $companyName, 'agency' => $agencyName]) }}
|
||||
@elseif ($agencyName)
|
||||
{{ __('web.detail.attribution_agency_only', ['agency' => $agencyName]) }}
|
||||
@else
|
||||
{{ __('web.detail.attribution', ['company' => $companyName]) }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
|
||||
{{-- Inhalt melden (T13): sichtbar an jeder Mitteilung, nicht nur in der Sidebar --}}
|
||||
<div class="mt-8 pt-4 border-t border-bg-rule flex flex-wrap items-center gap-x-4 gap-y-1.5 text-[11.5px] text-ink-3">
|
||||
<span>{{ __('web.detail.legal_question') }}</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue