{% extends 'django_spire/container/container.html' %} {% block container_title %} {{ entry.name }} {% endblock %} {% block container_button %}
{% if AuthController.knowledge.can_change %}
{% url 'django_spire:knowledge:entry:version:form:update' pk=entry.current_version_id as entry_edit_url %} {% include 'django_spire/button/primary_button.html' with button_text='Edit' button_class='btn-md' button_href=entry_edit_url %}
{% endif %}
{% if not entry.current_version.is_published and AuthController.knowledge.can_change %} {% include 'django_spire/knowledge/entry/modal/publish_confirm_modal.html' %} {% else %} {% include 'django_spire/knowledge/entry/badge/entry_status_badge.html' with status=entry.current_version.status %} {% endif %}
{% endblock %} {% block container_content %}
{% for version_block in version_blocks %}
{% include version_block.block.detail_template with value=version_block.block.value %}
{% empty %}
No information...
{% endfor %}
{% endblock %}