templates/olympiads/iofs/text.html.twig line 1
{% extends 'layout/base.html.twig' %}
{% block body_class %}
{{ parent() }}
olympiad-page
{% endblock %}
{% block title %}
{{ title(text.caption, item.caption) }}
{% endblock %}
{% block body %}
{% import "parts/pretty_date.html.twig" as pd %}
{% include "olympiads/iofs/presentation.html.twig" %}
<div class="olympiad iofs">
<div class="container iofs__inner">
<div class="iofs__content">
{% if text %}
{% if is_granted("ROLE_ADMIN") %}
<a href="{{ path('admin_olympiad_textblock_edit.ru',{olymp_id:item.id, id:text.id}) }}"
class="btn btn-outline-primary">Редактировать страницу</a>
<hr>
{% endif %}
{# {% if text.showCaption %}
<h2 class="section-title section-title_size_s olympiad__section-title">{{ text.caption }}</h2>
{% endif %} #}
<section class="iofs__text text-block">
{{ text.content|raw }}
</section>
{# {% else %}
<h2 class="section-title section-title_size_s olympiad__section-title">Раздел не заполнен</h2> #}
{% endif %}
{% if materials is defined %}
{% for m in materials %}
{% if m.materials|length %}
{% include "olympiads/iofs/material.html.twig" with {
caption: m.caption|trans,
materials: m.materials,
remove_margin: loop.first and text is defined and not text.content
} %}
{% endif %}
{% endfor %}
{% endif %}
{# <a class="mobile-fixed-button iofs__mobile-register">Принять участие</a> #}
</div>
{{ include('olympiads/iofs/stages.html.twig') }}
</div>
</div>
{% endblock %}