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

{% block body %}
<h2 class="special-heading">{% blocktrans %}This site publishes Freedom of Information requests and helps you to make your own!{% endblocktrans %}</h2>
<div class="clearfix" id="main-folders">
  <div class="span-10">

    <form class="mainsearch" method="get" action="{% url 'foirequest-search' %}">
      <p>{% blocktrans %}Search {{ foicount }} requests and {{ pbcount }} public bodies:{% endblocktrans %}</p>
      <div class="clearfix">
        <input class="mainsearchbox" type="text" autofocus="autofocus" name="q" autocomplete="off"/>
        <button type="submit" class="mainsearch-button">{% blocktrans %}Search For Information{% endblocktrans %}</button>
      </div>
      <p>{% blocktrans %}Try the following:{% endblocktrans %} 
      <a href="{% url 'foirequest-search' %}?q={% trans "Nuclear" %}">{% trans "Nuclear" %}</a>
      {% trans "or" %}
      <a href="{% url 'foirequest-search' %}?q={% trans "Employment" %}">{% trans "Employment" %}</a>
      </p>
    </form>
    <!-- <p>-->
    <!--   <a class="big-button make-request-button" href="{% url 'foirequest-make_request' %}">{% blocktrans %}Make a Request now!{% endblocktrans %}</a>-->
    <!-- </p>-->
  </div>
<div class="prepend-2 span-12 last">
  <div class="main-foirequests">
    {% if featured %}
    <div class="frontpage-teaser">
    <small>{% blocktrans %}Featured Request{% endblocktrans %}</small>
    <h3>{{ featured.title }}</h3>
    <p>
      {{ featured.text|truncatewords:55 }}
      {% if featured.url %}
        <a href="{{ featured.url }}">{% blocktrans %}Read the blog post{% endblocktrans %}</a><br/>
      {% endif %}
    </p>
    <p><a class="make-request-icon" href="{% url 'foirequest-show' slug=featured.request.slug %}">{% blocktrans %}Visit this request{% endblocktrans %}</a>
    </p>
    </div>
    {% else %}
    <div id="sample-letter" class="frontpage-teaser">{% blocktrans %}Freedom of Information Request

To: Ministry of Interior

Dear Sir or Madam,
I request information about the following:
...{% endblocktrans %}
  <a class="make-request-icon" href="{% url 'foirequest-make_request' %}">{% blocktrans %}Write a Request Now!{% endblocktrans %}</a>
  </div>
  {% endif %}
  </div>
</div>
</div>

<div class="clearfix">
<div class="span-10">
  <h3>{% blocktrans %}What is Freedom of Information?{% endblocktrans %}</h3>
  <p>{% blocktrans %}Every citizen has the right under the Federal Freedom of Information Law to ask for and receive access to information from Public Bodies concerning public affairs.{% endblocktrans %}
  <br/>
   <a class="target-new" href="http://de.wikipedia.org/wiki/Informationsfreiheit">{% blocktrans %}Read more about the Freedom of Information!{% endblocktrans %}</a>
  </p>
</div>

<div class="prepend-2 span-12 last">
  <h3>{% blocktrans %}What does this site do?{% endblocktrans %}</h3>
  <p>{% blocktrans %}This site publishes Freedom of Information requests and replies so that others don't have to ask for the same information.{% endblocktrans %}
  <br/>
   <a href="{% url 'help-index' %}">{% blocktrans %}Read more about the concept!{% endblocktrans %}</a>
  </p>
</div>

<!-- <div class="span-8 last">-->
<!--   <h3>{% blocktrans %}How can I start?{% endblocktrans %}</h3>-->
<!--   {% url 'foirequest-list' as foirequests_url %}-->
<!--   <p>{% blocktrans %}You can start by browsing <a href="{{ foirequests_url }}">existing Freedom of Information requests</a> to get a feeling for what Freedom of Information is all about.{% endblocktrans %}-->
<!--   </p>-->
<!-- </div>-->

</div>
<div class="clearfix">
<div class="span-10">
  <h3>{% blocktrans %}Successful Requests{% endblocktrans %}</h3>
  <table class="no-stripes">
    <tbody>
    {% for object in successful_foi_requests %}
    <tr>
      <td style="vertical-align: top">
        <img src="{{ STATIC_URL }}img/status/{{ object.status }}.png" alt="{{ object.readable_status }}" title="{{ object.readable_status }}"/>
      </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/><span class="time-small">{{ object.readable_status }},
          {% blocktrans with time=object.first_message|timesince %}{{ time }} ago{% endblocktrans %}</span>
      </td>
    </tr>
  {% endfor %}
  </tbody>
</table>
</div>
<div class="prepend-2 span-12 last">
    <h3>{% blocktrans %}Unsuccessful Requests{% endblocktrans %}</h3>
  <table class="no-stripes">
    <tbody>
      {% for object in unsuccessful_foi_requests %}
    <tr>
      <td style="vertical-align: top">
        <img src="{{ STATIC_URL }}img/status/{{ object.status }}.png" alt="{{ object.readable_status }}" title="{{ object.readable_status }}"/>
      </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/><span class="time-small">{{ object.readable_status }},
          {% blocktrans with time=object.first_message|timesince %}{{ time }} ago{% endblocktrans %}</span>
      </td>
    </tr>
  {% endfor %}
  </tbody>
</table>
   </div>
</div>
{% endblock %}<commit_msg>Display last_message date for request on front page<commit_after>{% extends 'base.html' %}
{% load i18n %}
{% load url from future %}

