Accommodate scrobble URLs when present
This commit is contained in:
parent
18c0cf1845
commit
730351dcd1
1
changelog.d/create-link-when-url-present.add
Normal file
1
changelog.d/create-link-when-url-present.add
Normal file
@ -0,0 +1 @@
|
|||||||
|
Create a link to the URL of the scrobble when it's present
|
@ -249,7 +249,33 @@
|
|||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="status-rich-presence" v-if="scrobblePresent">
|
<div
|
||||||
|
v-if="scrobblePresent"
|
||||||
|
class="status-rich-presence"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
v-if="scrobble.externalLink"
|
||||||
|
:href="scrobble.externalLink"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
:src="faviconUrl"
|
||||||
|
class="status-rich-presence-favicon"
|
||||||
|
/>
|
||||||
|
{{ scrobble.artist }} — {{ scrobble.title }}
|
||||||
|
<FAIcon
|
||||||
|
class="fa-scale-110 fa-old-padding"
|
||||||
|
icon="play"
|
||||||
|
/>
|
||||||
|
<span class="status-rich-presence-time">
|
||||||
|
<Timeago
|
||||||
|
template-key="time.in_past"
|
||||||
|
:time="scrobble.created_at"
|
||||||
|
:auto-update="60"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<span v-if="!scrobble.externalLink">
|
||||||
<FAIcon
|
<FAIcon
|
||||||
class="fa-scale-110 fa-old-padding"
|
class="fa-scale-110 fa-old-padding"
|
||||||
icon="music"
|
icon="music"
|
||||||
@ -266,6 +292,7 @@
|
|||||||
:auto-update="60"
|
:auto-update="60"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="isReply || hasMentionsLine"
|
v-if="isReply || hasMentionsLine"
|
||||||
|
Loading…
Reference in New Issue
Block a user