{% load i18n ui %}{% comment %} One check's detail on Quality, wide beside the rail (#264, the Quality board), hidden unless it is the one shown. Top to bottom: the kicker (list, variable, count), the title and one sentence (what the check means and what to look at first), with "These values (CSV)" and "Show on the daily chart" (the selected value, with JavaScript) by the title; two charts with axes side by side, When (each value against its date across the record, the selected one ringed; its table view is the values table) and By calendar month (twelve bars, its table view one click away, shown without JavaScript), each with a read-out by pointer and keyboard (#283, js/chart-readout.js; a When dot picked selects its row in the values table, qc.js); then the values table and the selected value (stations/_qc_values.html). On a narrow screen the detail follows the rail: "Back to the list" returns to the check's row. Parameters: item (qc_review.Item), shown, entry (its page, value, when, months, selected_date), analysis, month_names. {% endcomment %}{% with check=item.check group=item.group when=entry.when months=entry.months value=entry.value %}

{% if group.wrong %}{% translate "Look wrong" %} {{ "·" }} {{ group.variable }} {{ "·" }} {% blocktranslate count counter=check.count with n=check.count|count trimmed %}{{ n }} row{% plural %}{{ n }} rows{% endblocktranslate %}{% else %}{% translate "Worth a look" %} {{ "·" }} {{ group.variable }} {{ "·" }} {% blocktranslate count counter=check.count with n=check.count|count trimmed %}{{ n }} value{% plural %}{{ n }} values{% endblocktranslate %}{% endif %}

{{ group.title }}

{% if group.mostly %}{% blocktranslate with mostly=group.mostly lede=group.lede trimmed %}{{ mostly }}. {{ lede }}{% endblocktranslate %}{% else %}{{ group.lede }}{% endif %}

{% if when %}
{% translate "When" %} {{ "·" }} {% blocktranslate with label=group.y_label trimmed %}{{ label }}, each value{% endblocktranslate %}
{% for tick in when.y_ticks %}{{ tick.text }}{% endfor %} {% for tick in when.x_ticks %}{{ tick.text }}{% endfor %} {% include "components/readout.html" with id=item.anchor|add:"-when" action="select" %}
{% endif %}
{% translate "By calendar month" %}
{% for tick in months.y_ticks %}{{ tick.text }}{% endfor %} {% for bar in months.bars %}{% if bar.n %}{% endif %}{{ bar.name }}{% endfor %} {% include "components/readout.html" with id=item.anchor|add:"-months" %}
{% for name in month_names %}{% endfor %}{% for n in group.by_month %}{% endfor %}
{% blocktranslate with title=group.title trimmed %}{{ title }} by calendar month{% endblocktranslate %}
{{ name }}
{% if n %}{{ n|count }}{% else %}{{ n|count }}{% endif %}
{% include "stations/_qc_values.html" with page=entry.page selected_date=entry.selected_date %}

{% translate "Back to the list" %}

{% endwith %}