The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/spotify/lib/client/oembedSpotifyWidget.html

18 lines
961 B

<template name="oembedSpotifyWidget">
{{#if parsedUrl}}
<blockquote class="message-oembed background-transparent-darker-before">
<a href="https://www.spotify.com" rel="noopener noreferrer" style="color: #9e9ea6">Spotify</a><br/>
{{#if match meta.ogAudio "spotify:artist:\\S+"}}
<a rel="noopener noreferrer" href="{{url}}">{{{meta.ogTitle}}}</a>
{{else}}
<a rel="noopener noreferrer" href="{{url}}">{{{replace meta.ogDescription ", an? (?:song|album) by (.+?) on Spotify" " - $1" regex=true}}}</a>
{{/if}}
{{#if collapsed}}
<span class="collapse-switch icon-right-dir" data-url="{{url}}" data-collapsed="{{collapsed}}"></span>
{{else}}
<span class="collapse-switch icon-down-dir" data-url="{{url}}" data-collapsed="{{collapsed}}"></span>
<iframe width="300" height="380" src="https://embed.spotify.com/?uri={{url}}" rel="noopener noreferrer" frameborder="0"></iframe><br/>
{{/if}}
</blockquote>
{{/if}}
</template>