diff options
author | Jonas Kohl | 2024-12-10 17:15:10 +0100 |
---|---|---|
committer | Jonas Kohl | 2024-12-10 17:15:10 +0100 |
commit | 7d685c5e64149e20c7dc8977f645e050be53ddfd (patch) | |
tree | 44a931c23979aaa2e22b079f8af9232f490eb4d3 /src/application/templates/old/components/topic_log.twig | |
parent | 7c9f91333da983da37d3dc837fa61ef0bff64549 (diff) |
Add classic theme
Diffstat (limited to 'src/application/templates/old/components/topic_log.twig')
-rw-r--r-- | src/application/templates/old/components/topic_log.twig | 60 |
1 files changed, 60 insertions, 0 deletions
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 = + '<a href="?_action=viewuser&user=' + ~ postAuthor.id|url_encode|e("html") + ~ '">' + ~ postAuthor.displayName|e("html") + ~ '</a>' + -%} +{%- endif -%} + +<tr> +<td width="64"> + <a id="post-{{ logMessage.id }}"></a> + {% if postAuthor %} + {% if hideActions %} + <img class="media-object" alt="{{ __("Profile picture") }}" src="?_action=profilepicture&user={{ postAuthor.id|url_encode }}" width="64" height="64"> + {% else %} + <a href="?_action=viewuser&user={{ postAuthor.id|url_encode }}"> + <img border="0" class="media-object" alt="{{ __("Profile picture") }}" src="?_action=profilepicture&user={{ postAuthor.id|url_encode }}" width="64" height="64"> + </a> + {% endif %} + {% else %} + <div class="media-object" style="width:64px;height:64px"></div> + {% endif %} +</td> +{% if logMessage.type == constant("mystic\\forum\\orm\\TopicLogMessage::LOCKED") %} + <td bgcolor="#FFCC99" align="center"> + <span class="fa fa-lock text-info" aria-hidden="true"></span> + <em>{{ __("%user% locked this topic", { + "user": user, + }) }}</em> + <br> + <small class="_time">{{ logMessage.postDate.format("c") }}</small> +{% elseif logMessage.type == constant("mystic\\forum\\orm\\TopicLogMessage::UNLOCKED") %} + <td bgcolor="#CCFFCC" align="center"> + <span class="fa fa-unlock text-success" aria-hidden="true"></span> + <em>{{ __("%user% unlocked this topic", { + "user": user, + }) }}</em> + <br> + <small class="_time">{{ logMessage.postDate.format("c") }}</small> +{% elseif logMessage.type == constant("mystic\\forum\\orm\\TopicLogMessage::TITLE_CHANGED") %} + <td bgcolor="#99CCFF" align="center"> + <span class="fa fa-pencil text-info" aria-hidden="true"></span> + <em>{{ __("%user% changed the title of this topic from %old_title% to %new_title%", { + "user": user, + "old_title": '<strong>' ~ logMessage.params.old_value|default(__("unknown"))|e("html") ~ '</strong>', + "new_title": '<strong>' ~ logMessage.params.new_value|default(__("unknown"))|e("html") ~ '</strong>', + }) }}</em> + <br> + <small class="_time">{{ logMessage.postDate.format("c") }}</small> +{% else %} + <td> + {{ __("unknown") }} +{% endif %} +</td> +</tr> |