{% load i18n misago_capture misago_shorthands %}
{% if post.event_type == 'changed_title' %} {% capture trimmed as old_title %} {{ post.event_context.old_title }} {% endcapture %} {% blocktrans trimmed with old_title=old_title|safe context "thread event" %} Thread title has been changed from {{ old_title }}. {% endblocktrans %} {% elif post.event_type == 'pinned_globally' %} {% trans "Thread has been pinned globally." context "thread event" %} {% elif post.event_type == 'pinned_locally' %} {% trans "Thread has been pinned in category." context "thread event" %} {% elif post.event_type == 'unpinned' %} {% trans "Thread has been unpinned." context "thread event" %} {% elif post.event_type == 'moved' %} {% capture trimmed as from_category %} {{ post.event_context.from_category.name }} {% endcapture %} {% blocktrans trimmed with from_category=from_category|safe context "thread event" %} Thread has been moved from {{ from_category }}. {% endblocktrans %} {% elif post.event_type == 'merged' %} {% capture trimmed as merged_thread %} {{ post.event_context.merged_thread }} {% endcapture %} {% blocktrans trimmed with merged_thread=merged_thread|safe context "thread event" %} The {{ merged_thread }} thread has been merged into this thread. {% endblocktrans %} {% elif post.event_type == 'approved' %} {% trans "Thread has been approved." context "thread event" %} {% elif post.event_type == 'opened' %} {% trans "Thread has been opened." context "thread event" %} {% elif post.event_type == 'closed' %} {% trans "Thread has been closed." context "thread event" %} {% elif post.event_type == 'unhid' %} {% trans "Thread has been revealed." context "thread event" %} {% elif post.event_type == 'hid' %} {% trans "Thread has been made hidden." context "thread event" %} {% elif post.event_type == 'tookover' %} {% trans "Took thread over." context "thread event" %} {% elif post.event_type == 'owner_left' %} {% trans "Owner has left thread. This thread is now closed." context "thread event" %} {% elif post.event_type == 'participant_left' %} {% trans "Participant has left thread." context "thread event" %} {% elif post.event_type == 'changed_owner' %} {% capture trimmed as user %} {{ post.event_context.user.username }} {% endcapture %} {% blocktrans trimmed with user=user|safe context "thread event" %} Changed thread owner to {{ user }}. {% endblocktrans %} {% elif post.event_type == 'added_participant' %} {% capture trimmed as user %} {{ post.event_context.user.username }} {% endcapture %} {% blocktrans trimmed with user=user|safe context "thread event" %} Added {{ user }} to thread. {% endblocktrans %} {% elif post.event_type == 'removed_participant' %} {% capture trimmed as user %} {{ post.event_context.user.username }} {% endcapture %} {% blocktrans trimmed with user=user|safe context "thread event" %} Removed {{ user }} from thread. {% endblocktrans %} {% endif %}
{% include "misago/thread/posts/event/info.html" %}