{% extends "base.html" %}
{% load package_extras %}
{% load humanize %}
{% load details_link %}

{% block title %}Arch Linux - Flag Package - {{ package.pkgname }} {{ package.full_version }} ({{ package.arch.name }}){% endblock %}
{% block head %}<meta name="robots" content="noindex"/>{% endblock %}
{% block navbarclass %}anb-packages{% endblock %}

{% block content %}
<div id="pkg-flag" class="box">
    <h2>Flag Package: {{ package.pkgname }} {{ package.full_version }} ({{ package.arch.name }})</h2>

    <p>If you notice a package is out-of-date (i.e., there is a newer
    <strong>stable</strong> release available), then please notify us using
    the form below. Do <em>not</em> report bugs via this form!</p>

    <p>Note that the following {{ packages|length }} package{{ packages|pluralize }} will be marked out of date:</p>
    <ul>
        {% for pkg in packages %}
        <li>{% pkg_details_link pkg %} {{ pkg.full_version }} [{{ pkg.repo.name|lower }}] ({{ pkg.arch.name }})</li>
        {% endfor %}
    </ul>

    <p>The message box portion is meant
    for short messages only. If you need more than 200 characters for your
    message, then file a bug report, email the maintainer directly, or send
    an email to the <a href="https://lists.archlinux.org/mailman3/lists/arch-general.lists.archlinux.org/"
        title="Visit the arch-general mailing list">arch-general mailing list</a>
    with your additional text.</p>

    <p><strong>Note:</strong> Do <em>not</em> use this facility if the
    package is broken! The package will be unflagged and the report will be ignored! File an issue on
    <a href="{% bugs_list package %}" title="Bug tickets for {{ package }}">the package's GitLab repository</a>
    instead.</p>

    <p>Please confirm your flag request for {{package.pkgname}}:</p>

    <form id="flag-pkg-form" method="post">{% csrf_token %}
        <fieldset>
            {{ form.as_p }}
        </fieldset>
        {% if package.is_recent %}
            <div>
                <label></label>
                <div class="recentwarning">
		     This package was <strong>updated {{ package.last_update|naturaltime }}</strong> and may not yet be available on your mirror. Are you sure <strong>{{ package.pkgver }}</strong> is not the latest available version{% if package.url %} <a href="{{ package.url }}">from upstream</a>{% endif %}?
                </div>
            </div>
        {% endif %}
        <p><label></label> <input title="Flag {{ package.pkgname }} as out-of-date" type="submit" value="Flag Package" /></p>
    </form>
</div>
{% endblock %}
