{% extends "base.html" %}

{% load i18n %}
{% load lingua %}


{% block content %}

<td width="62"></td>
<td width="100%">
<table width="100%" border="0" cellpadding="0" cellspacing="0">

    <tr>
        <td>
            <nobr>
            <span style="font-family: Arial, Helvetica, sans-serif; font-size:20px; line-height:24px; margin:0; color:#000; font-weight: normal; text-decoration: none; vertical-align: middle;">
                {% if reporter.staff_id == target.staff_id %}
                    {% trans "reject.you_requested" %}
                {% else %}
                    <p style="font-family: Arial, Helvetica, sans-serif; font-size:20px; line-height:24px; margin:0; color:#000; font-weight: normal; text-decoration: none; vertical-align: middle;">
                        <a href="{{ reporter.url }}" style="font-family: Arial, Helvetica, sans-serif; font-size:18px; line-height:24px; margin:0; color:#000; font-weight: normal; text-decoration: none; vertical-align: middle;">{{ reporter|username }}</a>
                        {% trans "reject.requested" context reporter.get_gender_display %}
                    </p>
                {% endif %}
            </span>
            </nobr>
        </td>
    </tr>


    <tr>
        <td height="11"></td>
    </tr>

    {% for person in persons %}
    <tr>
        <td>
            <nobr>
                <a href="{{ person.url }}" style="display: inline-block; vertical-align: middle;">
                    <img src="{{ person.avatar_url }}" alt="" width="24" height="24" style="display: block; margin:0 3px 10px 0;"/>
                </a>

                <p style="font-family: Arial, Helvetica, sans-serif; font-size:20px; line-height:24px; margin:0 4px 10px 0; color:#000; font-weight: normal; text-decoration: none; display: inline-block; vertical-align: middle;">
                    <a href="{{ person.url }}" style="font-family: Arial, Helvetica, sans-serif; font-size:18px; line-height:24px; margin:0; color:#000; font-weight: normal; text-decoration: none;">
                        {% if mail_template_language == 'ru'%}{{ person|inflate_name_acc|username }}{% else %}{{ person|username }}{% endif %}</a>{% if not forloop.last %},{% endif %}
                </p>
            </nobr>
        </td>
    </tr>
    {% endfor %}

    <tr>
        <td>

            <span style="font-family: Arial, Helvetica, sans-serif; font-size:20px; line-height:24px; margin:0; color:#000; font-weight: normal; text-decoration: none; vertical-align: middle;">
                {% trans "reject.from" %}
                <a href="{{ who.url }}" style="display: inline-block;">
                    <img src="{{ who.avatar_url }}" alt="" width="24" height="24" style="display: inline-block; margin:0 7px 0 0; vertical-align: middle;"/></a><a href="{{ who.url }}" style="font-family: Arial, Helvetica, sans-serif; font-size:18px; line-height:24px; margin:0; color:#000; font-weight: normal; text-decoration: none;">{% if mail_template_language == 'ru'%}{{ who|inflate_name_gen|username }}{% else %}{{ who|username }}{% endif %}</a>.
            </span>

        </td>
    </tr>


    <tr>
        <td height="11"></td>
    </tr>


    <tr>
        <td>

            <p style="font-family: Arial, Helvetica, sans-serif; font-size:20px; line-height:24px; margin:0; color:#000; font-weight: normal; text-decoration: none; vertical-align: middle;">
                <a href="{{ who.url }}" style="font-family: Arial, Helvetica, sans-serif; font-size:18px; line-height:24px; margin:0; color:#000; font-weight: normal; text-decoration: none; vertical-align: middle;">{{ who|username }}</a>
                {% trans "reject.rejected_request" context who.get_gender_display %}.
            </p>

        </td>
    </tr>

    <tr>
        <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="50%" valign="top">
                        {% include "_common_links.html" %}
                    </td>
                    <td width="50%" valign="top"></td>
                </tr>
            </table>
        </td>
    </tr>

</table>
<td width="62"></td>

{% endblock %}
