<commit_before>{% extends "mail/base.html" %}

{% block title %}
  Mail templates
{% endblock title %}

{% block sub_heading %}
  Mail templates
{% endblock sub_heading %}

{% block content %}
  <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 'project.settings' %}" class="pure-menu-link">
              <i class="fa fa-reply"></i>
            </a>
          </li>
          <li class="pure-menu-item">
            <a href="{% url 'mail.template.create.django' %}" class="pure-menu-link">
              <i class="fa fa-envelope"></i>
              Create Django Template
            </a>
          </li>
          <li class="pure-menu-item">
            <a href="{% url 'mail.template.create.mandrill' %}" class="pure-menu-link">
              <i class="fa fa-envelope"></i>
              Create Mandrill Template
            </a>
          </li>
        </ul>
      </div>
    </div>
  </div>
  <div class="pure-g">
    <div class="pure-u-1">
      <div class="l-box">
        <table class="pure-table pure-table-bordered">
          <thead>
            <tr>
              <th>Description</th>
              <th>Message</th>
            </tr>
          </thead>
          <tbody>
            {% for e in object_list %}
              <tr valign="top">
                <td>
                  {# system templates cannot be edited #}
                  {% if not e.is_system %}
                    {% if e.is_mandrill %}
                      <a href="{% url 'mail.template.update.mandrill' e.pk %}">
                    {% else %}
                      <a href="{% url 'mail.template.update.django' e.pk %}">
                    {% endif %}
                    <i class="fa fa-edit"></i>
                  {% endif %}
                    {{ e.title }}
                    <br />
                    <small>{{ e.slug }}</small>
                  {% if not e.is_system %}
                    </a>
                  {% endif %}
                </td>
                <td>
                  {% if e.is_mandrill %}
                    <a
                      target="_blank"
                      href="https://mandrillapp.com/templates/">
                      Mandrill template
                      <small>({{ e.slug }})</small>
                      <i class="fa fa-external-link"></i>
                    </a>
                    {% if e.help_text %}
                      <br />
                      <small>
                      {{ e.help_text|linebreaksbr }}
                      </small>
                    {% endif %}
                  {% else %}
                    {% if e.subject %}
                      <strong>{{ e.subject }}</strong>
                    {% endif %}
                    {% if e.subject and e.description %}
                      <br />
                    {% endif %}
                    {% if e.description %}
                      {{ e.description|urlize|linebreaksbr }}
                    {% endif %}
                  {% endif %}
                </td>
              </tr>
            {% endfor %}
          </tbody>
        </table>
      </div>
    </div>
  </div>
{% endblock content %}<commit_msg>menu: 'li' tags not 'ul' #1005<commit_after>{% extends "mail/base.html" %}

{% block title %}
  Mail templates
{% endblock title %}

{% block sub_heading %}
  Mail templates
{% endblock sub_heading %}

{% block content %}
  <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 'project.settings' %}" class="pure-menu-link">
              <i class="fa fa-reply"></i>
            </a>
          </li>
          <li class="pure-menu-item">
            <a href="{% url 'mail.template.create.django' %}" class="pure-menu-link">
              <i class="fa fa-envelope"></i>
              Create Django Template
            </a>
          </li>
          <li class="pure-menu-item">
            <a href="{% url 'mail.template.create.mandrill' %}" class="pure-menu-link">
              <i class="fa fa-envelope"></i>
              Create Mandrill Template
            </a>
          </li>
        </ul>
      </div>
    </div>
  </div>
  <div class="pure-g">
    <div class="pure-u-1">
      <table class="pure-table pure-table-bordered">
        <thead>
          <tr>
            <th>Description</th>
            <th>Message</th>
          </tr>
        </thead>
        <tbody>
          {% for e in object_list %}
            <tr valign="top">
              <td>
                {# system templates cannot be edited #}
                {% if not e.is_system %}
                  {% if e.is_mandrill %}
                    <a href="{% url 'mail.template.update.mandrill' e.pk %}">
                  {% else %}
                    <a href="{% url 'mail.template.update.django' e.pk %}">
                  {% endif %}
                  <i class="fa fa-edit"></i>
                {% endif %}
                  {{ e.title }}
                  <br />
                  <small>{{ e.slug }}</small>
                {% if not e.is_system %}
                  </a>
                {% endif %}
              </td>
              <td>
                {% if e.is_mandrill %}
                  <a
                    target="_blank"
                    href="https://mandrillapp.com/templates/">
                    Mandrill template
                    <small>({{ e.slug }})</small>
                    <i class="fa fa-external-link"></i>
                  </a>
                  {% if e.help_text %}
                    <br />
                    <small>
                    {{ e.help_text|linebreaksbr }}
                    </small>
                  {% endif %}
                {% else %}
                  {% if e.subject %}
                    <strong>{{ e.subject }}</strong>
                  {% endif %}
                  {% if e.subject and e.description %}
                    <br />
                  {% endif %}
                  {% if e.description %}
                    {{ e.description|urlize|linebreaksbr }}
                  {% endif %}
                {% endif %}
              </td>
            </tr>
          {% endfor %}
        </tbody>
      </table>
    </div>
  </div>
{% endblock content %}
{'fraction_non_alphanumeric': 0.15620142990363692, 'fraction_numerical': 0.0012433944668946222, 'mean_word_length': 1.0090540118638776, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 141, 'https://': 2, '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': '7475695', 'n_tokens_mistral': 1976, 'n_tokens_neox': 1702, 'n_words': 368}