<commit_before>{% extends "base.html" %}

{% block body_attrs %}id="video" class="v1 video_view"{% endblock %}
{% block html_attrs %}id="subtitle_view"{% endblock %}

{% load paginator widget comments i18n subtitles_tags teams_tags media_compressor videos_tags utils_tags %}

{% block css %}
    {{ block.super }}
    {% include_bundle "video_history" %}
{% endblock %}

{% block scripts %}
    {{ block.super }}
    {% include_bundle "unisubs-onsite-compiled" %}

    <script src="{% url videos:rpc_api %}" type="text/javascript"></script>
    {% with write_video_type_js as jsinclude %}{% if jsinclude %}{% write_video_type_js video %}{% endif %}{% endwith %}
    <script type="text/javascript">
        window.DIFFING_URL = '{% block diffing_link %}{% url videos:diffing 11111 22222 %}{% endblock %}';
        window.LANGUAGE_ID = '{{ language.id }}';
        window.SELECT_REVISIONS_TRANS = '{% trans "Select two revisions to compare, please" %}';
        window.TASK = '{% firstof task|default_if_none:""|escapejs '' %}';
        {% if task %}
            window.TASK_TEAM_VIDEO_ID = '{{ task.team_video.video.video_id }}';
            window.TASK_TEAM_VIDEO_URL = '{{ task.team_video.video.get_video_url }}';
        {% endif %}
        window.IS_AUTHENTICATED = '{{ user.is_authenticated }}' == 'True';
        window.ROLLBACK_ALLOWED = '{{ rollback_allowed }}' == 'True';
        {% if video.team_set.all.0 %}
            {% if video.team_set.all.0.is_private %}
                window.VIDEO_TEAM_NAME = 'Private';
            {% else %}
                window.VIDEO_TEAM_NAME = '{{ video.team_set.all.0 }}';
                window.VIDEO_TEAM_URL = '{{ video.team_set.all.0.get_absolute_url }}';
            {% endif %}
        {% endif %}
        {% if task.get_type_display == 'Translate' %}
            window.TASK_TRANSLATE_TO_LANGUAGE = '{{ task.language }}';
        {% endif %}
    </script>
{% endblock %}

{% block title %}
    {% if language.is_original %}
        "{{ language.get_title_display }}" {% trans "with" %} {{ language.get_language_display }} {% trans "subtitles" %} | Amara
    {% else %}
        "{{ language.get_title_display }}" {% trans "with" %} {% if language.is_dependent %}{% trans 'translated' %}{% endif %} {{ language.get_language_display }} {% trans "subtitles" %} | Amara
    {% endif %}
{% endblock %}

{% block opengraph-head %}
    {{block.super}}<commit_msg>Fix hidden Subtitle Me button on subtitle view.<commit_after>{% extends "base.html" %}

{% block body_attrs %}id="video" class="v1 video_view"{% endblock %}
{% block html_attrs %}id="subtitle_view"{% endblock %}

{% load paginator widget comments i18n subtitles_tags teams_tags media_compressor videos_tags utils_tags %}

{% block css %}
    {{ block.super }}
    {% include_bundle "video_history" %}
{% endblock %}

{% block scripts %}
    {{ block.super }}
    {% include_bundle "unisubs-onsite-compiled" %}

    <script src="{% url videos:rpc_api %}" type="text/javascript"></script>
    {% with write_video_type_js as jsinclude %}{% if jsinclude %}{% write_video_type_js video %}{% endif %}{% endwith %}
    <script type="text/javascript">
        window.DIFFING_URL = '{% block diffing_link %}{% url videos:diffing 11111 22222 %}{% endblock %}';
        window.LANGUAGE_ID = '{{ language.id }}';
        window.SELECT_REVISIONS_TRANS = '{% trans "Select two revisions to compare, please" %}';
        window.TASK = '{% firstof task|default_if_none:""|escapejs '' %}';
        {% if task %}
            window.TASK_TEAM_VIDEO_ID = '{{ task.team_video.video.video_id }}';
            window.TASK_TEAM_VIDEO_URL = '{{ task.team_video.video.get_video_url }}';
        {% endif %}
        window.IS_AUTHENTICATED = '{{ user.is_authenticated }}' == 'True';
        window.ROLLBACK_ALLOWED = '{{ rollback_allowed }}' == 'True';
        {% if video.team_set.all.0 %}
            {% if not video.team_set.all.0.is_visible %}
                window.VIDEO_TEAM_NAME = 'Private';
            {% else %}
                window.VIDEO_TEAM_NAME = '{{ video.team_set.all.0 }}';
                window.VIDEO_TEAM_URL = '{{ video.team_set.all.0.get_absolute_url }}';
            {% endif %}
            {% if video.team_set.all.0.get_workflow.requires_review_or_approval %}
                window.VIDEO_TEAM_WORKFLOW_ENABLED = true;
            {% else %}
                window.VIDEO_TEAM_WORKFLOW_ENABLED = false;
            {% endif %}
        {% endif %}
        {% if task.get_type_display == 'Translate' %}
            window.TASK_TRANSLATE_TO_LANGUAGE = '{{ task.language }}';
        {% endif %}
    </script>
{% endblock %}

{% block title %}
    {% if language.is_original %}
        "{{ language.get_title_display }}" {% trans "with" %} {{ language.get_language_display }} {% trans "subtitles" %} | Amara
    {% else %}
        "{{ language.get_title_display }}" {% trans "with" %} {% if language.is_dependent %}{% trans 'translated' %}{% endif %} {{ language.get_language_display }} {% trans "subtitles" %} | Amara
    {% endif %}
{% endblock %}

{% block opengraph-head %}
    {{block.super}}
{'fraction_non_alphanumeric': 0.16787605412826045, 'fraction_numerical': 0.006864090998234948, 'mean_word_length': 2.9443155452436196, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5198736', 'n_tokens_mistral': 1809, 'n_tokens_neox': 1626, 'n_words': 285}