{% load i18n %}

{% if entries|length %}
    <div class="card">
        <ul class="list-group list-group-flush">
            {% for log in entries %}
                <li class="list-group-item logentry">
                    <span class="time">
                        <i class="fa fa-clock-o"></i> {{ log.timestamp|date:"SHORT_DATETIME_FORMAT" }}
                    </span>
                    <span class="person">
                        {% if log.person %}
                            {% if log.is_orga_action %}
                                <br>
                                <i class="fa fa-check-circle fa-fw"
                                   data-toggle="tooltip"
                                   title="{% translate "This change was performed by a member of the event orga." %}">
                                </i>
                            {% else %}
                                <i class="fa fa-user fa-fw"></i>
                            {% endif %}
                            {% if log.is_orga_action and hide_orga %}
                                {% translate "An organiser" %}
                            {% else %}
                                {{ log.person.get_display_name }}
                            {% endif %}
                        {% endif %}
                    </span>
                    <span class="log-object">
                        {% if not hide_orga and log.display_object %}<i class="fa fa-flag"></i>{{ log.display_object|safe }}{% endif %}
                    </span>
                    <span class="log-text">{{ log.display }}</span>
                </li>
            {% endfor %}
        </ul>
    </div>
{% endif %}
