{% extends 'KorobiWebBundle::layout.html.twig' %}

{% set page_title = "Log" %}

{% block body %}
    <div class="logs">
        {% for message in logs %}
            <span class="logs--line">{{ message|raw }}</span>
        {% endfor %}
    </div>
{% endblock %}

{% extends 'KorobiWebBundle::layout.html.twig' %}

{% set page_title = "Log" %}

{% block body %}
    <div class="logs">
        {% for message in logs %}
            <span class="logs--line" data-line-num="{{ loop.index }}">{{ message|raw }}</span>
        {% endfor %}
    </div>
{% endblock %}

Add line numbers to the HTML
Add line numbers to the HTML
