<commit_before>{% extends "app_manager/managed_app.html" %}
{% load xforms_extras %}
{% load url_extras %}
{% load timezone_tags %}
{% load hq_shared_tags %}
{% load timezone_tags %}
{% load i18n %}
{% block js %}{{ block.super }}
    <script src="{% static 'style/lib/knockout_plugins/knockout_mapping.ko.min.js' %}"></script>
    <script src="{% static 'style/ko/knockout_bindings.ko.js' %}"></script>
    <script src="{% static 'app_manager/js/app_manager_utils.js' %}"></script>
    <script src="{% static 'app_manager/js/releases.js' %}"></script>
{% endblock %}
{% block js-inline %}{{ block.super }}
<script>
    $(function () {
       $('.hq-help-template').each(function () {
            COMMCAREHQ.transformHelpTemplate($(this), true);
       });
    });
    $(function () {
        // init releases
        {# The '___' in these urls will later be replaced by an app's _id ReleasesMain's url function #}
        var urls = {
            fetch: '{% url "paginate_releases" domain app.id %}',
            delete: '{% url "corehq.apps.app_manager.views.delete_copy" domain app.id %}',
            cloudcare: '{% url "cloudcare_get_app" domain '___' %}',
            compare: 'diff/___/___',
            jad: '{% url "corehq.apps.app_manager.views.download_jad" domain '___' %}',
            jar: '{% url "corehq.apps.app_manager.views.download_jar" domain '___' %}',
            ccz: '{% url "download_ccz" domain '___' %}',
            odk: '{% url "odk_install" domain '___' %}',
            odk_media: '{% url "odk_media_install" domain '___' %}',
            source: '{% url "download_index" domain '___' %}',
            summary: '{% url "app_summary" domain '___' %}',
            release: '{% url "release_build" domain app.id '___' %}',
            newBuild: '{% url "corehq.apps.app_manager.views.save_copy" domain app.id %}',
            revertBuild: '{% url "corehq.apps.app_manager.views.revert_to_copy" domain app.id %}',
            currentVersion: '{% url "corehq.apps.app_manager.views.current_app_version" domain app.id %}',
            update_build_comment: '{% url "update_build_comment" domain app.id %}',
        };
        var o = {
            urls: urls,
            currentAppVersion: {% if app.version %}{{ app.version }}{% else %}-1{% endif %},
            recipient_contacts: {{ sms_contacts|JSON }}
        };
        var el = $('#releases-table');
        ko.applyBindings(new ReleasesMain(o), el.get(0));
        el.show();
    });

    analytics.workflow('Visited the Release Manager');
</script>
<script>
    function track_deploy_type(type) {
        ga_track_event('App Manager', 'Deploy Type', type);
    }
    // TODO: update analytics?
    $(function () {
        gaTrackLink('a.view-source-files-link', 'App Manager', 'Deploy Type', 'View Source Files');
    });
</script>
{% endblock %}

{% block title %}{{ app.name|html_name }}{% endblock %}

{% block head %}{{ block.super }}
<style>
    .build:hover {
        color: black !important;
    }
    .build.build-unreleased {
        color: #888;
    }
    .build.build-latest-release {
        background-color: #EFEFFF;
    }
    .build.build-latest-release .build-is-released:after{<commit_msg>update url<commit_after>{% extends "app_manager/managed_app.html" %}
{% load xforms_extras %}
{% load url_extras %}
{% load timezone_tags %}
{% load hq_shared_tags %}
{% load timezone_tags %}
{% load i18n %}
{% block js %}{{ block.super }}
    <script src="{% static 'style/lib/knockout_plugins/knockout_mapping.ko.min.js' %}"></script>
    <script src="{% static 'style/ko/knockout_bindings.ko.js' %}"></script>
    <script src="{% static 'app_manager/js/app_manager_utils.js' %}"></script>
    <script src="{% static 'app_manager/js/releases.js' %}"></script>
{% endblock %}
{% block js-inline %}{{ block.super }}
<script>
    $(function () {
       $('.hq-help-template').each(function () {
            COMMCAREHQ.transformHelpTemplate($(this), true);
       });
    });
    $(function () {
        // init releases
        {# The '___' in these urls will later be replaced by an app's _id ReleasesMain's url function #}
        var urls = {
            fetch: '{% url "paginate_releases" domain app.id %}',
            delete: '{% url "corehq.apps.app_manager.views.delete_copy" domain app.id %}',
            cloudcare: '{% url "cloudcare_get_app" domain '___' %}',
            compare: '{% url "diff" domain '___' '___' %}',
            jad: '{% url "corehq.apps.app_manager.views.download_jad" domain '___' %}',
            jar: '{% url "corehq.apps.app_manager.views.download_jar" domain '___' %}',
            ccz: '{% url "download_ccz" domain '___' %}',
            odk: '{% url "odk_install" domain '___' %}',
            odk_media: '{% url "odk_media_install" domain '___' %}',
            source: '{% url "download_index" domain '___' %}',
            summary: '{% url "app_summary" domain '___' %}',
            release: '{% url "release_build" domain app.id '___' %}',
            newBuild: '{% url "corehq.apps.app_manager.views.save_copy" domain app.id %}',
            revertBuild: '{% url "corehq.apps.app_manager.views.revert_to_copy" domain app.id %}',
            currentVersion: '{% url "corehq.apps.app_manager.views.current_app_version" domain app.id %}',
            update_build_comment: '{% url "update_build_comment" domain app.id %}',
        };
        var o = {
            urls: urls,
            currentAppVersion: {% if app.version %}{{ app.version }}{% else %}-1{% endif %},
            recipient_contacts: {{ sms_contacts|JSON }}
        };
        var el = $('#releases-table');
        ko.applyBindings(new ReleasesMain(o), el.get(0));
        el.show();
    });

    analytics.workflow('Visited the Release Manager');
</script>
<script>
    function track_deploy_type(type) {
        ga_track_event('App Manager', 'Deploy Type', type);
    }
    $(function () {
        gaTrackLink('a.view-source-files-link', 'App Manager', 'Deploy Type', 'View Source Files');
    });
</script>
{% endblock %}

{% block title %}{{ app.name|html_name }}{% endblock %}

{% block head %}{{ block.super }}
<style>
    .build:hover {
        color: black !important;
    }
    .build.build-unreleased {
        color: #888;
    }
    .build.build-latest-release {
        background-color: #EFEFFF;
    }
    .build.build-latest-release .build-is-released:after{
{'fraction_non_alphanumeric': 0.17845381840991062, 'fraction_numerical': 0.0021953896816684962, 'mean_word_length': 2.712456344586729, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '978638', 'n_tokens_mistral': 2170, 'n_tokens_neox': 2061, 'n_words': 405}