Pārlūkot izejas kodu

Add screenshots and saves to VG details

Colin Powell 2 gadi atpakaļ
vecāks
revīzija
ff5a88cb17
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      vrobbler/templates/videogames/videogame_detail.html

+ 4 - 1
vrobbler/templates/videogames/videogame_detail.html

@@ -67,15 +67,18 @@
                         <th scope="col">Completed</th>
                         <th scope="col">Duration</th>
                         <th scope="col">Platforms</th>
+                        <th scope="col">State file</th>
                     </tr>
                 </thead>
                 <tbody>
                     {% for scrobble in object.scrobble_set.all|dictsortreversed:"timestamp" %}
                     <tr>
                         <td>{{scrobble.timestamp}}</td>
-                        <td>{% if scrobble.long_play_complete == True %}Yes{% endif %}</td>
+                        <td>{% if scrobble.long_play_complete == True %}Yes{% else %}Not yet{% endif %}</td>
                         <td>{% if scrobble.in_progress %}Now playing{% else %}{{scrobble.playback_position_seconds|natural_duration}}{% endif %}</td>
                         <td>{% for platform in scrobble.video_game.platforms.all %}<a href="{{platform.get_absolute_url}}">{{platform}}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</td>
+                        <td>{% if scrobble.videogame_save_data %}<a href="{{scrobble.videogame_save_data.url}}">Save data</a>{% else %}Not yet{% endif %}</td>
+                        <td>{% if scrobble.videogame_screenshot%}<img src="{{scrobble.videogame_screenshot.url}}" width=250 />{% endif %}</td>
                     </tr>
                     {% endfor %}
                 </tbody>