{% extends "overview/page.html" %} {% load i18n humanize fairdm thumbnail %} {% comment %} The sample's own page, drawn from the base Sample model alone. A physical sample is understood through what it is, where it came from and its history: collected, prepared, stored, perhaps destroyed. The header says what it is and where it is now. The wide column gives the type's own properties, the notes, the history and what was measured on it. Beside it: how to cite it, where it was taken, its facts, its related samples and its people. The context is gathered by the sample `Overview` plugin. A sample type adds its own content by providing `/_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, in order: overview.cite, overview.location (the map), overview.details, overview.samples (related samples), overview.people. Every other block is listed in `overview/page.html`. {% endcomment %} {% block overview.badges %} {% include "overview/includes/type_badge.html" with kind="sample" 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.facts %}
  • {% translate "Dataset" %}{{ sample.dataset }}
  • {% if sample.local_id %}
  • {% translate "Local ID" %}{{ sample.local_id }}
  • {% endif %} {% if primary_identifier %}
  • {{ primary_identifier.type }}{{ primary_identifier.value }}
  • {% endif %} {% if location %}
  • {% translate "Taken at" %}{{ location.y|floatformat:4 }}, {{ location.x|floatformat:4 }}
  • {% endif %} {% endblock overview.facts %} {% 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.items %} {% if measurement_types|length > 1 %}
    {% for row in measurement_types %} {% endfor %}
    {% endif %} {% if measurements.more %} {% blocktranslate count counter=measurements.more %}and {{ counter }} more{% plural %}and {{ counter }} more{% endblocktranslate %} {% endif %} {% else %}

    {% translate "No measurements have been made on this sample yet." %}

    {% endif %}
    {% endblock overview.measurements %} {% endblock overview.main %} {% block overview.side %} {% block overview.cite %}{{ block.super }}{% endblock overview.cite %} {% block overview.location %} {% endblock overview.location %} {% block overview.details %}{{ block.super }}{% endblock overview.details %} {% block overview.samples %} {% if relations.items %}
      {% for entry in relations.items %}
    • {{ entry.sample }}
      {{ entry.relation }} {% if entry.elsewhere %}{% translate "in" %} {{ entry.sample.dataset }}{% 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 %} {% block overview.people %}{{ block.super }}{% endblock overview.people %} {% endblock overview.side %}