{% extends "base.html" %} {% block content %}
| Dataset | Latest Version | Status | Contract | Drafts | Actions |
|---|---|---|---|---|---|
| {{ entry.dataset_name }} | {% if entry.latest_version %} {{ entry.latest_version }} {% else %} No versions {% endif %} |
{% if entry.latest_status %}
{{ entry.latest_status_label }}
{% if entry.latest_record_reason %}
{{ entry.latest_record_reason }}
{% endif %}
{% else %}
No runs
{% endif %}
|
{% if entry.contract_summaries %}
{% for contract in entry.contract_summaries %}
Status: {{ contract.latest_status_label }}
{% if contract.other_versions %}
Other versions: {{ contract.other_versions | join(', ') }}
{% endif %}
{% endfor %}
{% else %}
No contract
{% endif %}
|
{% set draft_details = [] %}
{% for contract in entry.contract_summaries %}
{% if contract.drafts_count %}
{% set draft_label = contract.drafts_count ~ ' draft' ~ ('s' if contract.drafts_count != 1 else '') %}
{% if contract.latest_draft_version %}
{% set draft_label = draft_label ~ ' (latest ' ~ contract.latest_draft_version ~ ')' %}
{% endif %}
{% set _ = draft_details.append(contract.id ~ ': ' ~ draft_label) %}
{% endif %}
{% endfor %}
{% if entry.run_drafts_count %}
{% set label = entry.run_drafts_count ~ ' draft run' ~ ('s' if entry.run_drafts_count != 1 else '') %}
{% if entry.run_latest_draft_version %}
{% set label = label ~ ' (latest ' ~ entry.run_latest_draft_version ~ ')' %}
{% endif %}
{% set _ = draft_details.append('Runs: ' ~ label) %}
{% endif %}
{% if draft_details %}
{% for line in draft_details %}
{% else %}
None
{% endif %}
{{ line }} {% endfor %} |
View versions
{% if entry.contract_summaries %}
{% set editable_contracts = entry.contract_summaries | selectattr('latest_version') | list %}
{% if editable_contracts | length == 1 %}
{% set target = editable_contracts[0] %}
Open editor
{% elif editable_contracts %}
|
No datasets recorded yet.
{% endif %} {% endblock %}