{% extends "base.html" %} {% from "components/concept.html" import new_concept, current_version_action with context %} {% from "components.html" import feedback, status_badge %} {% from "components/side_panel.html" import form_side_panel %} {% from "layouts/page.html" import page_context %} {% block title %}Versions · {{ dataset.name }} · REFRNCR{% endblock %} {% block content %} {{ feedback(notice, kind='success') }} {% if history.entries or history.concept %}
{% for label in ['Version', 'Status', 'Effective from (UTC)', 'Effective until (UTC)', 'Publication date', 'Published by', 'Release note', 'Actions'] %}{% endfor %}{% if history.concept %}{% include 'pages/datasets/concepts/_version_row.html' %}{% endif %}{% for state in history.entries %}{% set version = state.version %} {% endfor %}
Dataset versions, newest version first
{{ label }}{% if label == 'Publication date' %} (UTC){% endif %}
{% if state.status != 'Cancelled' %}Version {{ version.number }}{% else %}Version {{ version.number }}{% endif %}{% if mapping_history_sources and mapping_history_sources.get(version.id) %}Source: {{ mapping_history_sources[version.id].name }} V{{ mapping_history_sources[version.id].number }}{% endif %} {{ status_badge(state.status) }} {% if state.end_date %}{% else %}—{% endif %} {{ 'System' if version.system_published else history.publisher_names.get(version.publisher_id, 'Deleted user') }} {{ version.release_note or '—' }} {% if state.status == 'Scheduled' and history.may_maintain %}Cancel version{% else %}—{% endif %}
{% else %}

No published versions yet

Prepare the draft and publish its first version.

{% endif %} {% if history.may_maintain %}{{ form_side_panel('version-panel') }}{% endif %} {% endblock %} {% block scripts %}{% endblock %}