<commit_before>{% extends 'foirequest/base.html' %}
{% load url from future %}
{% load i18n %}
{% load pagination_tags %}

{% block body %}
{% autopaginate object_list %}
{% if not filtered %}
  <h2>{{ page_title|safe }}</h2>
{% endif %}
{% if status %}
  <h2>{{ status }}</h2>
  <p>{{ status_description }}</p>
{% endif %}
{% if tag %}
  <h2>{% blocktrans with name=tag.name %}Requests with tag "{{ name }}"{% endblocktrans %}</h2>
{% endif %}
{% if topic %}
  <h2>{% blocktrans with name=topic.name %}Requests in topic "{{ name }}"{% endblocktrans %}</h2>
{% endif %}
<div class="span-18">
  <table class="no-stripes">
    <tbody>
    {% for object in object_list %}
    <tr class="hover-parent">
      <td style="vertical-align: top">
        <img src="{{ STATIC_URL }}img/status/{{ object.status }}.png" alt="{{ object.readable_status }}" title="{{ object.readable_status }}"/><br/>
      </td>
      <td>
        <a href="{{ object.get_absolute_url }}">{{ object.title }}</a><br/>
        <strong>{% blocktrans %}To:{% endblocktrans %}</strong> {% if object.public_body %}
          <a href="{{ object.public_body.get_absolute_url }}">{{ object.public_body.name }}</a>
        {% else %}
          {% blocktrans %}Not yet set{% endblocktrans %}
        {% endif %}
        <br/><strong>{% blocktrans %}Status:{% endblocktrans %}</strong> {{ object.readable_status }}
        <br/>
        <span class="hover-visble small">{% blocktrans with time=object.first_message|timesince %}{{ time }} ago{% endblocktrans %}
        {% if object.same_as_count %}
          – <a href="{{ object.get_absolute_url }}#identical">{% blocktrans count counter=object.same_as_count %}One identical request{% plural %}{{ counter }} identical requests{% endblocktrans %}</a>
        {% endif %}
        </span>
      </td>
    </tr>
  {% empty %}
    <tr>
        {% if status %}
        <td>{% blocktrans %}No requests with this status yet.{% endblocktrans %}</td>
        {% else %}
        <td>{% blocktrans %}No requests yet.{% endblocktrans %}</td>
        {% endif %}
    </tr>
  {% endfor %}
  </tbody>
</table>
{% paginate %}
</div>

<div class="span-6 last">
  <p>{% blocktrans count counter=count %}{{ counter }} request{% plural %}{{ counter }} requests{% endblocktrans %}</p>
  {% if filtered or not_foi %}
  <p>
    <a href="{% url 'foirequest-list' %}">{% trans "Show all FoI requests" %}</a>
  </p>
  {% endif %}
  <p class="bold">{% blocktrans %}Filter requests by their status:{% endblocktrans %}</p>
  <ul class="iconed-list">
  {% for urlpart,readable_status,status in status_list %}
    <li style="background-image:url('{{ STATIC_URL }}img/status/{{ status }}_small.png')">
      <a href="{% url 'foirequest-list' status=urlpart %}">{{ readable_status }}</a>
    </li>
    {% endfor %}
  </ul>
  <p class="bold">{% blocktrans %}Filter requests by category:{% endblocktrans %}</p>
  <ul class="iconed-list">
  {% for topic in topic_list %}
    <li style="background-image:url('{{ STATIC_URL }}img/topics/{{ topic.slug }}_small.png')">
    <a href="{% url 'foirequest-list' topic=topic.slug %}">{{ topic.name }}</a>
    </li>
    {% endfor %}
  </ul>

  <p>
    <a href="{% url 'foirequest-list_not_foi' %}">{% trans "Show all Non-FoI requests" %}</a>
  </p>


  <p>{% blocktrans %}Feeds for latest requests{% endblocktrans %}</p>
  <ul class="iconed-list">
    <li class="rss-icon">
        <a href="{% url 'foirequest-feed_latest' %}">{% trans "RSS Feed" %}</a>
    </li><commit_msg>List jurisdictions and filter by them for foirequest list<commit_after>{% extends 'foirequest/base.html' %}
{% load url from future %}
{% load i18n %}
{% load pagination_tags %}

{% block body %}
{% autopaginate object_list %}

