<commit_before>{% extends 'dash/base.html' %}

{% load thumbnail %}

{% block sub_title %}
  Image Wizard
{% endblock sub_title %}

{% block sub_heading %}
  Image Wizard
{% endblock sub_heading %}

{% block content %}
  <style>
    .pill {
      -webkit-border-radius: 8px;
      -moz-border-radius: 8px;
      border-radius: 8px;
      white-space: nowrap;
      background: #428CD1;
      color: white;
      font-size: 95%;
      padding: 3px 8px;
      margin: 0 8px 12px 0;
    }
    .pill:visited {
      background: #529CD1;
      color: white;
    }
  </style>
  <div class="pure-g">
    <div class="pure-u-1">
      <div class="pure-menu pure-menu-horizontal">
        <ul class="pure-menu-list">
          <li class="pure-menu-item">
          <a href="{{ url_page_design }}" class="pure-menu-link">
            <i class="fa fa-reply"></i>
          </a>
          </li>
        </ul>
      </div>
    </div>
  </div>
  <div class="pure-g">
    <div class="pure-u-1 pure-u-md-1-2">
      <h3>What would you like to do?</h3>
      {% if categories %}
        <p>
          Choose an image from one of these categories:
        </p>
        {% for category in categories %}
          <a href="{{ category.url }}" class="pill">
              {{ category.name }}
          </a>
        {% endfor %}
      {% endif %}
      <p>
        Choose from the whole library:
      </p>
      <a href="{{ url_choose }}" class="pure-menu-link">
        <i class="fa fa-picture-o"></i>
        Image Library
      </a>
      {% if tags %}
        <p>
          Choose a tag:
        </p>
        {% for tag in tags:"name" %}
          <a href="{{ url_choose }}?tag={{ tag.slug }}" class="pill">
            {{ tag.name }}
          </a>
        {% endfor %}
      {% endif %}
      <p>
        Or:
      </p>
      <a href="{{ url_upload }}" class="pure-menu-link">
        <i class="fa fa-cloud-upload"></i>
        Upload an image
      </a>
      {% if image %}
        <p>
          Maintenance:
        </p>
        <a href="{{ url_remove }}" class="pure-menu-link">
          <i class="fa fa-times"></i>
          Remove the {{ field_name }} from your page
        </a>
      {% endif %}
      {# Wizard.MULTI #}
      {% if many_to_many.count %}
        <p>
          Maintenance:
        </p>
        <a href="{{ url_order }}" class="pure-menu-link">
          <i class="fa fa-arrow-up"></i><commit_msg>Tag sort<commit_after>{% extends 'dash/base.html' %}

{% load thumbnail %}

{% block sub_title %}
  Image Wizard
{% endblock sub_title %}

{% block sub_heading %}
  Image Wizard
{% endblock sub_heading %}

{% block content %}
  <style>
    .pill {
      -webkit-border-radius: 8px;
      -moz-border-radius: 8px;
      border-radius: 8px;
      white-space: nowrap;
      background: #428CD1;
      color: white;
      font-size: 95%;
      padding: 3px 8px;
      margin: 0 8px 12px 0;
    }
    .pill:visited {
      background: #529CD1;
      color: white;
    }
  </style>
  <div class="pure-g">
    <div class="pure-u-1">
      <div class="pure-menu pure-menu-horizontal">
        <ul class="pure-menu-list">
          <li class="pure-menu-item">
          <a href="{{ url_page_design }}" class="pure-menu-link">
            <i class="fa fa-reply"></i>
          </a>
          </li>
        </ul>
      </div>
    </div>
  </div>
  <div class="pure-g">
    <div class="pure-u-1 pure-u-md-1-2">
      <h3>What would you like to do?</h3>
      {% if categories %}
        <p>
          Choose an image from one of these categories:
        </p>
        {% for category in categories %}
          <a href="{{ category.url }}" class="pill">
              {{ category.name }}
          </a>
        {% endfor %}
      {% endif %}
      <p>
        Choose from the whole library:
      </p>
      <a href="{{ url_choose }}" class="pure-menu-link">
        <i class="fa fa-picture-o"></i>
        Image Library
      </a>
      {% if tags %}
        <p>
          Choose a tag:
        </p>
        {% for tag in tags|dictsort:"name" %}
          <a href="{{ url_choose }}?tag={{ tag.slug }}" class="pill">
            {{ tag.name }}
          </a>
        {% endfor %}
      {% endif %}
      <p>
        Or:
      </p>
      <a href="{{ url_upload }}" class="pure-menu-link">
        <i class="fa fa-cloud-upload"></i>
        Upload an image
      </a>
      {% if image %}
        <p>
          Maintenance:
        </p>
        <a href="{{ url_remove }}" class="pure-menu-link">
          <i class="fa fa-times"></i>
          Remove the {{ field_name }} from your page
        </a>
      {% endif %}
      {# Wizard.MULTI #}
      {% if many_to_many.count %}
        <p>
          Maintenance:
        </p>
        <a href="{{ url_order }}" class="pure-menu-link">
          <i class="fa fa-arrow-up"></i>
{'fraction_non_alphanumeric': 0.17670265780730898, 'fraction_numerical': 0.01079734219269103, 'mean_word_length': 1.6094257854821234, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, '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': '405668', 'n_tokens_mistral': 1736, 'n_tokens_neox': 1593, 'n_words': 386}