Bläddra i källkod

[templates] Small fix to obj title missing

Colin Powell 1 dag sedan
förälder
incheckning
42ce6df9bd
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      vrobbler/templates/_scrobblable_list.html

+ 2 - 0
vrobbler/templates/_scrobblable_list.html

@@ -12,6 +12,7 @@
     </thead>
     <tbody>
         {% for obj in object_list %}
+        {% if obj.title %}
         <tr>
             <td><a href="{{obj.scrobble_set.last.get_absolute_url}}">{{obj.scrobble_set.last.local_timestamp}}
             <td><a href="{{obj.get_absolute_url}}">{{obj}}</a></td>
@@ -20,6 +21,7 @@
             <td><a type="button" class="btn btn-sm btn-primary" href="{{obj.start_url}}">Scrobble</a></td>
             {% endif %}
         </tr>
+        {% endif %}
         {% endfor %}
     </tbody>
 </table>