{% set layout = "ClarolineCoreBundle:Workspace:layout.html.twig" %}

{% if isDesktop() %}
    {% set layout = "ClarolineCoreBundle:Desktop:layout.html.twig" %}
{% endif %}

{% extends layout %}

{% block title %}{{ _resource.resourceNode.name ~ ' - ' ~ "logs" | trans({}, "platform") | striptags | raw }}{% endblock %}

{% block resourceBreadcrumb %}
    <li class="active">{{ _resource.getResourceNode().getName() ~ ' - ' ~ "logs" | trans({}, "platform") }}</li>
{% endblock %}

{% block section_content %}
    {% set filterFormAction = path('claro_resource_logs', {'node': _resource.resourceNode.id}) %}
    {% set pagination %}
        {{
            pagerfanta(
                pager,
                'twitter_bootstrap_translated',
                {
                    'proximity' : 1,
                    'routeName': 'claro_resource_logs_paginated',
                    'routeParams': {'node': _resource.resourceNode.id, 'filter': filter}
                }
            )
        }}
    {% endset %}

    {% include 'ClarolineCoreBundle:Log:tool_view_list.html.twig' with {'filterFormAction': filterFormAction, 'pagination': pagination, 'isDesktop': isDesktop()} %}
{% endblock %}
