{% extends 'events/display/conference/base.html' %}

{% block title %}
    {# The title of a user-generated page isn't translated, localized title is not needed #}
    {{ page.menu_entry.title }}
{% endblock %}

{% block page_actions %}
    {% if event.can_manage(session.user) %}
        <div class="toolbar">
            <a href="#"
               class="i-button icon-edit"
               data-href="{{ url_for('event_layout.menu_entry_edit', page.menu_entry) }}"
               data-title
               title="{% trans %}Edit page{% endtrans %}"
               data-ajax-dialog
               data-reload-after></a>
        </div>
    {% endif %}
{% endblock %}

{% block content %}
    <div class="editor-output">{{ page.html|sanitize_html }}</div>
{% endblock %}
