{% extends 'allianceauth_pve/base.html' %} {% load evelinks %} {% load humanize %} {% load django_bootstrap5 %} {% load i18n %} {% block page_title %}{% translate "Rotation" %} {{ rotation.name }}{% endblock page_title %} {% block extra_css %} {% include "bundles/datatables-css-bs5.html" %} {% if rotation.is_closed %} {% endif %} {% endblock extra_css %} {% block pvecontent %}

{{ rotation.name }}

{% if rotation.is_closed %} {% translate "Status" %} {% else %} {% translate "Age" %} {% endif %}
{% if rotation.is_closed %} {% translate "Closed" %} {% else %} {{ rotation.days_since }} {% translate "days" %} {% endif %}
{% translate "Estimated Total" %}
{{ rotation.estimated_total|floatformat:"g" }}
{% if rotation.is_closed %}
{% translate "Actual Total" %}
{{ rotation.actual_total|floatformat:"g" }}
{% endif %}
{% translate "Tax Rate" %}
{{ rotation.tax_rate|floatformat }} %
{% for summary in summaries %}
{% if rotation.is_closed %} {% else %} {% endif %} {% for row in summary %} {% if rotation.is_closed %} {% endif %} {% if rotation.is_closed %} {% endif %} {% endfor %}
{% translate "Character" %} {% translate "Setups" %}{% translate "Actual Total" %} {% translate "Estimated Total" %} {% translate "Total" %}
{{ row.character_name }} {{ row.helped_setups }}{{ row.actual_total|floatformat:0|intcomma }}{{ row.estimated_total|floatformat:0|intcomma }}
{% endfor %}
{% for prj, summaries in projects_summaries.items %}

{% blocktranslate with name=prj.name %} Contributions to {{ name }} {% endblocktranslate %}

{% for summary in summaries %}
{% if rotation.is_closed %} {% else %} {% endif %} {% for row in summary %} {% if rotation.is_closed %} {% endif %} {% endfor %}
{% translate "Character" %}{% translate "Actual Total" %} {% translate "Estimated Total" %}{% translate "Total" %}
{{ row.character_name }} {{ row.actual_total|floatformat:"g" }}{{ row.estimated_total|floatformat:"g" }}
{% endfor %}
{% endfor %}
{% translate "Entries" %}
{% for entry in entries %} {% endfor %}
{% translate "Date" %} {% translate "User Count" %} {% translate "Share Count" %} {% translate "Total After Tax" %} {% translate "Total" %} {% translate "Created By" %}
{{ entry.created_at|date:"d/m/Y G:i e" }} {{ entry.total_user_count }} {{ entry.total_site_count }} {{ entry.estimated_total_after_tax|floatformat:"g" }} {{ entry.estimated_total|intcomma }} {{ entry.created_by.profile.main_character.character_name }}
{% if perms.allianceauth_pve.manage_entries and not rotation.is_closed %} {% endif %}
{% if perms.allianceauth_pve.manage_rotations and not rotation.is_closed %} {% endif %} {% translate "Back" %}
{% if perms.allianceauth_pve.manage_rotations and not rotation.is_closed %} {% endif %} {% endblock pvecontent %} {% block extra_javascript %} {% include "bundles/datatables-js-bs5.html" %} {% if rotation.is_closed %} {% endif %} {% endblock extra_javascript %} {% block extra_script %} $(document).ready(function() { $('[data-bs-toggle="tooltip"]').tooltip(); $('#entries_table').DataTable({ columnDefs: [ { targets: [0, 1, 2, 3, 4, 6], searchable: false } ], paging: true, ordering: false, }); }); {% endblock extra_script %}