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

{% block title %}All developers{% 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  developer in object_list %}
        <tr>
        <th scope="row"><a href="{{developer.get_absolute_url}}">{{developer.id}}</a></th>
        <td>{{developer.name}}</td>
        <td>{{developer.game_set.count}}</td>
        <td>{{developer.rating_avg}}/100</td>
        </tr>
        {% endfor %}
    </tbody>
    </table>
{% endblock %}
