Neues Plugin IT-Service (OpenNIT); Abteilung bei „Geschrieben von“
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 4m42s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m41s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m32s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m7s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m29s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 5m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m30s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m35s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 20:05:41 +00:00
parent c713194a83
commit c1117829c3
139 changed files with 2455 additions and 398 deletions

View file

@ -43,6 +43,9 @@ async function copyLink() {
}
}
// Abteilung zuerst, Funktion dahinter: „Personal | Referentin“
const authorLine = (author) => [author?.department, author?.job_title].filter(Boolean).join(' | ');
const mailLink = () => `mailto:?subject=${encodeURIComponent(props.post.title)}&body=${encodeURIComponent(window.location.href)}`;
</script>
@ -87,7 +90,7 @@ const mailLink = () => `mailto:?subject=${encodeURIComponent(props.post.title)}&
<PersonAvatar :person="post.author" class="size-11" />
<div class="min-w-0 text-sm">
<Link :href="`/personen/${post.author.id}`" class="font-semibold hover:underline">{{ post.author.name }}</Link>
<p v-if="post.author.job_title" class="text-muted-foreground">{{ post.author.job_title }}</p>
<p v-if="authorLine(post.author)" class="text-muted-foreground">{{ authorLine(post.author) }}</p>
</div>
</div>
@ -118,7 +121,7 @@ const mailLink = () => `mailto:?subject=${encodeURIComponent(props.post.title)}&
<PersonAvatar :person="post.author" class="size-14" />
<span class="min-w-0">
<span class="block font-semibold">{{ post.author.name }}</span>
<span v-if="post.author.job_title" class="block text-[13px] text-muted-foreground">{{ post.author.job_title }}</span>
<span v-if="authorLine(post.author)" class="block text-[13px] text-muted-foreground">{{ authorLine(post.author) }}</span>
</span>
</Link>
</section>

View file

@ -51,6 +51,7 @@ class NewsController extends Controller
'name' => $post->author->name,
'initials' => $post->author->initials,
'job_title' => $post->author->job_title,
'department' => $post->author->department,
'avatar_url' => $post->author->avatarUrl(96),
] : null,
],