fine tuning

This commit is contained in:
IGNY8 VPS (Salman)
2025-11-28 12:25:45 +00:00
parent 831b179c49
commit 0839455418
15 changed files with 840 additions and 95 deletions

View File

@@ -761,6 +761,50 @@ export default function ContentViewTemplate({ content, loading, onBack }: Conten
</p>
</div>
)}
{content.cluster_name && (
<div>
<p className="text-xs text-gray-500 dark:text-gray-400">Cluster</p>
<p className="text-sm font-medium text-gray-900 dark:text-white">
{content.cluster_name}
</p>
</div>
)}
{/* Categories */}
{content.taxonomy_terms_data && content.taxonomy_terms_data.filter(term => term.taxonomy_type === 'category').length > 0 && (
<div>
<p className="text-xs text-gray-500 dark:text-gray-400">Category</p>
<div className="flex flex-wrap gap-2">
{content.taxonomy_terms_data
.filter(term => term.taxonomy_type === 'category')
.map((category) => (
<span
key={category.id}
className="px-3 py-1 bg-purple-50 dark:bg-purple-900/20 text-purple-700 dark:text-purple-300 rounded-full text-xs font-medium"
>
{category.name}
</span>
))}
</div>
</div>
)}
{/* Tags */}
{content.taxonomy_terms_data && content.taxonomy_terms_data.filter(term => term.taxonomy_type === 'tag').length > 0 && (
<div>
<p className="text-xs text-gray-500 dark:text-gray-400">Tags</p>
<div className="flex flex-wrap gap-2">
{content.taxonomy_terms_data
.filter(term => term.taxonomy_type === 'tag')
.map((tag) => (
<span
key={tag.id}
className="px-3 py-1 bg-brand-50 dark:bg-brand-900/20 text-brand-700 dark:text-brand-300 rounded-full text-xs font-medium"
>
{tag.name}
</span>
))}
</div>
</div>
)}
</div>
</div>