{% extends 'base.html.twig' %}
{% set page_title = 'Logi: rozmowy' %}
{% block content_class_name %}logs-chats{% endblock %}

{% block content %}
    {{ parent() }}

    Daty są datami zamieszczenia logów na stronie a nie datami logowania.
    <br />
    <br />
    {% for dateLogs in chats %}
        <time class="title timeago" datetime="{{ dateLogs['date'] }}" id="{{ dateLogs['date']|date('Y-m-d') }}">{{ dateLogs['date']|localizeddate('full', 'none', 'pl')|capitalize }}</time>
        <a href="#{{ dateLogs['date']|date('Y-m-d') }}" class="permalink">¶</a>
        <br />
        <ul>
            {% for filename,title in dateLogs['logs'] %}
                <li><a href="{{ path('rozmowa', {'id': filename}) }}">{{ title }}</a></li>
            {% endfor %}
        </ul>
    {% endfor %}
{% endblock %}

{% extends 'base.html.twig' %}
{% set page_title = 'Logi: rozmowy' %}
{% block content_class_name %}logs-chats{% endblock %}

{% block content %}
    {{ parent() }}

    {% if chats|length > 0 %}
        Daty są datami zamieszczenia logów na stronie a nie datami logowania.
        <br />
        <br />
        {% for dateLogs in chats %}
            <time class="title timeago" datetime="{{ dateLogs['date'] }}" id="{{ dateLogs['date']|date('Y-m-d') }}">{{ dateLogs['date']|localizeddate('full', 'none', 'pl')|capitalize }}</time>
            <a href="#{{ dateLogs['date']|date('Y-m-d') }}" class="permalink">¶</a>
            <br />
            <ul>
                {% for filename,title in dateLogs['logs'] %}
                    <li><a href="{{ path('rozmowa', {'id': filename}) }}">{{ title }}</a></li>
                {% endfor %}
            </ul>
        {% endfor %}
    {% else %}
        Brak logów.
    {% endif %}
{% endblock %}

Fix logs/chats view when there's no log available.
Fix logs/chats view when there's no log available.