{% if not filtered and jurisdiction %}
  <h2>{% blocktrans with name=jurisdiction.name %}{{ name }}: all requests{% endblocktrans %}</h2>
{% else %}
  {% if not filtered %}
    <h2>{{ page_title|safe }}</h2>
  {% endif %}
{% endif %}
{% if status %}
  <h2>{{ status }}</h2>
  <p>{{ status_description }}</p>
{% endif %}
{% if tag %}
  <h2>{% blocktrans with name=tag.name %}Requests with tag "{{ name }}"{% endblocktrans %}</h2>
{% endif %}
{% if topic %}
  <h2>{% blocktrans with name=topic.name %}Requests in topic "{{ name }}"{% endblocktrans %}</h2>
{% endif %}
{% if filtered and jurisdiction %}
  <p>{% blocktrans with name=jurisdiction.name %}Filtered by requests to Public Bodies in {{ name }}.{% endblocktrans %}</p>
{% endif %}
<div class="span-18">
  <table class="no-stripes">
    <tbody>
    {% for object in object_list %}
    <tr class="hover-parent">
      <td style="vertical-align: top">
        <img src="{{ STATIC_URL }}img/status/{{ object.status }}.png" alt="{{ object.readable_status }}" title="{{ object.readable_status }}"/><br/>
      </td>
      <td>
        <a href="{{ object.get_absolute_url }}">{{ object.title }}</a><br/>
        <strong>{% blocktrans %}To:{% endblocktrans %}</strong> {% if object.public_body %}
          <a href="{{ object.public_body.get_absolute_url }}">{{ object.public_body.name }}</a>
        {% else %}
          {% blocktrans %}Not yet set{% endblocktrans %}
        {% endif %}
        <br/><strong>{% blocktrans %}Status:{% endblocktrans %}</strong> {{ object.readable_status }}
        <br/>
        <span class="hover-visble small">{% blocktrans with time=object.first_message|timesince %}{{ time }} ago{% endblocktrans %}
        {% if object.same_as_count %}
          – <a href="{{ object.get_absolute_url }}#identical">{% blocktrans count counter=object.same_as_count %}One identical request{% plural %}{{ counter }} identical requests{% endblocktrans %}</a>
        {% endif %}
        </span>
      </td>
    </tr>
  {% empty %}
    <tr>
        {% if status %}
        <td>{% blocktrans %}No requests with this status yet.{% endblocktrans %}</td>
        {% else %}
        <td>{% blocktrans %}No requests yet.{% endblocktrans %}</td>
        {% endif %}
    </tr>
  {% endfor %}
  </tbody>
</table>
{% paginate %}
</div>

<div class="span-6 last">
  <p>{% blocktrans count counter=count %}{{ counter }} request{% plural %}{{ counter }} requests{% endblocktrans %}</p>
  {% if filtered or not_foi %}
  <p>
    <a href="{% url 'foirequest-list' %}">{% trans "Show all FoI requests" %}</a>
  </p>
  {% endif %}
  {% if jurisdiction %}
    <p class="bold">{% blocktrans with name=jurisdiction.name %}Filter requests for {{ name }} by their status:{% endblocktrans %}</p>
    <ul class="iconed-list">
    {% for urlpart,readable_status,status in status_list %}
      <li style="background-image:url('{{ STATIC_URL }}img/status/{{ status }}_small.png')">
        <a href="{% url 'foirequest-list' status=urlpart jurisdiction=jurisdiction.slug %}">{{ readable_status }}</a>
      </li>
      {% endfor %}
    </ul>
    <p class="bold">{% blocktrans with name=jurisdiction.name %}Filter requests for {{ name }} by category:{% endblocktrans %}</p>
    <ul class="iconed-list">
    {% for topic in topic_list %}
      <li style="background-image:url('{{ STATIC_URL }}img/topics/{{ topic.slug }}_small.png')">
      <a href="{% url 'foirequest-list' topic=topic.slug jurisdiction=jurisdiction.slug %}">{{ topic.name }}</a>
      </li>
      {% endfor %}
    </ul>
  {% else %}
    {% if jurisdiction_list|length > 1 %}
      <p class="bold">{% blocktrans %}Filter requests by their jurisdiction:{% endblocktrans %}</p>
      <ul class="iconed-list">
      {% for juris in jurisdiction_list %}
        <li style="background-image:url('{{ STATIC_URL }}img/jurisdictions/{{ juris.slug }}_small.png')">
          <a href="{% url 'foirequest-list' jurisdiction=juris.slug %}">{{ juris.name }}</a>
        </li>
      {% endfor %}
      </ul>
    {% endif %}
    <p class="bold">{% blocktrans %}Filter requests by their status:{% endblocktrans %}</p>
    <ul class="iconed-list">
    {% for urlpart,readable_status,status in status_list %}
      <li style="background-image:url('{{ STATIC_URL }}img/status/{{ status }}_small.png')">
        <a href="{% url 'foirequest-list' status=urlpart %}">{{ readable_status }}</a>
      </li>
      {% endfor %}
    </ul>
    <p class="bold">{% blocktrans %}Filter requests by category:{% endblocktrans %}</p>
    <ul class="iconed-list">
    {% for topic in topic_list %}
      <li style="background-image:url('{{ STATIC_URL }}img/topics/{{ topic.slug }}_small.png')">
      <a href="{% url 'foirequest-list' topic=topic.slug %}">{{ topic.name }}</a>
      </li>
      {% endfor %}
    </ul>
  {% endif %}
  <p>
    <a href="{% url 'foirequest-list_not_foi' %}">{% trans "Show all Non-FoI requests" %}</a>
  </p>


  <p>{% blocktrans %}Feeds for latest requests{% endblocktrans %}</p>
  <ul class="iconed-list">
    <li class="rss-icon">
        <a href="{% url 'foirequest-feed_latest' %}">{% trans "RSS Feed" %}</a>
    </li>
{'fraction_non_alphanumeric': 0.2086021505376344, 'fraction_numerical': 0.0032823995472552347, 'mean_word_length': 3.318670576735093, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 190, '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': '5084', 'n_tokens_mistral': 3211, 'n_tokens_neox': 2892, 'n_words': 761}