Commit | Line | Data |
---|---|---|
ff9e3598 | 1 | {capture assign='pageTitle'}{$__wcf->getActivePage()->getTitle()}: {$queue->getTitle()}{/capture} |
fc69b61d | 2 | |
3e93caf9 MW |
3 | {capture assign='contentHeader'} |
4 | <header class="contentHeader"> | |
5 | <div class="contentHeaderTitle"> | |
ff9e3598 | 6 | <h1 class="contentTitle">{$__wcf->getActivePage()->getTitle()}</h1> |
cc548158 | 7 | |
3e93caf9 MW |
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> | |
80673ab2 AE |
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} | |
3e93caf9 | 23 | </dd> |
e7b063d6 | 24 | </dl> |
3e93caf9 MW |
25 | |
26 | <dl class="plain inlineDataList" id="moderationStatusContainer"> | |
27 | <dt>{lang}wcf.moderation.status{/lang}</dt> | |
9c201b07 | 28 | <dd id="moderationQueueStatus">{$queue->getStatus()}</dd> |
3e93caf9 MW |
29 | </dl> |
30 | </div> | |
e7b063d6 | 31 | |
3e93caf9 MW |
32 | {hascontent} |
33 | <nav class="contentHeaderNavigation"> | |
34 | <ul> | |
35 | {content} | |
ab43711a | 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} |
8f0273e2 | 37 | {event name='contentHeaderNavigation'} |
3e93caf9 MW |
38 | {/content} |
39 | </ul> | |
40 | </nav> | |
41 | {/hascontent} | |
42 | </header> | |
43 | {/capture} | |
fc69b61d | 44 | |
9ba4fe51 | 45 | {capture assign='contentInteractionButtons'} |
43f1b183 TD |
46 | <button |
47 | type="button" | |
48 | id="moderationAssignUser" | |
49 | class="contentInteractionButton button small jsOnly" | |
e3dc004e AE |
50 | data-url="{$queue->endpointAssignUser()}" |
51 | > | |
52 | {icon name='user-plus' type='solid'} | |
53 | <span>{lang}wcf.moderation.assignedUser.change{/lang}</span> | |
54 | </button> | |
9ba4fe51 | 55 | {if !$queue->isDone()} |
b994467b | 56 | {if $queueManager->canRemoveContent($queue->getDecoratedObject())} |
eecd78e1 | 57 | <button type="button" id="removeContent" class="contentInteractionButton button small jsOnly">{icon name='xmark'} <span>{lang}wcf.moderation.activation.removeContent{/lang}</span></button> |
b994467b | 58 | {/if} |
eecd78e1 | 59 | <button type="button" id="removeReport" class="contentInteractionButton button small jsOnly">{icon name='square-check'} <span>{lang}wcf.moderation.report.removeReport{/lang}</span></button> |
9ba4fe51 MW |
60 | {/if} |
61 | {if $queue->canChangeJustifiedStatus()} | |
eecd78e1 | 62 | <button type="button" id="changeJustifiedStatus" class="contentInteractionButton button small jsOnly">{icon name='arrows-rotate'} <span>{lang}wcf.moderation.report.changeJustifiedStatus{/lang}</span></button> |
9ba4fe51 MW |
63 | {/if} |
64 | {/capture} | |
65 | ||
3e93caf9 | 66 | {include file='header'} |
fc69b61d | 67 | |
b54fdcc0 | 68 | {include file='shared_formError'} |
ee629b22 | 69 | |
95961bdf MW |
70 | <section class="section"> |
71 | <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedBy{/lang}</h2> | |
72 | ||
166d2b91 | 73 | <div class="box32"> |
2ee5392c | 74 | {user object=$reportUser type='avatar32' ariaHidden='true' tabindex='-1'} |
166d2b91 MW |
75 | |
76 | <div> | |
77 | <div class="containerHeadline"> | |
78 | <h3> | |
a2261b8d MW |
79 | {if $reportUser->userID} |
80 | {user object=$reportUser} | |
81 | {else} | |
82 | {lang}wcf.user.guest{/lang} | |
83 | {/if} | |
929f7e47 | 84 | <small class="separatorLeft">{@$queue->time|time}</small> |
166d2b91 MW |
85 | </h3> |
86 | </div> | |
87 | ||
95961bdf | 88 | <div class="containerContent">{@$queue->getFormattedMessage()}</div> |
166d2b91 MW |
89 | </div> |
90 | </div> | |
95961bdf | 91 | </section> |
166d2b91 | 92 | |
d1a745a9 MS |
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 | ||
95961bdf MW |
102 | <section id="comments" class="section sectionContainerList moderationComments"> |
103 | <header class="sectionHeader"> | |
0d90a2ee | 104 | <h2 class="sectionTitle">{lang}wcf.global.comments{/lang}{if $queue->comments} <span class="badge">{#$queue->comments}</span>{/if}</h2> |
bfa40d3d | 105 | <p class="sectionDescription">{lang}wcf.moderation.comments.description{/lang}</p> |
95961bdf MW |
106 | </header> |
107 | ||
e882e2b3 | 108 | {include file='comments' commentContainerID='moderationQueueCommentList' commentObjectID=$queueID} |
95961bdf | 109 | </section> |
166d2b91 | 110 | |
3e93caf9 | 111 | <script data-relocate="true"> |
fd7f71bd AE |
112 | require(['WoltLabSuite/Core/Controller/Moderation/AssignUser'], ({ setup }) => { |
113 | {jsphrase name='wcf.moderation.assignedUser.nobody'} | |
114 | ||
115 | setup(document.getElementById('moderationAssignUser')); | |
116 | }); | |
117 | ||
3e93caf9 MW |
118 | $(function() { |
119 | WCF.Language.addObject({ | |
e2e8c155 MW |
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}', | |
4d986bee MS |
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}', | |
3e93caf9 MW |
127 | }); |
128 | ||
4d986bee MS |
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 | ); | |
3e93caf9 | 134 | }); |
3e93caf9 | 135 | </script> |
fc69b61d | 136 | |
3e93caf9 | 137 | {include file='footer'} |