<commit_before>{% extends "core.twig" %}

{% block content %}

<div class="row create-nav">
    {% for step in steps %}
        {% if createstep > step.index or createstep != step.index and chart.lastEditStep >= step.index %}
            <a href="{{ step.id }}" class="span3{% if createstep == step.index %} active{% else %}{% if createstep > step.index %} passed{% endif %}{% endif %}">
                <span class="step">{{ step.index }}</span>
                <span class="title">{{ step.title }}</span>
                <i class="icon-ok"></i>
                 <div class="corner"></div>
            </a>
        {% else %}
            <div class="span3{% if createstep == step.index %} active{% else %}{% if createstep > step.index %} passed{% else %} unseen{% endif %}{% endif %}">
                <span class="step">{{ step.index }}</span>
                {{ step.title }}
                <div class="corner"></div>
            </div>
        {% endif %}


        
    {% endfor %}
</div>

<script type="text/javascript">

(function($) {

    _.templateSettings = {
        interpolate : /\{\{(.+?)\}\}/g
    };

    $(function() {
        DW.currentChart = new Datawrapper.EditableChart(JSON.parse('{{ chart.toJSON|raw }}'));

        DW.currentChart.setLocale('{{ chartLocale }}', {{ metricPrefix | json | raw }});

        if (DW.currentChart.get('lastEditStep') < {{ createstep}}) {
            DW.currentChart.set('lastEditStep', {{ createstep }});
        }
    });

})(jQuery);


</script>


{% endblock %}<commit_msg>Made next step clickable in big chart editor navigation<commit_after>{% extends "core.twig" %}

{% block content %}

<div class="row create-nav">
    {% for step in steps %}
        {% if createstep > step.index or createstep != step.index and chart.lastEditStep >= step.index %}
            <a href="{{ step.id }}" class="span3{% if createstep == step.index %} active{% else %}{% if createstep > step.index %} passed{% endif %}{% endif %}">
                <span class="step">{{ step.index }}</span>
                <span class="title">{{ step.title }}</span>
                <i class="icon-ok"></i>
                 <div class="corner"></div>
            </a>
        {% elseif createstep == step.index-1 %}
            <a href="{{ step.id }}" class="span3{% if createstep == step.index %} active{% else %}{% if createstep > step.index %} passed{% else %} unseen{% endif %}{% endif %}">
                <span class="step">{{ step.index }}</span>
                {{ step.title }}
                <div class="corner"></div>
            </a>
        {% else %}
            <div class="span3{% if createstep == step.index %} active{% else %}{% if createstep > step.index %} passed{% else %} unseen{% endif %}{% endif %}">
                <span class="step">{{ step.index }}</span>
                {{ step.title }}
                <div class="corner"></div>
            </div>
        {% endif %}

    {% endfor %}
</div>

<script type="text/javascript">

(function($) {

    _.templateSettings = {
        interpolate : /\{\{(.+?)\}\}/g
    };

    $(function() {
        DW.currentChart = new Datawrapper.EditableChart(JSON.parse('{{ chart.toJSON|raw }}'));

        DW.currentChart.setLocale('{{ chartLocale }}', {{ metricPrefix | json | raw }});

        if (DW.currentChart.get('lastEditStep') < {{ createstep}}) {
            DW.currentChart.set('lastEditStep', {{ createstep }});
        }
    });

})(jQuery);


</script>


{% endblock %}
{'fraction_non_alphanumeric': 0.20287769784172663, 'fraction_numerical': 0.0017266187050359713, 'mean_word_length': 2.1571298819255222, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 58, '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': '1333355', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1011, 'n_words': 236}