| 1 | {capture assign='pageTitle'}{$__wcf->getActivePage()->getTitle()}: {$queue->getTitle()}{/capture} |
| 2 | |
| 3 | {capture assign='contentHeader'} |
| 4 | <header class="contentHeader"> |
| 5 | <div class="contentHeaderTitle"> |
| 6 | <h1 class="contentTitle">{$__wcf->getActivePage()->getTitle()}</h1> |
| 7 | |
| 8 | {if $queue->lastChangeTime} |
| 9 | <dl class="plain inlineDataList"> |
| 10 | <dt>{lang}wcf.moderation.lastChangeTime{/lang}</dt> |
| 11 | <dd>{@$queue->lastChangeTime|time}</dd> |
| 12 | </dl> |
| 13 | {/if} |
| 14 | |
| 15 | <dl class="plain inlineDataList" id="moderationAssignedUserContainer"> |
| 16 | <dt>{lang}wcf.moderation.assignedUser{/lang}</dt> |
| 17 | <dd id="moderationAssignedUser"> |
| 18 | {if $queue->assignedUserID} |
| 19 | <a href="{link controller='User' id=$assignedUserID}{/link}" class="userLink" data-object-id="{@$assignedUserID}">{$queue->assignedUsername}</a> |
| 20 | {else} |
| 21 | {lang}wcf.moderation.assignedUser.nobody{/lang} |
| 22 | {/if} |
| 23 | </dd> |
| 24 | </dl> |
| 25 | |
| 26 | <dl class="plain inlineDataList" id="moderationStatusContainer"> |
| 27 | <dt>{lang}wcf.moderation.status{/lang}</dt> |
| 28 | <dd id="moderationQueueStatus">{$queue->getStatus()}</dd> |
| 29 | </dl> |
| 30 | </div> |
| 31 | |
| 32 | {hascontent} |
| 33 | <nav class="contentHeaderNavigation"> |
| 34 | <ul> |
| 35 | {content} |
| 36 | {if $queue->getAffectedObject()}<li><a href="{$queue->getAffectedObject()->getLink()}" class="button buttonPrimary">{icon name='arrow-right'} <span>{lang}wcf.moderation.jumpToContent{/lang}</span></a></li>{/if} |
| 37 | {event name='contentHeaderNavigation'} |
| 38 | {/content} |
| 39 | </ul> |
| 40 | </nav> |
| 41 | {/hascontent} |
| 42 | </header> |
| 43 | {/capture} |
| 44 | |
| 45 | {capture assign='contentInteractionButtons'} |
| 46 | <button |
| 47 | type="button" |
| 48 | id="moderationAssignUser" |
| 49 | class="contentInteractionButton button small jsOnly" |
| 50 | data-url="{$queue->endpointAssignUser()}" |
| 51 | > |
| 52 | {icon name='user-plus' type='solid'} |
| 53 | <span>{lang}wcf.moderation.assignedUser.change{/lang}</span> |
| 54 | </button> |
| 55 | {if !$queue->isDone()} |
| 56 | {if $queueManager->canRemoveContent($queue->getDecoratedObject())} |
| 57 | <button type="button" id="removeContent" class="contentInteractionButton button small jsOnly">{icon name='xmark'} <span>{lang}wcf.moderation.activation.removeContent{/lang}</span></button> |
| 58 | {/if} |
| 59 | <button type="button" id="removeReport" class="contentInteractionButton button small jsOnly">{icon name='square-check'} <span>{lang}wcf.moderation.report.removeReport{/lang}</span></button> |
| 60 | {/if} |
| 61 | {if $queue->canChangeJustifiedStatus()} |
| 62 | <button type="button" id="changeJustifiedStatus" class="contentInteractionButton button small jsOnly">{icon name='arrows-rotate'} <span>{lang}wcf.moderation.report.changeJustifiedStatus{/lang}</span></button> |
| 63 | {/if} |
| 64 | {/capture} |
| 65 | |
| 66 | {include file='header'} |
| 67 | |
| 68 | {include file='shared_formError'} |
| 69 | |
| 70 | <section class="section"> |
| 71 | <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedBy{/lang}</h2> |
| 72 | |
| 73 | <div class="box32"> |
| 74 | {user object=$reportUser type='avatar32' ariaHidden='true' tabindex='-1'} |
| 75 | |
| 76 | <div> |
| 77 | <div class="containerHeadline"> |
| 78 | <h3> |
| 79 | {if $reportUser->userID} |
| 80 | {user object=$reportUser} |
| 81 | {else} |
| 82 | {lang}wcf.user.guest{/lang} |
| 83 | {/if} |
| 84 | <small class="separatorLeft">{@$queue->time|time}</small> |
| 85 | </h3> |
| 86 | </div> |
| 87 | |
| 88 | <div class="containerContent">{@$queue->getFormattedMessage()}</div> |
| 89 | </div> |
| 90 | </div> |
| 91 | </section> |
| 92 | |
| 93 | <section class="section"> |
| 94 | <header class="sectionHeader"> |
| 95 | <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedContent{/lang}</h2> |
| 96 | <p class="sectionDescription">{lang}wcf.moderation.type.{@$queue->getObjectTypeName()}{/lang}</p> |
| 97 | </header> |
| 98 | |
| 99 | {@$reportedContent} |
| 100 | </section> |
| 101 | |
| 102 | <section id="comments" class="section sectionContainerList moderationComments"> |
| 103 | <header class="sectionHeader"> |
| 104 | <h2 class="sectionTitle">{lang}wcf.global.comments{/lang}{if $queue->comments} <span class="badge">{#$queue->comments}</span>{/if}</h2> |
| 105 | <p class="sectionDescription">{lang}wcf.moderation.comments.description{/lang}</p> |
| 106 | </header> |
| 107 | |
| 108 | {include file='comments' commentContainerID='moderationQueueCommentList' commentObjectID=$queueID} |
| 109 | </section> |
| 110 | |
| 111 | <script data-relocate="true"> |
| 112 | require(['WoltLabSuite/Core/Controller/Moderation/AssignUser'], ({ setup }) => { |
| 113 | {jsphrase name='wcf.moderation.assignedUser.nobody'} |
| 114 | |
| 115 | setup(document.getElementById('moderationAssignUser')); |
| 116 | }); |
| 117 | |
| 118 | $(function() { |
| 119 | WCF.Language.addObject({ |
| 120 | 'wcf.moderation.report.removeContent.confirmMessage': '{jslang}wcf.moderation.report.removeContent.confirmMessage{/jslang}', |
| 121 | 'wcf.moderation.report.removeContent.reason': '{jslang}wcf.moderation.report.removeContent.reason{/jslang}', |
| 122 | 'wcf.moderation.report.removeReport.confirmMessage': '{jslang}wcf.moderation.report.removeReport.confirmMessage{/jslang}', |
| 123 | 'wcf.moderation.report.removeReport.markAsJustified': '{jslang}wcf.moderation.report.removeReport.markAsJustified{/jslang}', |
| 124 | 'wcf.moderation.report.removeReport.confirmMessage': '{jslang}wcf.moderation.report.removeReport.confirmMessage{/jslang}', |
| 125 | 'wcf.moderation.report.changeJustifiedStatus.markAsJustified': '{jslang}wcf.moderation.report.changeJustifiedStatus.markAsJustified{/jslang}', |
| 126 | 'wcf.moderation.report.changeJustifiedStatus.confirmMessage': '{jslang}wcf.moderation.report.changeJustifiedStatus.confirmMessage{/jslang}', |
| 127 | }); |
| 128 | |
| 129 | new WCF.Moderation.Report.Management( |
| 130 | {@$queue->queueID}, |
| 131 | '{link controller='ModerationList' encode=false}{/link}', |
| 132 | {if $queue->markAsJustified}true{else}false{/if} |
| 133 | ); |
| 134 | }); |
| 135 | </script> |
| 136 | |
| 137 | {include file='footer'} |