Gruppen 1.2.0: Detailseite im einheitlichen Seitenkopf
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b29f6ada71
commit
e7e92c5624
5 changed files with 37 additions and 38 deletions
|
|
@ -1,8 +1,8 @@
|
|||
<script setup>
|
||||
import { onMounted } from 'vue';
|
||||
import { Link, router } from '@inertiajs/vue3';
|
||||
import { ChevronLeft, Flag } from '@lucide/vue';
|
||||
import { AppLayout, Button, http, toast } from '@inhaus/ui';
|
||||
import { router } from '@inertiajs/vue3';
|
||||
import { Flag } from '@lucide/vue';
|
||||
import { AppLayout, Button, PageHeader, http, toast } from '@inhaus/ui';
|
||||
import PostCard from '../components/PostCard.vue';
|
||||
|
||||
const props = defineProps({
|
||||
|
|
@ -27,8 +27,8 @@ async function resolve() {
|
|||
|
||||
<template>
|
||||
<AppLayout :title="`Beitrag in ${group.name}`">
|
||||
<PageHeader title="Beitrag" :breadcrumbs="[{ label: 'Gruppen', href: '/gruppen' }, { label: group.name, href: group.url }]" />
|
||||
<div class="ih:mx-auto ih:grid ih:max-w-4xl ih:gap-4">
|
||||
<Link :href="group.url" class="ih:inline-flex ih:items-center ih:gap-1 ih:text-sm ih:font-medium ih:text-muted-foreground ih:hover:text-foreground"><ChevronLeft class="ih:size-4" /> {{ group.name }}</Link>
|
||||
<div v-if="reports.length" class="ih:rounded-md ih:border ih:border-destructive/30 ih:bg-destructive/5 ih:p-3 ih:text-sm">
|
||||
<p class="ih:flex ih:items-center ih:gap-2 ih:font-medium"><Flag class="ih:size-4 ih:text-destructive" /> {{ reports.length }} {{ reports.length === 1 ? 'Meldung' : 'Meldungen' }}</p>
|
||||
<ul class="ih:mt-1 ih:list-disc ih:pl-6 ih:text-muted-foreground"><li v-for="r in reports" :key="r.id">{{ r.comment_id ? 'Kommentar: ' : '' }}{{ r.reason }}</li></ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue