inhaus-plugin-kleinanzeigen/resources/js/editorial/EditorialListings.vue
Friederich Loheide f05c44733f Kleinanzeigen-Plugin 1.0.0
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 17:06:02 +00:00

19 lines
994 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script setup>
import { Link } from '@inertiajs/vue3';
import { Panel } from '@inhaus/ui';
defineProps({ pending: { type: Array, required: true } });
</script>
<template>
<Panel title="Kleinanzeigen – Freigabe" action-label="Zur Freigabe" action-href="/kleinanzeigen/moderation">
<ul v-if="pending.length" class="ih:-mx-5 ih:divide-y ih:border-t">
<li v-for="l in pending" :key="l.id" class="ih:flex ih:items-center ih:gap-3 ih:px-5 ih:py-2.5">
<img v-if="l.thumb_url" :src="l.thumb_url" alt="" class="ih:size-10 ih:rounded ih:object-cover" />
<Link :href="l.url" class="ih:min-w-0 ih:flex-1 ih:truncate ih:text-sm ih:font-medium ih:hover:underline">{{ l.title }}</Link>
<span class="ih:shrink-0 ih:text-xs ih:text-muted-foreground">{{ l.type_label }}</span>
</li>
</ul>
<p v-else class="ih:text-sm ih:text-muted-foreground">Keine Anzeigen warten auf Freigabe.</p>
</Panel>
</template>