{% extends "_base.html" %}

{% block titlecontent -%}
    Mispackaged – {{ super() }}
{%- endblock titlecontent %}

{% block bodycontent %}

<div class="container">
    <div class="col-md-12">
        <h1>Mispackaged</h1>
            <p>
                All mispackaged packages, ordered by last activity.
            </p>

        {% if not mispackaged %}
        <p>
            <br/><br/>
            There are currently no such packages.
        </p>
        {% else %}
        <table class="table table-striped table-condensed table-hovered">
            <tr>
                <th>Package</th>
                <th>Last activity</th>
            </tr>

            {% for pkg in mispackaged %}
            <tr>
                <td>
                    {{ pkglink(pkg) }}
                </td>
                <td>
                    {% if pkg.last_link_update %}
                        <time title="{{ pkg.last_link_update }}">
                            {{ pkg.last_link_update | format_time_ago }}
                        </time>
                    {% else %}
                        no Bugzilla report yet
                    {% endif %}
                </td>
            </tr>
            {% endfor %}
        </table>
        {% endif %}
    </div>
</div>

{% endblock bodycontent %}
