{% extends "api2/base.html" %}

{% load seahub_tags avatar_tags i18n %}
{% load url from future %}

{% block main_panel %}
{% if events and events|length > 0 %}
<div id="events">
    <div id="events-body">
        {% include "api2/events_body.html" %}
    </div>
    {% if events_more %}
    <div id="loading-icon"><img src="{{MEDIA_URL}}img/loading-icon.gif" alt="{% trans 'Loading...' %}" /></div>
    <p id="events-error" class="error hide"></p>
    {% endif %}
</div>

{% else %}
<p class="error">{% trans "No activity now or the function is not supported." %}</p>

{% endif %}
{% endblock %}

{% block extra_script %}
<script type="text/javascript">
{% if events %}
{% include "api2/events_js.html" %}
{% endif %}
</script>
{% endblock %}
