~phw/discourse-listenbrainz

526e20873f57289af35f36b632e37e3d43a5e1ae — Philipp Wolfer 1 year, 1 month ago b311053
Fix listening cover only showing if coverUrl is set
M assets/javascripts/discourse/templates/components/listenbrainz-cover.hbs => assets/javascripts/discourse/templates/components/listenbrainz-cover.hbs +4 -0
@@ 1,4 1,8 @@
{{#if this.src}}
<img src="{{this.src}}"
    title="{{this.title}}"
    {{on "load" this.onLoad}}
    style="{{this.style}}" />
{{else}}
<span />
{{/if}}

M assets/javascripts/discourse/templates/components/listenbrainz-listening.hbs => assets/javascripts/discourse/templates/components/listenbrainz-listening.hbs +0 -6
@@ 4,16 4,10 @@
        <div class="listenbrainz-card-thumbnail">
            {{#if releaseMbid}}
            <a href="{{releaseUrl}}" title="{{album}}" target="_blank">
                {{#if releaseUrl}}
                {{listenbrainz-cover src=coverUrl}}
                {{/if}}
            </a>
            {{else}}
                {{#if releaseUrl}}
                {{listenbrainz-cover src=coverUrl title=album}}
                {{else}}
                <span />
                {{/if}}
            {{/if}}
        </div>
        <div class="listenbrainz-card-details">

M assets/javascripts/discourse/templates/components/listenbrainz-profile.hbs => assets/javascripts/discourse/templates/components/listenbrainz-profile.hbs +0 -4
@@ 2,15 2,11 @@
<div class="listenbrainz-card listenbrainz-user-profile">
    <div class="listenbrainz-card-main-content">
        <div class="listenbrainz-card-thumbnail">
            {{#if profile.thumbnail_url}}
            <a href="https://listenbrainz.org/user/{{profile.username}}"
                target="_blank"
                title="{{profile.username}}">
                {{listenbrainz-cover-collage src=profile.thumbnail_url}}
            </a>
            {{else}}
            <span />
            {{/if}}
        </div>
        <div class="listenbrainz-card-details">
            {{#if loading }}