<commit_before>{% extends "base.html" %}
{% load i18n %}

{% block title %}{{ get_place.name|capfirst }} - {% trans "Index" %}{% endblock %}
{% block logo %}<img src="/{{MEDIA_URL}}{{ get_place.logo }}">{% endblock %}
{% block banner %}<img src="/{{MEDIA_URL}}{{ get_place.banner }}">{% endblock %}

{% block menu%}
{% endblock %}

{% block content %}

  {% block centercol %}
    <div id="centercol">
      {% if user.is_staff %}
        <div id="tools">
          <a href="{{ request.path }}edit/">{% trans "Edit space" %}</a> |
          <a href="{{ request.path }}delete/">{% trans "Delete space" %}</a> |
          <a href="{{ request.path }}news/add/"}>{% trans "Add news" %}</a>
        </div>
      {% endif %}
      {% if get_place.mod_news %}
        {% for news in publication %}
            <div class="post">
              <div id="tools">
                <a href="{{ request.path }}news/edit/{{ news.id }}/">Edit</a> |
                <a href="{{ request.path }}news/delete/{{ news.id }}/">Delete</a>
              </div>
              <h1>{{ news.post_title }}</h1>
              <p>{{ news.post_message }}</p>
              <p>{% trans "Written by" %} {{ news.post_author }} {% trans "on" %} {{ news.post_pubdate }}</p>
            </div>
        {% empty %}
          <div class="post"><commit_msg>Edit/Delete news is only for staff<commit_after>{% extends "base.html" %}
{% load i18n %}

{% block title %}{{ get_place.name|capfirst }} - {% trans "Index" %}{% endblock %}
{% block logo %}<img src="/{{MEDIA_URL}}{{ get_place.logo }}">{% endblock %}
{% block banner %}<img src="/{{MEDIA_URL}}{{ get_place.banner }}">{% endblock %}

{% block menu%}
{% endblock %}

{% block content %}

  {% block centercol %}
    <div id="centercol">
      {% if user.is_staff %}
        <div id="tools">
          <a href="{{ request.path }}edit/">{% trans "Edit space" %}</a> |
          <a href="{{ request.path }}delete/">{% trans "Delete space" %}</a> |
          <a href="{{ request.path }}news/add/"}>{% trans "Add news" %}</a>
        </div>
      {% endif %}
      {% if get_place.mod_news %}
        {% for news in publication %}
            <div class="post">
              {% if user.is_staff %}
              <div id="tools">
                <a href="{{ request.path }}news/edit/{{ news.id }}/">Edit</a> |
                <a href="{{ request.path }}news/delete/{{ news.id }}/">Delete</a>
              </div>
              {% endif %}
              <h1>{{ news.post_title }}</h1>
              <p>{{ news.post_message }}</p>
              <p>{% trans "Written by" %} {{ news.post_author }} {% trans "on" %} {{ news.post_pubdate }}</p>
            </div>
        {% empty %}
          <div class="post">
{'fraction_non_alphanumeric': 0.22991893883566691, 'fraction_numerical': 0.0029476787030213707, 'mean_word_length': 2.131487889273356, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '2977487', 'n_tokens_mistral': 955, 'n_tokens_neox': 851, 'n_words': 215}