{# fortunaisk/templates/fortunaisk/lottery.html #} {% extends "fortunaisk/base.html" %} {% load i18n l10n humanize my_filters static %} {% block page_title %} {% trans "Lotteries" %} {% endblock page_title %} {% block details %} {# Full screen container for clovers #}

{% trans "Fortune Lotteries" %}

{% trans "Unlock your luck! Pick your tickets and seize the opportunity to win big prizes." %}

{% if active_lotteries %}
{% for info in active_lotteries %}
{{ info.lottery.lottery_reference }}
  • {% trans "Starts:" %} {{ info.lottery.start_date|date:"Y-m-d H:i" }}
  • {% trans "Ends:" %} {{ info.lottery.end_date|date:"Y-m-d H:i" }}
  • {% trans "Price:" %} {% localize on %}{{ info.lottery.ticket_price|floatformat:2|intcomma }}{% endlocalize %} ISK
  • {% trans "Receiver:" %} {{ info.corporation_name }}
  • {% trans "Winners:" %} {{ info.lottery.winner_count }}
{% if info.max_tickets_per_user %}
{{ info.user_ticket_count }}/{{ info.max_tickets_per_user }}
{% else %}
{{ info.user_ticket_count }} / ♾️
{% endif %}
{% if info.remaining_tickets == 0 %}
{% trans "Maximum tickets reached" %}
{% else %}
{% trans "Ticket(s)" %}
{% if info.remaining_tickets == 1 %} {% trans "Remaining 1 ticket available" %} {% else %} {% blocktrans with rem=info.remaining_tickets %} Remaining {{ rem }} tickets available {% endblocktrans %} {% endif %} {% endif %}
{% trans "Total Amount:" %} ISK
{% endfor %}
{% else %}
{% trans "No active lotteries available." %}
{% endif %}
{# Scripts for copying and total calculation #} {# Load JS for explosion & falling animation #} {% endblock details %}