<!--
SPDX-FileCopyrightText: 2021-present Tobias Kunze
SPDX-License-Identifier: AGPL-3.0-only WITH LicenseRef-Pretalx-AGPL-3.0-Terms
-->

{% load i18n %}
{% load rich_text %}

<tr>
    <td class="numeric-left">{{ review.score }}</td>
    {% if score_categories|length > 1 %}
        {% for score in review.scores %}
            <td class="numeric-left">
                {{ score }}
            </td>
        {% endfor %}
    {% endif %}
    {% for answer in review.answers %}
        <td>
            {{ answer.answer }}
        </td>
    {% endfor %}
    <td class="review-text">
        {{ review.text|rich_text }}
    </td>
    <td>
        {% if show_reviewer_name %}
            {% include "orga/includes/user_name.html" with user=review.user lightbox=True %}
        {% elif not read_only %}
            <div class="btn btn-success" id="edit-review" role="button">{{ phrases.base.edit }}</div>
        {% endif %}
    </td>
</tr>
