From: Tim Düsterhus Date: Fri, 7 Aug 2020 11:54:54 +0000 (+0200) Subject: Add contentAuthor badge to comments X-Git-Tag: 5.3.0_Alpha_1~80^2^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=882fc69db8f55af898f2634bb1246590435b833f;p=GitHub%2FWoltLab%2FWCF.git Add contentAuthor badge to comments Resolves #3386 --- 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: +