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

{% block extra_style %}
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}sdoc-editor/sdoc-editor-font.css" />
{% render_bundle 'sdocFileHistory' '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 }}',
            docUuid: '{{ file_uuid }}',
            domain: '{{ domain }}',
            protocol: '{{ protocol }}',
            assetsUrl: '{{ assets_url }}',
            seadocAccessToken: '{{ seadoc_access_token }}',
            seadocServerUrl: '{{ seadoc_server_url }}',
        }
    }
    </script>
    {% render_bundle 'sdocFileHistory' 'js'%}
{% endblock %}
