<commit_before>{% extends "layout.html" %}
{% from "_board.html" import render_post_form, author_link %}
{% block title %}{{ _("Board") }} / {{ topic.name }}{% endblock %}
{% block contents %}
<div class="entry">
  <table width="100%" style="" class="boardtable">
  <tr>
    <th class="categoryline" colspan="4"><a href="{{ url_for('board/index') }}">{{ _("Board") }}</a> >> <a href="{{ url_for('board/index', _anchor='cat-%i' % topic.forum.category.id ) }}">{{ topic.forum.category.name }}</a> >> <a href="{{ url_for('board/topics', forum_id=topic.forum.id) }}">{{ topic.forum.name }}</a> >> <a href="{{ url_for('board/topic_detail', topic_id=topic.id) }}">{{ topic.name }}</th>
  </tr>
  {% if pagination.necessary %}
  <tr>
    <td colspan="2" style="text-align: right;">{{ _('Pages') }}: {{ pagination.generate() }}</td>
  </tr>
  {% endif %}
  {% for post in posts %}
  <tr>
    <td rowspan="2" class="userinfo">{{ author_link(post.author) }}</td>
    <td><a name="post-{{ post.id }}" href="{{ url_for('board/post_find', post_id=post.id) }}">
        <img src="{{ shared_url('core::editicons/postlink.gif') }}" width="12" height="12"></a>&nbsp;
        {%- trans date=post.date|datetimeformat('long') %}Written: {{ date }}{% endtrans -%}
        {% if form %}<span style="float:right;">
          <a href="javascript:void(0);" onClick="pyCSBulletinBoard.quotePost({{ post.id }})">
            <img src="{{ shared_url('core::editicons/quote.gif') }}" width="12" height="12"></a>
        </span>{% endif %}
    </td>
  </tr>
  <tr>
    <td>{{ post.text|prettify }}<br>
      <div style="float:right">
        {% if post.can_edit() %}<a href="{{ url_for('board/post_edit', post_id=post.id, _anchor='post-edit') }}"><img src="{{ shared_url('core::editicons/edit.gif') }}" width="16" height="16"></a>&nbsp;{% endif %}
        {% if post.can_delete() %}<a href="{{ url_for('board/post_delete', post_id=post.id) }}"><img src="{{ shared_url('core::editicons/delete.gif') }}" width="16" height="16"></a>{% endif %}
      </div>
    </td>
  <tr>  
  {% endfor %}
  {% if pagination.necessary %}
  <tr>
    <td colspan="2" style="text-align: right;">{{ _('Pages') }}: {{ pagination.generate() }}</td>
  </tr>
  {% endif %}
  </table>
  {% if form %}
  {{ render_post_form(form) }}  
  {% endif %}
</div>
{% endblock %}<commit_msg>Display "About me" from profile in board posts<commit_after>{% extends "layout.html" %}
{% from "_board.html" import render_post_form, author_link %}
{% block title %}{{ _("Board") }} / {{ topic.name }}{% endblock %}
{% block contents %}
<div class="entry">
  <table width="100%" style="" class="boardtable">
  <tr>
    <th class="categoryline" colspan="4"><a href="{{ url_for('board/index') }}">{{ _("Board") }}</a> >> <a href="{{ url_for('board/index', _anchor='cat-%i' % topic.forum.category.id ) }}">{{ topic.forum.category.name }}</a> >> <a href="{{ url_for('board/topics', forum_id=topic.forum.id) }}">{{ topic.forum.name }}</a> >> <a href="{{ url_for('board/topic_detail', topic_id=topic.id) }}">{{ topic.name }}</th>
  </tr>
  {% if pagination.necessary %}
  <tr>
    <td colspan="2" style="text-align: right;">{{ _('Pages') }}: {{ pagination.generate() }}</td>
  </tr>
  {% endif %}
  {% for post in posts %}
  <tr>
    <td rowspan="2" class="userinfo">{{ author_link(post.author) }}</td>
    <td><a name="post-{{ post.id }}" href="{{ url_for('board/post_find', post_id=post.id) }}">
        <img src="{{ shared_url('core::editicons/postlink.gif') }}" width="12" height="12"></a>&nbsp;
        {%- trans date=post.date|datetimeformat('long') %}Written: {{ date }}{% endtrans -%}
        {% if form %}<span style="float:right;">
          <a href="javascript:void(0);" onClick="pyCSBulletinBoard.quotePost({{ post.id }})">
            <img src="{{ shared_url('core::editicons/quote.gif') }}" width="12" height="12"></a>
        </span>{% endif %}
    </td>
  </tr>
  <tr>
    <td>{{ post.text|prettify }}<br>
      {{ post.author.notes|prettify }}<br>
      <div style="float:right">
        {% if post.can_edit() %}<a href="{{ url_for('board/post_edit', post_id=post.id, _anchor='post-edit') }}"><img src="{{ shared_url('core::editicons/edit.gif') }}" width="16" height="16"></a>&nbsp;{% endif %}
        {% if post.can_delete() %}<a href="{{ url_for('board/post_delete', post_id=post.id) }}"><img src="{{ shared_url('core::editicons/delete.gif') }}" width="16" height="16"></a>{% endif %}
      </div>
    </td>
  <tr>  
  {% endfor %}
  {% if pagination.necessary %}
  <tr>
    <td colspan="2" style="text-align: right;">{{ _('Pages') }}: {{ pagination.generate() }}</td>
  </tr>
  {% endif %}
  </table>
  {% if form %}
  {{ render_post_form(form) }}  
  {% endif %}
</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.26481795088907706, 'fraction_numerical': 0.010160880609652836, 'mean_word_length': 4.108108108108108, 'pattern_counts': {'":': 0, '<': 104, '<?xml version=': 0, '>': 116, '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': '4941069', 'n_tokens_mistral': 1806, 'n_tokens_neox': 1673, 'n_words': 325}