From 882fc69db8f55af898f2634bb1246590435b833f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 7 Aug 2020 13:54:54 +0200 Subject: [PATCH] Add contentAuthor badge to comments Resolves #3386 --- com.woltlab.wcf/templates/commentList.tpl | 4 ++++ com.woltlab.wcf/templates/commentResponseList.tpl | 4 ++++ wcfsetup/install/lang/de.xml | 1 + wcfsetup/install/lang/en.xml | 1 + 4 files changed, 10 insertions(+) diff --git a/com.woltlab.wcf/templates/commentList.tpl b/com.woltlab.wcf/templates/commentList.tpl index 22a98d6c5f..6e577321e5 100644 --- a/com.woltlab.wcf/templates/commentList.tpl +++ b/com.woltlab.wcf/templates/commentList.tpl @@ -38,6 +38,10 @@ {if $comment->isDisabled} {lang}wcf.message.status.disabled{/lang} {/if} + + {if $commentManager->isContentAuthor($comment)} + {lang}wcf.comment.objectAuthor{/lang} + {/if} diff --git a/com.woltlab.wcf/templates/commentResponseList.tpl b/com.woltlab.wcf/templates/commentResponseList.tpl index 30643fa672..91f88168dc 100644 --- a/com.woltlab.wcf/templates/commentResponseList.tpl +++ b/com.woltlab.wcf/templates/commentResponseList.tpl @@ -30,6 +30,10 @@ {if $response->isDisabled} {lang}wcf.message.status.disabled{/lang} {/if} + + {if $commentManager->isContentAuthor($response)} + {lang}wcf.comment.objectAuthor{/lang} + {/if} diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 70bb8616bf..8a0940e16b 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -3435,6 +3435,7 @@ Fehler sind beispielsweise: + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index d6681c93d7..1cdc1e220a 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -3358,6 +3358,7 @@ Errors are: + -- 2.20.1