{% extends 'IcapWikiBundle::layout.html.twig' %} {% trans_default_domain "icap_wiki" %} {% block title %}{{ _resource.resourceNode.name }}{% endblock %} {% block wiki_buttons %} {% if user is not empty and (isAdmin or _resource.mode is not sameas(2)) %}
{{ 'create_new_section'|trans({}, 'icap_wiki') }} {% if isAdmin %} {{'options'|trans({},'icap_wiki')}} {% endif %} {% render controller('IcapNotificationBundle:FollowerResource:renderForm', {'resourceId': _resource.resourceNode.id, 'resourceClass': _resource.resourceNode.class}) %}
{% endif %} {% endblock %} {% block wiki_content %} {% if tree is not empty and tree[0] is not empty and tree[0].activeContribution.text is not empty%}
{{ tree[0].activeContribution.text|raw }}
{% endif %}
{% if tree is not empty and tree[0] is not empty and tree[0].__children is not empty %}
{{ 'wiki_contents'|trans({},'icap_wiki') }} {% if isAdmin %} {% endif %}
{% include "IcapWikiBundle:Wiki:wikiContents.html.twig" with {'sections' : tree[0].__children, 'isAdmin' : isAdmin, 'delimeter' : '.', 'rootId' : tree[0].id } %}
{% include "IcapWikiBundle:Wiki:wikiSections.html.twig" with {'sections' : tree[0].__children, 'wikiId' : _resource.id, 'isAdmin' : isAdmin, 'wikiMode' : _resource.mode, 'user' : user } %}
{% else %}
{% endif %} {% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}