{% extends "measurement/measurement_overview.html" %} {% load i18n humanize %} {% comment %} A measurement type adding its own content to the generic measurement page. XRF records its result as an element and a concentration rather than a single `value`, so the generic result block has nothing to show; this template fills it. It also adds the element to the header badges, keeping the generic ones with `block.super`. {% endcomment %} {% block overview.badges %} {{ block.super }} {{ measurement.element }} {% endblock overview.badges %} {% block overview.result %}

{% translate "Concentration" %}

{{ measurement.concentration_ppm|floatformat:"-2"|intcomma }} {% translate "ppm" %} {{ measurement.element }}

{% if measurement.detection_limit_ppm is not None %}

{% blocktranslate with limit=measurement.detection_limit_ppm|floatformat:"-2"|intcomma %}Detection limit {{ limit }} ppm{% endblocktranslate %} {% if measurement.concentration_ppm <= measurement.detection_limit_ppm %} {% translate "At or below the detection limit" %} {% endif %}

{% endif %}
{% endblock overview.result %} {% block overview.properties %}
{% if measurement.measurement_conditions %} {% endif %}
{% endblock overview.properties %}