{% extends "base.html" %} {% import "macros.html" as macros %} {% macro request_header(attr, title, class=None) -%} {{ title }} {% if attr != None and attr in filters.get('sort', 'submit_timestamp') %} {% if filters.get('sort', 'submit_timestamp')[0] == '-' %} {% else %} {% endif %} {% else %} {% endif %} {%- endmacro %} {% macro request_cell(attr, content, filterable=True) -%} {% if (filterable == None and attr not in ['id', 'submit_timestamp', 'payout']) or filterable == True %} {{ content }} {% else %} {{ content }} {% endif %} {%- endmacro %} {% block head %} {{ super() }} {% endblock head %} {% block content %}
{# TRANS: This is a label for a text box that allow people to search for requests meeting certain criteria, like what system the loss occured in, what ship type it was, who the pilot was, or what corporation they're in. #} {% trans %}Filters{% endtrans %}
{% block table %} {% block table_headers %} {# TRANS: A table column header for the ID number of a request. #} {{ request_header("id", gettext("Request ID")) }} {# TRANS: A table column header for the pilot of a request. #} {{ request_header("pilot", gettext("Pilot")) }} {# TRANS: A table column header for the ship from a request. #} {{ request_header("ship", gettext("Ship")) }} {# TRANS: A table column header for the pilot of a request. #} {{ request_header("system", gettext("System")) }} {# TRANS: A table column header for the status of a request (like evaluating, incomplete, approved, rejected). #} {{ request_header("status", gettext("Status")) }} {# TRANS: A table column header for the current payout of a request. #} {{ request_header("payout", gettext("Payout")) }} {# TRANS: A table column header for the date and time a request was submitted. #} {{ request_header("submit_timestamp", gettext("Submit Time")) }} {# TRANS: A table column header for the of the division a request was submitted to. #} {{ request_header("division", gettext("Division")) }} {% endblock table_headers %} {% for request in pager.items %} {% block table_row scoped %} {{ request_cell('pilot', request.pilot.name) }} {{ request_cell('ship', request.ship_type) }} {{ request_cell('system', request.system) }} {{ request_cell('status', request.status) }} {{ request_cell('payout', request.payout|currencyfmt, False) }} {{ request_cell('submit_timestamp', request.timestamp|datetimeformat(format='short'), False) }} {{ request_cell('division', request.division.name) }} {% endblock table_row %} {% endfor %}
{{ request.id }}
{% endblock table %} {% block pagination %}
{% if pager.pages > 1 %}
    {% else %}

    {# TRANS: A small line showing how many total requests there are. #} {{ ngettext('%(num)s request', '%(num)s requests', pager.total)|format(num=(pager.total|numberfmt)) }} • {{ total_payouts|currencyfmt }} ISK

{% endblock pagination %}
{% endblock content %}