{# -*- coding: utf-8 -*-

  This file is part of Invenio.
  Copyright (C) 2026 CERN.

  Invenio is free software; you can redistribute it and/or modify it
  under the terms of the MIT License; see LICENSE file for more details.
#}

{%- extends "invenio_previewer/base.html" %}

{%- block head %}
  {% for css_bundle in css_bundles %}
    {{ webpack[css_bundle] }}
  {% endfor %}
  {{ webpack['theme.css'] }}
{%- endblock %}

{%- block page_body %}
  {%- if request.args.get('embed') %}
    {%- include 'invenio_previewer/top.html' %}
  {%- endif %}
  {%- if not file.is_iframe %}
    {%- include "invenio_previewer/latest_record.html" %}
  {%- endif %}
  {%- block panel %}{% endblock %}
  {%- if request.args.get('embed') %}
    {%- include 'invenio_previewer/bottom.html' %}
  {%- endif %}
{%- endblock %}
