{% extends "base_for_react.html" %}
{% load render_bundle from webpack_loader %}

{% block extra_style %}
{% render_bundle 'fileHistoryOld' 'css'%}
{% endblock %}

{% block extra_script %}
    <script type="text/javascript">
    window.app.config.lang = '{{LANGUAGE_CODE}}';
    window.fileHistory = {
        pageOptions: {
            repoID: '{{ repo.id }}',
            repoName: '{{ repo.name }}',
            filePath: '{{ path|escapejs }}',
            fileName: '{{ u_filename|escapejs }}',
            domain: '{{ domain }}',
            protocol: '{{ protocol }}',
            can_download_file: {% if can_download_file %} true {% else %} false {% endif %},
            use_new_api: {% if use_new_api %} true {% else %} false {% endif %},
            can_compare: {% if can_compare %} true {% else %} false {% endif %},
        }
    }
    </script>
    {% render_bundle 'fileHistoryOld' 'js'%}
{% endblock %}
