Просмотр исходного кода

[videogames] Add template for video game list

Colin Powell 1 год назад
Родитель
Сommit
53657a9454
1 измененных файлов с 28 добавлено и 0 удалено
  1. 28 0
      vrobbler/templates/videogames/videogame_list.html

+ 28 - 0
vrobbler/templates/videogames/videogame_list.html

@@ -0,0 +1,28 @@
+{% extends "base_list.html" %}
+
+{% block lists %}
+<div class="row">
+    <div class="col-md">
+        <div class="table-responsive">
+            <table class="table table-striped table-sm">
+                <thead>
+                    <tr>
+                        <th scope="col">Name</th>
+                        <th scope="col">Scrobbles</th>
+                        <th scope="col">All time</th>
+                    </tr>
+                </thead>
+                <tbody>
+                    {% for obj in object_list %}
+                    <tr>
+                        <td><a href="{{obj.get_absolute_url}}">{{obj}}</a></td>
+                        <td>{{obj.scrobble_set.count}}</td>
+                        <td></td>
+                    </tr>
+                    {% endfor %}
+                </tbody>
+            </table>
+        </div>
+    </div>
+</div>
+{% endblock %}