Skip to content

Commit

Permalink
Merge pull request #545 from vincelwt/patch-1
Browse files Browse the repository at this point in the history
Show Soundnode logo in case IMG src returns 404
  • Loading branch information
weblancaster committed Feb 1, 2016
2 parents 442575b + 549dc21 commit dd8c4cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/common/tracks.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<i class="fa fa-play"></i>
<i class="fa fa-pause"></i>
</span>
<img ng-controller="AppCtrl" ng-src="{{ showBigArtwork (data.artwork_url) }}" alt="{{ data.title }}" class="songList_item_artwork">
<img ng-controller="AppCtrl" ng-src="{{ showBigArtwork (data.artwork_url) }}" onerror="if (this.src != 'public/img/logo-short.png') this.src = 'public/img/logo-short.png';" alt="{{ data.title }}" class="songList_item_artwork">
<div class="songList_item_song_social_details">
<span class="songList_comment_count">
<i class="fa fa-comments"></i>{{data.comment_count | round}}
Expand Down Expand Up @@ -65,4 +65,4 @@ <h3 class="songList_item_song_info clearfix">
<span class="songList_item_license">{{ data.license }}</span>
</div>
</div>
</section>
</section>

0 comments on commit dd8c4cb

Please sign in to comment.