Add contentAuthor badge to comments
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 7 Aug 2020 11:54:54 +0000 (13:54 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 7 Aug 2020 11:57:56 +0000 (13:57 +0200)
Resolves #3386

com.woltlab.wcf/templates/commentList.tpl
com.woltlab.wcf/templates/commentResponseList.tpl
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 22a98d6c5f6ae67172246a121d8e473602339a68..6e577321e56a37598582229a3706d6a57433a6bd 100644 (file)
                                                                {if $comment->isDisabled}
                                                                        <span class="badge label green jsIconDisabled">{lang}wcf.message.status.disabled{/lang}</span>
                                                                {/if}
+                                                               
+                                                               {if $commentManager->isContentAuthor($comment)}
+                                                                       <span class="badge label">{lang}wcf.comment.objectAuthor{/lang}</span>
+                                                               {/if}
                                                        </h3>
                                                </div>
                                                
index 30643fa672f207cc958370f183e808fdd7623eea..91f88168dc213bcd757380652d2e17e62ed2814d 100644 (file)
                                                        {if $response->isDisabled}
                                                                <span class="badge label green jsIconDisabled">{lang}wcf.message.status.disabled{/lang}</span>
                                                        {/if}
+                                                       
+                                                       {if $commentManager->isContentAuthor($response)}
+                                                               <span class="badge label">{lang}wcf.comment.objectAuthor{/lang}</span>
+                                                       {/if}
                                                </h3>
                                        </div>
                                        
index 70bb8616bfe5bc1ac00f3dfc269788a0720302bc..8a0940e16bb012ff0ac040ca00b3a47ca8ab96bb 100644 (file)
@@ -3435,6 +3435,7 @@ Fehler sind beispielsweise:
                <item name="wcf.comment.guestDialog.title"><![CDATA[Gastkommentar]]></item>
                <item name="wcf.comment.sortField.cumulativeLikes"><![CDATA[Reaktionen]]></item>
                <item name="wcf.comment.sortField.time"><![CDATA[Datum]]></item>
+               <item name="wcf.comment.objectAuthor"><![CDATA[Autor]]></item>
        </category>
        <category name="wcf.condition">
                <item name="wcf.condition.greaterThan"><![CDATA[mehr als]]></item>
index d6681c93d78d0ce6700f5359f5faa411b5482b14..1cdc1e220a2a8c0410fa63b58f4b44fbb548302d 100644 (file)
@@ -3358,6 +3358,7 @@ Errors are:
                <item name="wcf.comment.guestDialog.title"><![CDATA[Guest Comment]]></item>
                <item name="wcf.comment.sortField.cumulativeLikes"><![CDATA[Reactions]]></item>
                <item name="wcf.comment.sortField.time"><![CDATA[Date]]></item>
+               <item name="wcf.comment.objectAuthor"><![CDATA[Author]]></item>
        </category>
        <category name="wcf.condition">
                <item name="wcf.condition.greaterThan"><![CDATA[greater than]]></item>