Finish grids

This commit is contained in:
2026-06-29 14:58:08 +02:00
parent 60ce1cf400
commit e9fdc9be51
3 changed files with 25 additions and 5 deletions

View File

@@ -20,7 +20,7 @@
</div>
<div style="margin-bottom:10px">
<span class="badge {{ $entry->type }}">{{ \App\View\Components\EntryCard::ENTRY_TYPES_BADGE[$entry->type] ?? $entry->type }}</span>
@if( section_must_be('romhacks', $entry->type ) )
@if( section_must_be(['romhacks', 'lua-scripts'], $entry->type ) )
@foreach( $entry->modifications as $modif )
<span class="badge orange">{{ $modif->name }}</span>
@endforeach
@@ -28,7 +28,7 @@
@foreach( $entry->languages as $lang )
<span class="badge orange">{{ $lang->name }}</span>
@endforeach
@elseif( section_must_be( 'utilities', $entry->type ) )
@elseif( section_must_be( ['utilities', 'documents'], $entry->type ) )
@foreach( $entry->categories as $category )
<span class="badge orange">{{ $category->name }}</span>
@endforeach
@@ -46,7 +46,7 @@
@endif
</div>
<div class="entry-card-meta">
<span><i data-lucide="download" size="12"></i> x</span>
<span><i data-lucide="download" size="12"></i> {{ $entry->total_downloads ?? 0 }}</span>
<span>Added: {{ $entry->created_at->format('y-m-d') }}</span>
</div>
</div>