From efb7e14998fcff5451cb82238ca2eede4e50fb15 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 19 Jun 2016 18:43:34 +0200 Subject: [PATCH] Added type-badge in moderation drop-down --- com.woltlab.wcf/templates/moderationQueueList.tpl | 5 ++++- .../data/moderation/queue/ModerationQueueAction.class.php | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/com.woltlab.wcf/templates/moderationQueueList.tpl b/com.woltlab.wcf/templates/moderationQueueList.tpl index 323eee588c..3d4c95f4b3 100644 --- a/com.woltlab.wcf/templates/moderationQueueList.tpl +++ b/com.woltlab.wcf/templates/moderationQueueList.tpl @@ -5,7 +5,10 @@ {@$queue->getUserProfile()->getAvatar()->getImageTag(48)}
-

{$queue->getAffectedObject()->getTitle()}

+

+ {lang}wcf.moderation.type.{@$definitionNames[$queue->objectTypeID]}{/lang} + {$queue->getAffectedObject()->getTitle()} +

{if $queue->getUserProfile()->userID}{$queue->getAffectedObject()->getUsername()}{else}{$queue->getAffectedObject()->getUsername()}{/if} {@$queue->lastChangeTime|time}
diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php index 1c8f904281..ec446480e2 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php @@ -163,7 +163,8 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction { } WCF::getTPL()->assign([ - 'queues' => $queues + 'queues' => $queues, + 'definitionNames' => ModerationQueueManager::getInstance()->getDefinitionNamesByObjectTypeIDs() ]); return [ -- 2.20.1