{% extends "base.html" %} {% import "macros.html" as macros with context %} {% block head %} {{ super() }} {% endblock head %} {% macro modifier_value(modifier) %} {% if modifier._type == 'AbsoluteModifier' %} {% with value = modifier.value / 1000000 %} {% if modifier.value >= 0 %} {# TRANS: How a flat ISK bonus is written as text. The %(amount)s is special, it will be replaced with the bonus amount (in millions of ISK) #} {{ gettext("%(amount)sM ISK bonus", amount=(value|numberfmt)) }} {% else %} {# TRANS: How a flat ISK penalty is written as text. The %(amount)s is special, it will be replaced with the penalty amount (in millions of ISK). #} {{ gettext("%(amount)sM ISK penalty", amount=(value|numberfmt)) }} {% endif %} {% endwith %} {% elif modifier._type == 'RelativeModifier' %} {% if modifier.value >= 0 %} {# TRANS: How a percentage bonus is written as text. The %(amount)s is special, it will be replaced with the amount as a percentage, formatted according to the current locale. #} {{ gettext("%(amount)s bonus", amount=(modifier.value|percentfmt)) }} {% else %} {# TRANS: How a percentage penalty is written as text. The %(amount)s is special, it will be replaced with the amount as a percentage, formatted according to the current locale. #} {{ gettext("%(amount)s penalty", amount=(modifier.value|percentfmt)) }} {% endif %} {% endif %} {% endmacro %} {% block body %} {{ super() }} {% endblock body %} {% block content %}
{% block left_col %}
{% block info %}
{% trans %}External Lossmail{% endtrans %}
{{ srp_request.id }}
{# TRANS: The date and time that the loss this request concerns occured. #}
{% trans %}Time of Loss{% endtrans %}
{{ srp_request.kill_timestamp|datetimeformat }}
{% trans %}Division{% endtrans %}
{{ srp_request.transformed.division }} • {# TRANS: A button that when clicked begins the process of transferring a request from one division to another. #} {% trans %}Change Division{% endtrans %}
{% trans %}Details{% endtrans %}

{{ srp_request.details|urlize(30) }}

{% if not srp_request.finalized and srp_request.submitter == current_user %} {# TRANS: A button that when clicked begins the process of updating the supporting details of a request. #} {% endif %}
{% trans %}Pilot{% endtrans %}
{{ srp_request.transformed.pilot }}
{# TRANS: The corporation a pilot was in when the loss occured. #}
{% trans %}Corporation{% endtrans %}
{{ srp_request.transformed.corporation }}
{# TRANS: The alliance a pilot was in when the loss occured. #}
{% trans %}Alliance{% endtrans %}
{{ srp_request.transformed.alliance|default(' ') }} {# TRANS: The solar system, constellation and region a loss occured in. #}
{% trans %}Location{% endtrans %}
{{ srp_request.transformed.region }} / {{ srp_request.transformed.constellation }} / {{ srp_request.transformed.system }}
{% trans %}Ship{% endtrans %}
{{ srp_request.transformed.ship_type }}
{# TRANS: The status a request is in. Possiblities include Unevaluated, Approved, Rejected, Paid and Incomplete. #}
{% trans %}Status{% endtrans %}
{{ srp_request.transformed.status }}
{# TRANS: The payout an evaluated request has been. This number includes all modifiers (bonuses and penalties). #}
{% trans %}Payout{% endtrans %}
{# TRANS: The base payout assigned to a request as part of the evaluation process. This is without any modifiers (bonuses or penalties). This text is shown as a tooltip when the mouse is moved over the total payout number. #} {{ srp_request.payout|currencyfmt }}
{% endblock info %}
{% if current_user.has_permission((PermissionType.review, PermissionType.pay), srp_request) or current_user == srp_request.submitter %}
{{ action_form.id_ }} {{ action_form.type_ }} {{ action_form.csrf_token }}
{{ action_form.note(class="form-control") }}
{# TRANS: This is a button that will add a comment to a request when clicked. #} {% for action in srp_request.valid_actions(current_user) %} {% if loop.first %} {% endif %} {% endfor %}
{% endif %} {% block action_list %}
{% for action in srp_request.actions %} {% with %} {% set item_class = 'text-' ~ macros.status_color(action.type_) if macros.status_color(action.type_) != '' %}

{{ gettext(action.type_|string) if action.type_ != ActionType.comment }}

{{ action.note|urlize(30) }}

{{ action.user.name }} ({{ action.timestamp|datetimeformat }})
{% endwith %} {% endfor %}
{% endblock action_list %} {% endblock left_col %}
{% block right_col %}
{% trans %}Modifiers{% endtrans %}
{% block list_modifiers %}
{% for modifier in srp_request.modifiers %} {% if modifier.voided %}
{% elif modifier.value < 0 %}
{% elif modifier.value >= 0 %}
{% endif %}
{% block modifier_header scoped %} {{ ''|safe if modifier.voided }}

{{ modifier_value(modifier) }}

{{ '
'|safe if modifier.voided }} {% endblock modifier_header %}
{% if modifier.voided %}
{# TRANS: Modifiers cannot be completely removed, but they can be ignored, or voided out. When voided, they get an extra piece of text saying who voided them and when the modifier was voided. #} {{ modifier.note ~ '' if modifier.note }} ({{ gettext('voided by %(voided_name)s at %(voided_timestamp)s', voided_name=modifier.voided_user.name, voided_timestamp=(modifier.voided_timestamp|datetimeformat(format='short'))) }})
{% else %} {% if modifier.note %}
{{ modifier.note }}
{% endif %} {% endif %}
{% endfor %}
{% endblock list_modifiers %}
{% endblock right_col %}
{% endblock content %}