{%- set user = "" -%} {%- if postAuthor is null -%} {%- set user = __("(deleted)")|e("html") -%} {%- else -%} {%- set user = '' ~ postAuthor.displayName|e("html") ~ '' -%} {%- endif -%}
{% if logMessage.type == constant("mystic\\forum\\orm\\TopicLogMessage::LOCKED") %}
{{ __("%user% locked this topic", { "user": user, }) }}
{{ logMessage.postDate.format("c") }}
{% elseif logMessage.type == constant("mystic\\forum\\orm\\TopicLogMessage::UNLOCKED") %}
{{ __("%user% unlocked this topic", { "user": user, }) }}
{{ logMessage.postDate.format("c") }}
{% elseif logMessage.type == constant("mystic\\forum\\orm\\TopicLogMessage::TITLE_CHANGED") %}
{{ __("%user% changed the title of this topic from %old_title% to %new_title%", { "user": user, "old_title": '' ~ logMessage.params.old_value|default(__("unknown"))|e("html") ~ '', "new_title": '' ~ logMessage.params.new_value|default(__("unknown"))|e("html") ~ '', }) }}
{{ logMessage.postDate.format("c") }}
{% else %} {{ __("unknown") }} {% endif %}