<commit_before>
<section class="news">
    <h2>Latest activity</h2>

    <ul class='activity'>
{% for log in activity %}
    {% set username = 'unknown' %}
    {% if attribute(users, log.username) is defined %}
        {% set username = attribute(users, log.username).displayname %}
    {% endif %}
    <li>
        {%  if log.code == "save content" %}
            Saved {{ log.contenttype }} "<strong>{{ log.message }}</strong>" by <em>{{ username }}</em>
        {%  elseif log.code == "login" %}
            <em>{{ username }}</em> logged in
        {%  elseif log.code == "logout" %}
            <em>{{ username }}</em> logged out
        {%  elseif log.code == "fixme" %}
            <b>Fixme:</b> {{ log.message }}
        {%  elseif log.code == "user" %}
            <b>{{ log.message }}</b> by {{ username }}
        {%  else %}
            {{ log.message }}
        {%  endif %}
        <small>(<time class="moment" datetime="{{ log.date|date("c") }}" title="{{ log.date }}">{{ log.date }}</time>)</small>
    </li>
{%  endfor %}
    </ul>

    <p style='text-align: right;'><a href="{{ path('activitylog') }}">more activity »</a></p>

</section>
<commit_msg>Fixes #71 - Dashboard "latest activity" uses plural<commit_after>
<section class="news">
    <h2>Latest activity</h2>

    <ul class='activity'>
{% for log in activity %}
    {% set username = 'unknown' %}
    {% if attribute(users, log.username) is defined %}
        {% set username = attribute(users, log.username).displayname %}
    {% endif %}
    <li>
        {%  if log.code == "save content" %}
            Saved {{ app.config.contenttypes[log.contenttype].singular_name) }}
            "<strong>{{ log.message }}</strong>" by <em>{{ username }}</em>
        {%  elseif log.code == "login" %}
            <em>{{ username }}</em> logged in
        {%  elseif log.code == "logout" %}
            <em>{{ username }}</em> logged out
        {%  elseif log.code == "fixme" %}
            <b>Fixme:</b> {{ log.message }}
        {%  elseif log.code == "user" %}
            <b>{{ log.message }}</b> by {{ username }}
        {%  else %}
            {{ log.message }}
        {%  endif %}
        <small>(<time class="moment" datetime="{{ log.date|date("c") }}" title="{{ log.date }}">{{ log.date }}</time>)</small>
    </li>
{%  endfor %}
    </ul>

    <p style='text-align: right;'><a href="{{ path('activitylog') }}">more activity »</a></p>

</section>

{'fraction_non_alphanumeric': 0.2201154163231657, 'fraction_numerical': 0.00247320692497939, 'mean_word_length': 2.3065395095367847, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '223596', 'n_tokens_mistral': 821, 'n_tokens_neox': 757, 'n_words': 188}