mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-23 19:42:31 -05:00
[web] Simplify the display of lists
This commit is contained in:
parent
0e3490e589
commit
44896d82f4
@ -20,18 +20,16 @@
|
||||
class="media-left fd-has-shadow fd-cover fd-cover-small-image"
|
||||
/>
|
||||
<div class="media-content">
|
||||
<div class="content is-small">
|
||||
<div class="is-size-6 has-text-weight-bold" v-text="item.item.name" />
|
||||
<div
|
||||
class="has-text-grey has-text-weight-bold"
|
||||
v-text="item.item.artist"
|
||||
/>
|
||||
<div
|
||||
v-if="item.item.date_released && item.item.media_kind === 'music'"
|
||||
class="has-text-grey"
|
||||
v-text="$filters.date(item.item.date_released)"
|
||||
/>
|
||||
</div>
|
||||
<div class="is-size-6 has-text-weight-bold" v-text="item.item.name" />
|
||||
<div
|
||||
class="is-size-7 has-text-grey has-text-weight-bold"
|
||||
v-text="item.item.artist"
|
||||
/>
|
||||
<div
|
||||
v-if="item.item.date_released && item.item.media_kind === 'music'"
|
||||
class="is-size-7 has-text-grey"
|
||||
v-text="$filters.date(item.item.date_released)"
|
||||
/>
|
||||
</div>
|
||||
<div class="media-right">
|
||||
<a @click.prevent.stop="open_dialog(item.item)">
|
||||
|
@ -16,17 +16,15 @@
|
||||
/>
|
||||
</div>
|
||||
<div class="media-content">
|
||||
<div class="content is-small">
|
||||
<div class="is-size-6 has-text-weight-bold" v-text="item.name" />
|
||||
<div
|
||||
class="has-text-weight-bold has-text-grey"
|
||||
v-text="item.artists[0]?.name"
|
||||
/>
|
||||
<div
|
||||
class="has-text-grey"
|
||||
v-text="$filters.date(item.release_date)"
|
||||
/>
|
||||
</div>
|
||||
<div class="is-size-6 has-text-weight-bold" v-text="item.name" />
|
||||
<div
|
||||
class="is-size-7 has-text-weight-bold has-text-grey"
|
||||
v-text="item.artists[0]?.name"
|
||||
/>
|
||||
<div
|
||||
class="is-size-7 has-text-grey"
|
||||
v-text="$filters.date(item.release_date)"
|
||||
/>
|
||||
</div>
|
||||
<div class="media-right">
|
||||
<a @click.prevent.stop="open_dialog(item)">
|
||||
|
@ -1,14 +1,15 @@
|
||||
<template>
|
||||
<template v-for="item in items" :key="item.id">
|
||||
<div class="media is-align-items-center mb-0">
|
||||
<div class="media-content is-clickable" @click="open(item)">
|
||||
<div class="content is-small">
|
||||
<div class="is-size-6 has-text-weight-bold" v-text="item.name" />
|
||||
<div
|
||||
class="has-text-weight-bold has-text-grey"
|
||||
v-text="item.owner.display_name"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="media is-align-items-center is-clickable mb-0"
|
||||
@click="open(item)"
|
||||
>
|
||||
<div class="media-content">
|
||||
<div class="is-size-6 has-text-weight-bold" v-text="item.name" />
|
||||
<div
|
||||
class="is-size-7 has-text-weight-bold has-text-grey"
|
||||
v-text="item.owner.display_name"
|
||||
/>
|
||||
</div>
|
||||
<div class="media-right">
|
||||
<a @click.prevent.stop="open_dialog(item)">
|
||||
|
@ -15,27 +15,25 @@
|
||||
>
|
||||
<mdicon v-if="show_icon" class="media-left icon" name="file-outline" />
|
||||
<div class="media-content">
|
||||
<div class="content is-small">
|
||||
<div
|
||||
class="is-size-6 has-text-weight-bold"
|
||||
:class="{
|
||||
'has-text-grey':
|
||||
item.item.media_kind === 'podcast' && item.item.play_count > 0
|
||||
}"
|
||||
v-text="item.item.title"
|
||||
/>
|
||||
<div
|
||||
class="has-text-weight-bold has-text-grey"
|
||||
v-text="item.item.artist"
|
||||
/>
|
||||
<div class="has-text-grey" v-text="item.item.album" />
|
||||
<progress
|
||||
v-if="show_progress && item.item.seek_ms > 0"
|
||||
class="progress is-info"
|
||||
:max="item.item.length_ms"
|
||||
:value="item.item.seek_ms"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="is-size-6 has-text-weight-bold"
|
||||
:class="{
|
||||
'has-text-grey':
|
||||
item.item.media_kind === 'podcast' && item.item.play_count > 0
|
||||
}"
|
||||
v-text="item.item.title"
|
||||
/>
|
||||
<div
|
||||
class="is-size-7 has-text-weight-bold has-text-grey"
|
||||
v-text="item.item.artist"
|
||||
/>
|
||||
<div class="is-size-7 has-text-grey" v-text="item.item.album" />
|
||||
<progress
|
||||
v-if="show_progress && item.item.seek_ms > 0"
|
||||
class="progress is-info"
|
||||
:max="item.item.length_ms"
|
||||
:value="item.item.seek_ms"
|
||||
/>
|
||||
</div>
|
||||
<div class="media-right">
|
||||
<a @click.prevent.stop="open_dialog(item.item)">
|
||||
|
@ -9,32 +9,30 @@
|
||||
}"
|
||||
@click="play(item)"
|
||||
>
|
||||
<div class="content is-small">
|
||||
<div
|
||||
class="is-size-6 has-text-weight-bold"
|
||||
:class="{ 'has-text-grey-light': !item.is_playable }"
|
||||
v-text="item.name"
|
||||
/>
|
||||
<div
|
||||
class="has-text-weight-bold"
|
||||
:class="{
|
||||
'has-text-grey': item.is_playable,
|
||||
'has-text-grey-light': !item.is_playable
|
||||
}"
|
||||
v-text="item.artists[0].name"
|
||||
/>
|
||||
<div class="has-text-grey" v-text="item.album.name" />
|
||||
<div v-if="!item.is_playable" class="has-text-grey">
|
||||
(<span v-text="$t('list.spotify.not-playable-track')" />
|
||||
<span
|
||||
v-if="item.restrictions?.reason"
|
||||
v-text="
|
||||
$t('list.spotify.restriction-reason', {
|
||||
reason: item.restrictions.reason
|
||||
})
|
||||
"
|
||||
/>)
|
||||
</div>
|
||||
<div
|
||||
class="is-size-6 has-text-weight-bold"
|
||||
:class="{ 'has-text-grey-light': !item.is_playable }"
|
||||
v-text="item.name"
|
||||
/>
|
||||
<div
|
||||
class="is-size-7 has-text-weight-bold"
|
||||
:class="{
|
||||
'has-text-grey': item.is_playable,
|
||||
'has-text-grey-light': !item.is_playable
|
||||
}"
|
||||
v-text="item.artists[0].name"
|
||||
/>
|
||||
<div class="is-size-7 has-text-grey" v-text="item.album.name" />
|
||||
<div v-if="!item.is_playable" class="is-size-7 has-text-grey">
|
||||
(<span v-text="$t('list.spotify.not-playable-track')" />
|
||||
<span
|
||||
v-if="item.restrictions?.reason"
|
||||
v-text="
|
||||
$t('list.spotify.restriction-reason', {
|
||||
reason: item.restrictions.reason
|
||||
})
|
||||
"
|
||||
/>)
|
||||
</div>
|
||||
</div>
|
||||
<div class="media-right">
|
||||
|
Loading…
x
Reference in New Issue
Block a user