<commit_before>{% extends "extensions/detail.html" %}

{% block extra-messages %}
  {{ block.super }}
  {% if is_preview %}
    <p class="message info">
      This is a preview of how your extension's page will look.
      You can edit any of the things marked in yellow by clicking on them.
    </p>
  {% endif %}
{% endblock %}

{% block comments %}
  {% if is_visible %}
    {% include "extensions/comments.html" %}
  {% else %}
    <p style="text-align: center;">Comments will appear here after review.</p>
  {% endif %}
{% endblock %}

{% block extra %}
  {% if is_preview %}
    <button id="submit-ajax" data-url="{% url extensions-ajax-submit pk=version.pk %}">
      Submit the extension for review.
    </button>
  {% endif %}

  {% if request.user == version.extension.creator and not is_preview %}
    <a href="{% url extensions-upload-file pk=version.extension.pk %}">Upload a new version</a>
  {% endif %}
{% endblock %}

{% block screenshot %}
<div class="screenshot upload">
  <img src="{{ th.url }}" />
  <input type="file" accept="image/*">
</div>
{% endblock %}

{% block no-screenshot %}
<div class="screenshot upload placeholder">
  <div class="text"><commit_msg>Improve accuracy after the redefinition of "review".<commit_after>{% extends "extensions/detail.html" %}

{% block extra-messages %}
  {{ block.super }}
  {% if is_preview %}
    <p class="message info">
      This is a preview of how your extension's page will look.
      You can edit any of the things marked in yellow by clicking on them.
    </p>
  {% endif %}
{% endblock %}

{% block comments %}
  {% if is_visible %}
    {% include "extensions/comments.html" %}
  {% else %}
    <p style="text-align: center;">Comments will appear here after your extension is approved.</p>
  {% endif %}
{% endblock %}

{% block extra %}
  {% if is_preview %}
    <button id="submit-ajax" data-url="{% url extensions-ajax-submit pk=version.pk %}">
      Submit the extension for review.
    </button>
  {% endif %}

  {% if request.user == version.extension.creator and not is_preview %}
    <a href="{% url extensions-upload-file pk=version.extension.pk %}">Upload a new version</a>
  {% endif %}
{% endblock %}

{% block screenshot %}
<div class="screenshot upload">
  <img src="{{ th.url }}" />
  <input type="file" accept="image/*">
</div>
{% endblock %}

{% block no-screenshot %}
<div class="screenshot upload placeholder">
  <div class="text">
{'fraction_non_alphanumeric': 0.1694845360824742, 'fraction_numerical': 0.0, 'mean_word_length': 3.4842883548983363, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '7485546', 'n_tokens_mistral': 838, 'n_tokens_neox': 730, 'n_words': 230}