浏览代码

[videogames] Add template for video game list

Colin Powell 1 年之前
父节点
当前提交
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 %}