{% extends "measurement/measurement_overview.html" %}
{% load 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 %}
{% if measurement.detection_limit_ppm is not None %}
Detection limit {{ measurement.detection_limit_ppm|floatformat:"-2"|intcomma }} ppm
{% if measurement.concentration_ppm <= measurement.detection_limit_ppm %}
At or below the detection limit
{% endif %}
{% endif %}
{% if measurement.instrument_model %}{{ measurement.instrument_model }}{% endif %}
{% endblock overview.result %}
{% block overview.properties %}
{% endblock overview.properties %}