|
2 | 2 |
|
3 | 3 | {capture assign='contentHeader'} |
4 | 4 | <header class="contentHeader"> |
5 | | - <div class="contentHeaderTitle"> |
6 | | - <h1 class="contentTitle">{$__wcf->getActivePage()->getTitle()}: {$queue->getTitle()}</h1> |
7 | | - <ul class="inlineList contentHeaderMetaData"> |
8 | | - {event name='beforeMetaData'} |
9 | | - |
10 | | - {if $queue->lastChangeTime} |
11 | | - <li title="{lang}wcf.moderation.lastChangeTime{/lang}"> |
12 | | - {icon name='clock'} |
13 | | - {time time=$queue->lastChangeTime} |
14 | | - </li> |
15 | | - {/if} |
16 | | - |
17 | | - <li title="{lang}wcf.moderation.assignedUser{/lang}"> |
18 | | - {icon name='user'} |
19 | | - <span id="moderationAssignedUser"> |
20 | | - {if $queue->assignedUserID} |
21 | | - <a href="{link controller='User' id=$assignedUserID}{/link}" class="userLink" data-object-id="{$assignedUserID}">{$queue->assignedUsername}</a> |
22 | | - {else} |
23 | | - {lang}wcf.moderation.assignedUser.nobody{/lang} |
24 | | - {/if} |
25 | | - </span> |
26 | | - </li> |
27 | | - |
28 | | - <li title="{lang}wcf.moderation.status{/lang}"> |
29 | | - {icon name='arrows-rotate'} |
30 | | - <span id="moderationQueueStatus">{$queue->getStatus()}</span> |
31 | | - </li> |
32 | | - |
33 | | - {event name='afterMetaData'} |
34 | | - </ul> |
35 | | - </div> |
| 5 | + {include file='moderationContentHeader' title=$__wcf->getActivePage()->getTitle() queue=$queue sandbox=true} |
36 | 6 |
|
37 | 7 | {hascontent} |
38 | 8 | <nav class="contentHeaderNavigation"> |
|
48 | 18 | {/capture} |
49 | 19 |
|
50 | 20 | {capture assign='contentInteractionButtons'} |
51 | | - <button |
52 | | - type="button" |
53 | | - id="moderationAssignUser" |
54 | | - class="contentInteractionButton button small jsOnly" |
55 | | - data-url="{$queue->endpointAssignUser()}" |
56 | | - > |
57 | | - {icon name='user-plus' type='solid'} |
58 | | - <span>{lang}wcf.moderation.assignedUser.change{/lang}</span> |
59 | | - </button> |
60 | | - {if !$queue->isDone()} |
61 | | - {if $queueManager->canRemoveContent($queue->getDecoratedObject())} |
62 | | - <button |
63 | | - type="button" |
64 | | - id="removeContent" |
65 | | - class="contentInteractionButton button small jsOnly" |
66 | | - data-object-id="{$queue->queueID}" |
67 | | - data-object-name="{$queue->getTitle()}" |
68 | | - data-redirect-url="{link controller='ModerationList'}{/link}" |
69 | | - >{icon name='xmark'} <span>{lang}wcf.moderation.activation.removeContent{/lang}</span></button> |
70 | | - {/if} |
71 | | - <button |
72 | | - type="button" |
73 | | - id="removeReport" |
74 | | - class="contentInteractionButton button small jsOnly" |
75 | | - data-object-id="{$queue->queueID}" |
76 | | - data-redirect-url="{link controller='ModerationList'}{/link}" |
77 | | - >{icon name='square-check'} <span>{lang}wcf.moderation.report.removeReport{/lang}</span></button> |
78 | | - {/if} |
79 | | - {if $queue->canChangeJustifiedStatus()} |
80 | | - <button |
81 | | - type="button" |
82 | | - id="changeJustifiedStatus" |
83 | | - class="contentInteractionButton button small jsOnly" |
84 | | - data-object-id="{$queue->queueID}" |
85 | | - data-redirect-url="{link controller='ModerationReport' object=$queue}{/link}" |
86 | | - data-justified="{if $queue->markAsJustified}true{else}false{/if}" |
87 | | - >{icon name='arrows-rotate'} <span>{lang}wcf.moderation.report.changeJustifiedStatus{/lang}</span></button> |
88 | | - {/if} |
| 21 | + <div class="contentInteractionButton"> |
| 22 | + {unsafe:$interactionContextMenu->render()} |
| 23 | + </div> |
89 | 24 | {/capture} |
90 | 25 |
|
91 | 26 | {include file='header'} |
|
133 | 68 | {include file='comments' commentContainerID='moderationQueueCommentList' commentObjectID=$queueID} |
134 | 69 | </section> |
135 | 70 |
|
136 | | -<script data-relocate="true"> |
137 | | - require(['WoltLabSuite/Core/Controller/Moderation/AssignUser'], ({ setup }) => { |
138 | | - {jsphrase name='wcf.moderation.assignedUser.nobody'} |
139 | | - |
140 | | - setup(document.getElementById('moderationAssignUser')); |
141 | | - }); |
142 | | -
|
143 | | - require(['WoltLabSuite/Core/Controller/Moderation/Report'], ({ setup }) => { |
144 | | - {jsphrase name='wcf.moderation.report.removeReport.confirmMessage'} |
145 | | - {jsphrase name='wcf.moderation.report.removeReport.markAsJustified'} |
146 | | - {jsphrase name='wcf.moderation.report.changeJustifiedStatus.confirmMessage'} |
147 | | - {jsphrase name='wcf.moderation.report.changeJustifiedStatus.markAsJustified'} |
148 | | - |
149 | | - setup( |
150 | | - document.getElementById('removeContent'), |
151 | | - document.getElementById('removeReport'), |
152 | | - document.getElementById('changeJustifiedStatus') |
153 | | - ); |
154 | | - }); |
155 | | -</script> |
156 | | - |
157 | 71 | {include file='footer'} |
0 commit comments