{% extends "base.html" %}
{% block page_title %}{{object}}{% endblock %}

{% block title %}{{object}}{% endblock %}

{% block content %}
    <table class="table table-bordered table">
    <thead>
        <tr>
        <th scope="col">#</th>
        <th scope="col">Name</th>
        <th scope="col">Games</th>
        <th scope="col">Rating</th>
        </tr>
    </thead>
    <tbody>
        {% for  collection in object_list %}
        <tr>
        <th scope="row"><a href="{{collection.get_absolute_url}}">{{collection.id}}</a></th>
        <td>{{collection.name}}</td>
        <td>{{collection.games.count}}</td>
        <td>{{collection.rating_avg}}/100</td>
        </tr>
        {% endfor %}
    </tbody>
    </table>
{% endblock %}
