Forráskód Böngészése

Catch if video game cover is missing

Colin Powell 1 éve
szülő
commit
c4c810e23f
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      vrobbler/templates/scrobbles/scrobble_list.html

+ 3 - 1
vrobbler/templates/scrobbles/scrobble_list.html

@@ -258,7 +258,9 @@
                                     {% if scrobble.videogame_screenshot %}
                                     <td><img src="{{scrobble.videogame_screenshot_medium.url}}" width=25 height=25 style="border:1px solid black;" /></td>
                                     {% else %}
-                                    <td><img src="{{scrobble.media_obj.cover_medium.url}}" width=25 height=25 style="border:1px solid black;" /></td>
+                                    {% if scrobble.videogame.hltb_cover %}
+                                    <td><img src="{{scrobble.videogame.hltb_cover_medium.url}}" width=25 height=25 style="border:1px solid black;" /></td>
+                                    {% endif %}
                                     {% endif %}
                                     <td><a href="{{scrobble.media_obj.get_absolute_url}}">{{scrobble.media_obj.title}}</a></td>
                                     <td>{{scrobble.playback_position_seconds|natural_duration}}</td>