mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-08-19 21:11:30 +10:00
Add age ratings (#451)
* Base age rating system * Cleanup enum leftovers * Missed files * GB importer * Linter settings * Translations * Prettier and linting --------- Co-authored-by: Robert Clabough <robert@clabough.tech>
This commit is contained in:
co-authored by
Robert Clabough
parent
8e75a0bf56
commit
97c6f2c8a6
@@ -145,6 +145,32 @@
|
||||
}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="game.ageRatings?.length">
|
||||
<td
|
||||
class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-zinc-100 sm:pl-3"
|
||||
>
|
||||
{{ $t("store.ageRating") }}
|
||||
</td>
|
||||
<td
|
||||
class="whitespace-nowrap flex flex-row items-center gap-x-2 px-3 py-4 text-sm text-zinc-400"
|
||||
>
|
||||
<div
|
||||
v-for="ar in game.ageRatings"
|
||||
:key="ar.id"
|
||||
class="flex items-center gap-1"
|
||||
>
|
||||
<img
|
||||
v-if="ar.ratingCoverUrl"
|
||||
:src="ar.ratingCoverUrl"
|
||||
:alt="`${ar.organization} ${ar.rating}`"
|
||||
class="h-8"
|
||||
/>
|
||||
<span v-else class="text-xs bg-zinc-700 px-2 py-1 rounded">
|
||||
{{ ar.organization }} {{ ar.rating }}
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td
|
||||
class="whitespace-nowrap align-top py-4 pl-4 pr-3 text-sm font-medium text-zinc-100 sm:pl-3"
|
||||
|
||||
Reference in New Issue
Block a user