{% extends '::base.html.twig' %}
{% block title %}View Activities{% endblock %}
{% block navigation %}
    {% include '::navigation.auth.html.twig' %}
{% endblock %}

{% block body -%}
    <h1>View Activities</h1>
    <a href="{{ url('log_delete_form') }}">Delete all logs</a>
    <hr>
    <table class="table table-striped table-condensed" data-toggle="table">
        <thead>
            <tr>
                <th style="width: 20%">#</th>
                <th style="width: 80%">Message</th>
            </tr>
        </thead>
        <tbody>
        {% for entity in entities %}
            <tr>
                <td><a href="{{ path('log_show', { 'id': entity.id }) }}">[#{{ entity.id }}][{{ entity.severity }}] {% if entity.timestamp %}{{ entity.timestamp|date('Y-m-d H:i:s') }}{% endif %}</a></td>
                <td>{{ entity.message }}</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
    <span>Page: </span>
        {% for i in 1..logcount %}
            {% if i == curPage %}
                <span> {{ i }} </span>
            {% else %}
                <a href="{{ path('log', {'page' : i}) }}">{{ i }}</a>
            {% endif %}
        {% endfor %}

    {% endblock %}
{% extends '::base.html.twig' %}
{% block title %}View Activities{% endblock %}
{% block navigation %}
    {% include '::navigation.auth.html.twig' %}
{% endblock %}

{% block body -%}
    <h1>View Activities</h1>
    <a href="{{ url('log_delete_form') }}">Delete all logs</a>
    - <span>Page: </span>
        {% for i in 1..logcount %}
            {% if i == curPage %}
                <span> {{ i }} </span>
            {% else %}
                <a href="{{ path('log', {'page' : i}) }}">{{ i }}</a>
            {% endif %}
        {% endfor %}
    <hr>
    <table class="table table-striped table-condensed" data-toggle="table">
        <thead>
            <tr>
                <th style="width: 20%">#</th>
                <th style="width: 80%">Message</th>
            </tr>
        </thead>
        <tbody>
        {% for entity in entities %}
            <tr>
                <td><a href="{{ path('log_show', { 'id': entity.id }) }}">[#{{ entity.id }}][{{ entity.severity }}] {% if entity.timestamp %}{{ entity.timestamp|date('Y-m-d H:i:s') }}{% endif %}</a></td>
                <td>{{ entity.message }}</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

    {% endblock %}
Move log pagination to the top
Move log pagination to the top
