{% 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 %} Thread title has been changed from {{ old_title }}. {% endblocktrans %} {% elif post.event_type == 'pinned_globally' %} {% trans "Thread has been pinned globally." %} {% elif post.event_type == 'pinned_locally' %} {% trans "Thread has been pinned locally." %} {% elif post.event_type == 'unpinned' %} {% trans "Thread has been unpinned." %} {% 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 %} 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 %} The {{ merged_thread }} thread has been merged into this thread. {% endblocktrans %} {% elif post.event_type == 'approved' %} {% trans "Thread has been approved." %} {% elif post.event_type == 'opened' %} {% trans "Thread has been opened." %} {% elif post.event_type == 'closed' %} {% trans "Thread has been closed." %} {% elif post.event_type == 'unhid' %} {% trans "Thread has been revealed." %} {% elif post.event_type == 'hid' %} {% trans "Thread has been made hidden." %} {% elif post.event_type == 'tookover' %} {% trans "Took thread over." %} {% elif post.event_type == 'owner_left' %} {% trans "Owner has left thread. This thread is now closed." %} {% elif post.event_type == 'participant_left' %} {% trans "Participant has left thread." %} {% elif post.event_type == 'changed_owner' %} {% capture trimmed as user %} {{ post.event_context.user.username }} {% endcapture %} {% blocktrans trimmed with user=user|safe %} 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 %} 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 %} Removed {{ user }} from thread. {% endblocktrans %} {% endif %}
{% include "misago/thread/posts/event/info.html" %}