{% extends "base_list.html" %}

{% block title %}Board Games{% endblock %}

{% block head_extra %}
<style>
 dl { width: 210px; float:left; margin-right: 10px; }
 dt a { color:white; text-decoration: none; font-size:smaller; }
 img { height:200px; width: 200px; object-fit: cover; }
 dd .right { float:right; }
</style>
{% endblock  %}

{% block lists %}
{% if designers_this_week or designers_this_month %}
<div class="row">
    {% if designers_this_week or designers_this_month %}
    <div class="col-md">
        <h2>Designers</h2>

        {% if designers_this_week %}
        <h3>This Week</h3>
        <div class="table-responsive">
            <table class="table table-striped table-sm">
                <tbody>
                    {% for item in designers_this_week %}
                    <tr>
                        <td>{{item.designer}}</td>
                        <td>{{item.count}} games</td>
                    </tr>
                    {% empty %}
                    <tr><td>No board games played this week</td></tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
        {% endif %}

        {% if designers_this_month %}
        <h3>This Month</h3>
        <div class="table-responsive">
            <table class="table table-striped table-sm">
                <tbody>
                    {% for item in designers_this_month %}
                    <tr>
                        <td>{{item.designer}}</td>
                        <td>{{item.count}} games</td>
                    </tr>
                    {% empty %}
                    <tr><td>No board games played this month</td></tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
        {% endif %}
    </div>
    {% endif %}
</div>
{% endif %}

<div class="row">

    <div class="col-md">
        <div class="table-responsive">
            {% include "_scrobblable_list.html" %}
        </div>
    </div>
</div>
{% endblock %}
