_overview.html`, which
extends this template and fills its blocks. `{{ block.super }}` adds to a block and keeps what is
already there:
{% extends "sample/sample_overview.html" %}
{% block overview.badges %}{{ block.super }}…{% endblock %}
{% block overview.properties %}…{% endblock %}
Sample blocks in the wide column, in order: overview.properties (empty here, the block a type
fills first), overview.notes, overview.history, overview.measurements. In the facts column,
overview.location (the map) and overview.samples (related samples). Every other block is
listed in `overview/page.html`.
{% endcomment %}
{% block overview.badges %}
{% include "overview/includes/type_badge.html" with label=sample_type info=type_info id="about-sample-type" %}
{% if status.variant %}
{{ status.label }}
{% else %}
{% translate "Status unknown" %}
{% endif %}
{% endblock overview.badges %}
{% block overview.notices %}
{% if status.destroyed %}
{% translate "This specimen has been destroyed and can't be re-examined. Its record and measurements are kept." %}
{% endif %}
{% if not sample.dataset.data_is_public %}
{% translate "Only people with access to this dataset can see this sample until it is published." %}
{% endif %}
{% endblock overview.notices %}
{% block overview.figures %}
{% endblock overview.figures %}
{% block overview.main %}
{% block overview.properties %}{% endblock overview.properties %}
{% block overview.notes %}
{% if notes %}
{{ notes|safe_markdown }}
{% endif %}
{% endblock overview.notes %}
{% block overview.history %}
{% if can_manage %}
{% translate "Nothing is recorded about how this specimen was collected, prepared or stored. Those dates and notes are what lets someone else trust and reuse its measurements." as empty %}
{% else %}
{% translate "No history has been recorded for this specimen." as empty %}
{% endif %}
{% endblock overview.history %}
{% block overview.measurements %}
{% if measurements.total %}{{ measurements.total }}{% endif %}
{% if measurements.items %}
{% for entry in measurements.items %}
-
{{ entry.type }}
{% endfor %}
{% if measurements.more %}
{% blocktranslate count counter=measurements.more %}and {{ counter }} more{% plural %}and {{ counter }} more{% endblocktranslate %}
{% translate "All measurements" as label %}{% translate "Every measurement made on this sample, as a table." as reason %}
{% endif %}
{% else %}
{% translate "No measurements have been made on this sample yet." %}
{% endif %}
{% endblock overview.measurements %}
{% endblock overview.main %}
{% block overview.record_facts %}
{% block overview.location %}
{% endblock overview.location %}
{% block overview.samples %}
{{ relations.items|length }}
{% if relations.items %}
{% for entry in relations.items %}
-
{% if entry.sample.image %}
{% else %}
{% endif %}
{% endfor %}
{% endif %}
{% if relations.hidden %}
{% blocktranslate count counter=relations.hidden %}{{ counter }} related sample belongs to a dataset that hasn't been published yet.{% plural %}{{ counter }} related samples belong to datasets that haven't been published yet.{% endblocktranslate %}
{% endif %}
{% if not relations.items and not relations.hidden %}
{% translate "No related samples have been recorded." %}
{% endif %}
{% endblock overview.samples %}
{% endblock overview.record_facts %}
{% block extra_js %}
{{ block.super }}
{% if location %}{% include "overview/includes/map_library.html" %}{% endif %}
{% endblock extra_js %}