<commit_before>{% extends "projects/project_edit_base.html" %}
{% load i18n %}

{% block title %}{% trans "Edit Project Versions" %}{% endblock %}

{% block project-versions-active %}active{% endblock %}
{% block editing-option-edit-proj %}class="active"{% endblock %}

{% block project_edit_content_header %}{{ project.name }} <small class="quiet">{% trans "Versions" %}</small>{% endblock %}

{% block project_edit_content %}
  <p class="help_text">
    {% trans "If you are having trouble building older versions of your Documentation, then you can" %} <a href="{% url projects_upload_html project.slug %}">{% trans "Upload a Zip file of HTML" %}</a> {% trans "instead. This is to support versions that may not build anymore with current Sphinx, or to support plugins and extensions that we may not have on our server." %}
  </p>

  <form method="post" action=".">{% csrf_token %}

{% for field in form %}

    {% if forloop.first  %}
        {# This is a custom form listing the possible active versions, to make 1 the default #}
        <h2> {{ field.label }} </h2>
        {{ field }}
    <p>
      {% trans "Choose the version that / will redirect to." %}
    </p>

    {% else %}

        {% if forloop.counter0 == 1 %}
            <h2> {% trans "Choose Active Versions" %} </h2>
            <p>
            {% trans "Active versions below will show up on the site." %}
            </p>
        {% endif %}


        {% if field.label == "privacy" %}
          {{ field }}

        {% comment %}
        {% elif field.label == "tags" %}
            {% trans "Tags" %}: {{ field }}
        {% endcomment %}

        {% else %}
        {# This is a custom field with a label of the version, and a value of a checkbox denoting if it is active #}
        <h3> <a href="{% url project_version_detail project.slug field.label %}"> {{ field.label}}</a> </h3>
          {% trans "Active" %} {{ field }}
        {% endif %}
    {% endif %}
    <br>
{% endfor %}

    <p>
      <input style="display: inline;" type="submit" value="{% trans "Submit" %}"><commit_msg>Kill the link to version detail for now.<commit_after>{% extends "projects/project_edit_base.html" %}
{% load i18n %}

{% block title %}{% trans "Edit Project Versions" %}{% endblock %}

{% block project-versions-active %}active{% endblock %}
{% block editing-option-edit-proj %}class="active"{% endblock %}

{% block project_edit_content_header %}{{ project.name }} <small class="quiet">{% trans "Versions" %}</small>{% endblock %}

{% block project_edit_content %}
  <p class="help_text">
    {% trans "If you are having trouble building older versions of your Documentation, then you can" %} <a href="{% url projects_upload_html project.slug %}">{% trans "Upload a Zip file of HTML" %}</a> {% trans "instead. This is to support versions that may not build anymore with current Sphinx, or to support plugins and extensions that we may not have on our server." %}
  </p>

  <form method="post" action=".">{% csrf_token %}

{% for field in form %}

    {% if forloop.first  %}
        {# This is a custom form listing the possible active versions, to make 1 the default #}
        <h2> {{ field.label }} </h2>
        {{ field }}
    <p>
      {% trans "Choose the version that / will redirect to." %}
    </p>

    {% else %}

        {% if forloop.counter0 == 1 %}
            <h2> {% trans "Choose Active Versions" %} </h2>
            <p>
            {% trans "Active versions below will show up on the site." %}
            </p>
        {% endif %}


        {% if field.label == "privacy" %}
          {{ field }}

        {% comment %}
        {% elif field.label == "tags" %}
            {% trans "Tags" %}: {{ field }}
        {% endcomment %}

        {% else %}
        {# This is a custom field with a label of the version, and a value of a checkbox denoting if it is active #}
        <h3>{{ field.label}}</h3>
          {% trans "Active" %} {{ field }}
        {% endif %}
    {% endif %}
    <br>
{% endfor %}

    <p>
      <input style="display: inline;" type="submit" value="{% trans "Submit" %}">
{'fraction_non_alphanumeric': 0.16257969592937715, 'fraction_numerical': 0.005394801373222168, 'mean_word_length': 2.574934268185802, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, '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': '7584734', 'n_tokens_mistral': 1340, 'n_tokens_neox': 1170, 'n_words': 424}