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
621fc0569f
commit
365971ae1d
3 changed files with 24 additions and 0 deletions
|
|
@ -292,6 +292,9 @@ return [
|
|||
'print' => 'Drucken',
|
||||
'report_release' => 'Pressemitteilung melden',
|
||||
'privacy_rights' => 'Datenschutz & Persönlichkeitsrecht',
|
||||
'attribution' => 'Original-Inhalt von :company',
|
||||
'attribution_via' => 'Original-Inhalt von :company und übermittelt von :agency',
|
||||
'attribution_agency_only' => 'Inhalt übermittelt von :agency',
|
||||
'legal_question' => 'Sie haben ein rechtliches Anliegen zu dieser Mitteilung?',
|
||||
'report_content' => 'Inhalt melden',
|
||||
'remove_data' => 'Eigene Daten entfernen',
|
||||
|
|
|
|||
|
|
@ -287,6 +287,9 @@ return [
|
|||
'print' => 'Print',
|
||||
'report_release' => 'Report press release',
|
||||
'privacy_rights' => 'Privacy & personal rights',
|
||||
'attribution' => 'Original content by :company',
|
||||
'attribution_via' => 'Original content by :company, submitted by :agency',
|
||||
'attribution_agency_only' => 'Content submitted by :agency',
|
||||
'legal_question' => 'Do you have a legal concern about this release?',
|
||||
'report_content' => 'Report content',
|
||||
'remove_data' => 'Remove my data',
|
||||
|
|
|
|||
|
|
@ -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