{% load seahub_tags avatar_tags i18n %} {% load url from future %} {% for ev in events %}
  • {% if ev.etype == 'repo-update' %} {% with author=ev.commit.creator_name commit=ev.commit repo=ev.repo %}
    {% avatar author 40 %}
    {{ commit.ctime|translate_seahub_time }} {{ author|email2nickname }}

    {% trans 'Updated library' %} {{ repo.name }}

    {{ commit.desc|translate_commit_desc }} {% if repo.encrypted %} {% trans 'Details' %} {% else %} {% trans 'Details' %} {% endif %}

    {% endwith %} {% endif %} {% if ev.etype == 'repo-create' %} {% with author=ev.creator repo_id=ev.repo_id repo_name=ev.repo_name %}
    {% avatar author 40 %}
    {{ ev.timestamp|translate_seahub_time }} {{ author|email2nickname }}

    {% trans 'Created library' %} {{ repo_name }}

    {% endwith %} {% endif %} {% if ev.etype == 'repo-delete' %} {% with author=ev.repo_owner repo_name=ev.repo_name %}
    {% avatar author 40 %}
    {{ ev.timestamp|translate_seahub_time }} {{ author|email2nickname }}

    {% trans 'Deleted library' %} {{ repo_name }}

    {% endwith %} {% endif %}
  • {% endfor %}