{% block body %}
<h2 class="special-heading">{% blocktrans %}This site publishes Freedom of Information requests and helps you to make your own!{% endblocktrans %}</h2>
<div class="clearfix" id="main-folders">
  <div class="span-10">

    <form class="mainsearch" method="get" action="{% url 'foirequest-search' %}">
      <p>{% blocktrans %}Search {{ foicount }} requests and {{ pbcount }} public bodies:{% endblocktrans %}</p>
      <div class="clearfix">
        <input class="mainsearchbox" type="text" autofocus="autofocus" name="q" autocomplete="off"/>
        <button type="submit" class="mainsearch-button">{% blocktrans %}Search For Information{% endblocktrans %}</button>
      </div>
      <p>{% blocktrans %}Try the following:{% endblocktrans %} 
      <a href="{% url 'foirequest-search' %}?q={% trans "Nuclear" %}">{% trans "Nuclear" %}</a>
      {% trans "or" %}
      <a href="{% url 'foirequest-search' %}?q={% trans "Employment" %}">{% trans "Employment" %}</a>
      </p>
    </form>
    <!-- <p>-->
    <!--   <a class="big-button make-request-button" href="{% url 'foirequest-make_request' %}">{% blocktrans %}Make a Request now!{% endblocktrans %}</a>-->
    <!-- </p>-->
  </div>
<div class="prepend-2 span-12 last">
  <div class="main-foirequests">
    {% if featured %}
    <div class="frontpage-teaser">
    <small>{% blocktrans %}Featured Request{% endblocktrans %}</small>
    <h3>{{ featured.title }}</h3>
    <p>
      {{ featured.text|truncatewords:55 }}
      {% if featured.url %}
        <a href="{{ featured.url }}">{% blocktrans %}Read the blog post{% endblocktrans %}</a><br/>
      {% endif %}
    </p>
    <p><a class="make-request-icon" href="{% url 'foirequest-show' slug=featured.request.slug %}">{% blocktrans %}Visit this request{% endblocktrans %}</a>
    </p>
    </div>
    {% else %}
    <div id="sample-letter" class="frontpage-teaser">{% blocktrans %}Freedom of Information Request

To: Ministry of Interior

Dear Sir or Madam,
I request information about the following:
...{% endblocktrans %}
  <a class="make-request-icon" href="{% url 'foirequest-make_request' %}">{% blocktrans %}Write a Request Now!{% endblocktrans %}</a>
  </div>
  {% endif %}
  </div>
</div>
</div>

<div class="clearfix">
<div class="span-10">
  <h3>{% blocktrans %}What is Freedom of Information?{% endblocktrans %}</h3>
  <p>{% blocktrans %}Every citizen has the right under the Federal Freedom of Information Law to ask for and receive access to information from Public Bodies concerning public affairs.{% endblocktrans %}
  <br/>
   <a class="target-new" href="http://de.wikipedia.org/wiki/Informationsfreiheit">{% blocktrans %}Read more about the Freedom of Information!{% endblocktrans %}</a>
  </p>
</div>

<div class="prepend-2 span-12 last">
  <h3>{% blocktrans %}What does this site do?{% endblocktrans %}</h3>
  <p>{% blocktrans %}This site publishes Freedom of Information requests and replies so that others don't have to ask for the same information.{% endblocktrans %}
  <br/>
   <a href="{% url 'help-index' %}">{% blocktrans %}Read more about the concept!{% endblocktrans %}</a>
  </p>
</div>

<!-- <div class="span-8 last">-->
<!--   <h3>{% blocktrans %}How can I start?{% endblocktrans %}</h3>-->
<!--   {% url 'foirequest-list' as foirequests_url %}-->
<!--   <p>{% blocktrans %}You can start by browsing <a href="{{ foirequests_url }}">existing Freedom of Information requests</a> to get a feeling for what Freedom of Information is all about.{% endblocktrans %}-->
<!--   </p>-->
<!-- </div>-->

</div>
<div class="clearfix">
<div class="span-10">
  <h3>{% blocktrans %}Successful Requests{% endblocktrans %}</h3>
  <table class="no-stripes">
    <tbody>
    {% for object in successful_foi_requests %}
    <tr>
      <td style="vertical-align: top">
        <img src="{{ STATIC_URL }}img/status/{{ object.status }}.png" alt="{{ object.readable_status }}" title="{{ object.readable_status }}"/>
      </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/><span class="time-small">{{ object.readable_status }},
          {% blocktrans with time=object.last_message|timesince %}{{ time }} ago{% endblocktrans %}</span>
      </td>
    </tr>
  {% endfor %}
  </tbody>
</table>
</div>
<div class="prepend-2 span-12 last">
    <h3>{% blocktrans %}Unsuccessful Requests{% endblocktrans %}</h3>
  <table class="no-stripes">
    <tbody>
      {% for object in unsuccessful_foi_requests %}
    <tr>
      <td style="vertical-align: top">
        <img src="{{ STATIC_URL }}img/status/{{ object.status }}.png" alt="{{ object.readable_status }}" title="{{ object.readable_status }}"/>
      </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/><span class="time-small">{{ object.readable_status }},
          {% blocktrans with time=object.last_message|timesince %}{{ time }} ago{% endblocktrans %}</span>
      </td>
    </tr>
  {% endfor %}
  </tbody>
</table>
   </div>
</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.2012237762237762, 'fraction_numerical': 0.005944055944055944, 'mean_word_length': 3.5221343873517785, 'pattern_counts': {'":': 0, '<': 277, '<?xml version=': 0, '>': 277, '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': '939619', 'n_tokens_mistral': 3940, 'n_tokens_neox': 3623, 'n_words': 1025}