From 7d685c5e64149e20c7dc8977f645e050be53ddfd Mon Sep 17 00:00:00 2001
From: Jonas Kohl
Date: Tue, 10 Dec 2024 17:15:10 +0100
Subject: Add classic theme
---
.../templates/old/components/topic_log.twig | 60 ++++++++++++++++++++++
1 file changed, 60 insertions(+)
create mode 100644 src/application/templates/old/components/topic_log.twig
(limited to 'src/application/templates/old/components/topic_log.twig')
diff --git a/src/application/templates/old/components/topic_log.twig b/src/application/templates/old/components/topic_log.twig
new file mode 100644
index 0000000..b03024c
--- /dev/null
+++ b/src/application/templates/old/components/topic_log.twig
@@ -0,0 +1,60 @@
+{%- set user = "" -%}
+{%- if postAuthor is null -%}
+ {%- set user = __("(deleted)")|e("html") -%}
+{%- else -%}
+ {%- set user =
+ ''
+ ~ postAuthor.displayName|e("html")
+ ~ ''
+ -%}
+{%- endif -%}
+
+
+
+
+ {% if postAuthor %}
+ {% if hideActions %}
+
+ {% else %}
+
+
+
+ {% endif %}
+ {% else %}
+
+ {% 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 %}
+ |
+
--
cgit v1.2.3