{# il2ks-template: templates/admin/il2ks_achievements.html v1 - copy this line along when you override #} {% extends "admin/base_site.html" %} {% load i18n %} {% block breadcrumbs %} {% endblock %} {% block content %}

{% translate "Achievements are the medals, ribbons and hall-of-shame entries pilots earn. They are all on by default with the built-in names and thresholds. Here you can switch one off, give it your own name and description per language, or change the number each tier needs." %}

{% blocktranslate %}Names, descriptions and the on/off switch apply to the pages at once. An achievement that is switched off disappears from profiles, sortie pages, the overview, the holder lists, the home feed and the rarity figures. Your own texts are plain text (no HTML), at most {{ max_name }} characters for a name and {{ max_description }} for a description; leave a language blank to show the built-in text translated into it.{% endblocktranslate %}

{% translate "Thresholds are different: who holds which tier is worked out when sorties are ingested. After you change a threshold, or switch an achievement back on, the site recomputes every pilot's achievements in the background (the watch process does it within a minute or so, or the next rebuild-aggregates does). Until then the pages keep showing the old thresholds, and afterwards the holders, the dates and the rarity percentages change. Every tier needs a number: increasing, whole numbers, as many tiers as the built-in achievement has." %}

{% if pending %}

{% translate "A recompute is pending: the saved thresholds or switches are not applied to the pilots' achievements yet. It runs on its own as soon as the watch process is free (the site shows the old thresholds until then)." %}

{% else %}

{% translate "No recompute is pending: the pilots' achievements match the saved thresholds and switches." %}

{% endif %}
{% csrf_token %} {% for row in rows %}

{{ row.title }}{% if row.customised %} ({% translate "changed" %}){% endif %}

{{ row.default_description }}
{% for value in row.thresholds %} {% endfor %}
{% blocktranslate with values=row.default_thresholds|join:", " %}Built-in: {{ values }}. Leave all blank to use them.{% endblocktranslate %}{% if row.changes_rows %} {% translate "Differs from what the pilots' achievements were computed with: a recompute is pending." %}{% endif %}{% if row.all_time_thresholds %} {% blocktranslate with factor=row.all_time_factor values=row.all_time_thresholds|join:", " %}These are the tiers in one tour. The all-time view sums the tours and asks {{ factor }} times as much: {{ values }}.{% endblocktranslate %}{% endif %}{% if row.all_time_only %} {% translate "This achievement exists in the all-time view only (there is no tour view of it)." %}{% endif %}
{% if row.tour_texts %}{% translate "Own career name and description per language" %}{% else %}{% translate "Own name and description per language" %}{% endif %} {% if row.tour_texts %}

{% blocktranslate with title=row.title %}These are the words of the all-time (career) medal, built in as "{{ title }}". The one-tour medal has its own words below.{% endblocktranslate %}

{% endif %} {% for t in row.texts %}
{% endfor %}
{% if row.tour_texts %}
{% translate "Own one-tour name and description per language" %}

{% blocktranslate with title=row.tour_title description=row.tour_default_description %}These are the words of the medal in a tour, built in as "{{ title }}": {{ description }}{% endblocktranslate %}

{% for t in row.tour_texts %}
{% endfor %}
{% endif %}
{% translate "Tick and save: this achievement goes back to switched on, with the built-in words and thresholds, whatever is typed above." %}
{% endfor %}
{% endblock %}