mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 18:11:16 +01:00
feat: added links to game table view
This commit is contained in:
@@ -168,40 +168,40 @@ function updateSelectedRom(rom: SimpleRom) {
|
||||
/>
|
||||
</template>
|
||||
<template #item.name="{ item }">
|
||||
<td>
|
||||
<v-list-item :min-width="400" class="px-0 py-2">
|
||||
<template #prepend>
|
||||
<platform-icon
|
||||
class="mr-4"
|
||||
:size="30"
|
||||
v-if="showPlatformIcon"
|
||||
:slug="item.platform_slug"
|
||||
/>
|
||||
<r-avatar-rom :rom="item" />
|
||||
</template>
|
||||
<v-row no-gutters>
|
||||
<v-col>{{ item.name }}</v-col>
|
||||
</v-row>
|
||||
<v-row no-gutters>
|
||||
<v-col class="text-primary">
|
||||
{{ item.fs_name }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
<template #append>
|
||||
<v-chip
|
||||
v-if="
|
||||
item.sibling_roms &&
|
||||
item.sibling_roms.length > 0 &&
|
||||
showSiblings
|
||||
"
|
||||
class="translucent-dark ml-4"
|
||||
size="x-small"
|
||||
>
|
||||
<span class="text-caption">+{{ item.sibling_roms.length }}</span>
|
||||
</v-chip>
|
||||
</template>
|
||||
</v-list-item>
|
||||
</td>
|
||||
<v-list-item
|
||||
:min-width="400"
|
||||
class="px-0 py-2"
|
||||
:to="{ name: ROUTES.ROM, params: { rom: item.id } }"
|
||||
>
|
||||
<template #prepend>
|
||||
<platform-icon
|
||||
class="mr-4"
|
||||
:size="30"
|
||||
v-if="showPlatformIcon"
|
||||
:slug="item.platform_slug"
|
||||
/>
|
||||
<r-avatar-rom :rom="item" />
|
||||
</template>
|
||||
<v-row no-gutters>
|
||||
<v-col>{{ item.name }}</v-col>
|
||||
</v-row>
|
||||
<v-row no-gutters>
|
||||
<v-col class="text-primary">
|
||||
{{ item.fs_name }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
<template #append>
|
||||
<v-chip
|
||||
v-if="
|
||||
item.sibling_roms && item.sibling_roms.length > 0 && showSiblings
|
||||
"
|
||||
class="translucent-dark ml-4"
|
||||
size="x-small"
|
||||
>
|
||||
<span class="text-caption">+{{ item.sibling_roms.length }}</span>
|
||||
</v-chip>
|
||||
</template>
|
||||
</v-list-item>
|
||||
</template>
|
||||
<template #item.fs_size_bytes="{ item }">
|
||||
<span class="text-no-wrap">{{ formatBytes(item.fs_size_bytes) }}</span>
|
||||
|
||||
Reference in New Issue
Block a user