{% extends 'IcapLessonBundle:Lesson:layout.html.twig' %} {% block lesson_content %}

{{ _resource.getResourceNode().getName() }}

{% if is_granted('EDIT', node) and chapter is defined and chapter != null %} {% endif %} {% render controller('IcapNotificationBundle:FollowerResource:renderForm', {'resourceId': _resource.resourceNode.id, 'resourceClass': _resource.resourceNode.class}) %}
{{ macros.flashBox() }}
{% if chapter is defined and chapter != null %}
{% include 'IcapLessonBundle:Lesson:viewChild.html.twig' %}

{{ chapter.title }}

{% if is_granted('EDIT', node) %} {% endif %}
{{ chapter.text | raw }}
{% else %}
{{ 'lesson_welcome'|trans({}, 'icap_lesson') }}
{% if is_granted('EDIT', node) %} {% endif %}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% if is_granted('EDIT', node) %} {% endif %} {% endblock %}