Small moderation improvement
authorMarcel Werk <burntime@woltlab.com>
Sun, 9 Jun 2013 21:56:06 +0000 (23:56 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 9 Jun 2013 21:56:06 +0000 (23:56 +0200)
com.woltlab.wcf/templates/moderationList.tpl
wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 79032e9463b2733e0e712427d3ceee138fb7dfb4..46cd1c1f3d5e37550985d5480b97dd29f8a1b695 100644 (file)
                                                                <span class="badge label">{lang}wcf.moderation.type.{@$definitionNames[$entry->objectTypeID]}{/lang}</span>
                                                                <a href="{$entry->getLink()}" class="messageGroupLink">{$entry->getTitle()}</a>
                                                        </h3>
-                                                       <small>{if $entry->getAffectedObject()->getUserID()}<a href="{link controller='User' id=$entry->getAffectedObject()->getUserID()}{/link}" class="userLink" data-user-id="{@$entry->userID}">{$entry->getAffectedObject()->getUsername()}</a>{else}{$entry->getAffectedObject()->getUsername()}{/if} - {@$entry->getAffectedObject()->getTime()|time}</small>    
+                                                       <small>{if $entry->getAffectedObject()->getUserID()}<a href="{link controller='User' id=$entry->getAffectedObject()->getUserID()}{/link}" class="userLink" data-user-id="{@$entry->userID}">{$entry->getAffectedObject()->getUsername()}</a>{else}{$entry->getAffectedObject()->getUsername()}{/if} - {@$entry->getAffectedObject()->getTime()|time} - {lang}wcf.moderation.type.{@$entry->getObjectTypeName()}{/lang}</small>  
                                                </td>
                                                <td class="columnText columnAssignedUserID">{if $entry->assignedUserID}<a href="{link controller='User' id=$entry->assignedUserID}{/link}" class="userLink" data-user-id="{@$entry->assignedUserID}">{$entry->assignedUsername}</a>{/if}</td>
                                                <td class="columnDate columnLastChangeTime">{if $entry->lastChangeTime}{@$entry->lastChangeTime|time}{/if}</td>
index a48cea9d35fa5c7c656dd69aae98a0af95186d11..eb61a1dbe8547646d6b129a6db6662b8600ee155 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\data\moderation\queue;
+use wcf\data\object\type\ObjectTypeCache;
 use wcf\data\user\User;
 use wcf\data\user\UserProfile;
 use wcf\data\DatabaseObjectDecorator;
@@ -152,4 +153,14 @@ class ViewableModerationQueue extends DatabaseObjectDecorator {
        public function getFormattedMessage() {
                return nl2br(htmlspecialchars($this->message));
        }
+       
+       /**
+        * Returns the object type name.
+        * 
+        * @return      string
+        */
+       public function getObjectTypeName() {
+               $objectType = ObjectTypeCache::getInstance()->getObjectType($this->objectTypeID);
+               return $objectType->objectType;
+       }
 }
index e8548a30b0ffc26da8d2094733c02dd3ab71ea99..eebcff82bdebb3371953585886bc87c890c8c3c4 100644 (file)
@@ -1699,6 +1699,8 @@ Erlaubte Dateiendungen: {', '|implode:$attachmentHandler->getAllowedExtensions()
                <item name="wcf.moderation.type.all"><![CDATA[Alle Einträge]]></item>
                <item name="wcf.moderation.type.com.woltlab.wcf.moderation.activation"><![CDATA[Freischaltung]]></item>
                <item name="wcf.moderation.type.com.woltlab.wcf.moderation.report"><![CDATA[Meldung]]></item>
+               <item name="wcf.moderation.type.com.woltlab.wcf.comment.comment"><![CDATA[Kommentar]]></item>
+               <item name="wcf.moderation.type.com.woltlab.wcf.comment.response"><![CDATA[Antwort auf Kommentar]]></item>
                <item name="wcf.moderation.showAll"><![CDATA[Alle Einträge anzeigen]]></item>
        </category>
        
index 685aaa30d7dc57f5c23876fe5e1f72b41d895c39..3c396feb00180e587401991c4400b2c22acfe8b9 100644 (file)
@@ -1698,6 +1698,8 @@ Allowed extensions: {', '|implode:$attachmentHandler->getAllowedExtensions()}]]>
                <item name="wcf.moderation.type.all"><![CDATA[All Items]]></item>
                <item name="wcf.moderation.type.com.woltlab.wcf.moderation.activation"><![CDATA[Approval]]></item>
                <item name="wcf.moderation.type.com.woltlab.wcf.moderation.report"><![CDATA[Report]]></item>
+               <item name="wcf.moderation.type.com.woltlab.wcf.comment.comment"><![CDATA[Comment]]></item>
+               <item name="wcf.moderation.type.com.woltlab.wcf.comment.response"><![CDATA[Comment Reply]]></item>
                <item name="wcf.moderation.showAll"><![CDATA[Show All Items]]></item>
        </category>