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> | |
17 | <dd> | |
18 | <span> | |
19 | {if $queue->assignedUserID} | |
20 | <a href="{link controller='User' id=$assignedUserID}{/link}" class="userLink" data-user-id="{@$assignedUserID}">{$queue->assignedUsername}</a> | |
21 | {else} | |
22 | {lang}wcf.moderation.assignedUser.nobody{/lang} | |
23 | {/if} | |
24 | </span> | |
25 | </dd> | |
e7b063d6 | 26 | </dl> |
3e93caf9 MW |
27 | |
28 | <dl class="plain inlineDataList" id="moderationStatusContainer"> | |
29 | <dt>{lang}wcf.moderation.status{/lang}</dt> | |
30 | <dd>{$queue->getStatus()}</dd> | |
31 | </dl> | |
32 | </div> | |
e7b063d6 | 33 | |
3e93caf9 MW |
34 | {hascontent} |
35 | <nav class="contentHeaderNavigation"> | |
36 | <ul> | |
37 | {content} | |
8f0273e2 MW |
38 | <li class="jsOnly"><a id="moderationAssignUser" class="button"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.moderation.assignedUser.change{/lang}</span></a></li> |
39 | {if !$queue->isDone()} | |
40 | {if $queueManager->canRemoveContent($queue->getDecoratedObject())}<li class="jsOnly"><a id="removeContent" class="button"><span class="icon icon16 fa-times"></span> <span>{lang}wcf.moderation.report.removeContent{/lang}</span></a></li>{/if} | |
c286fd48 | 41 | <li class="jsOnly"><a id="removeReport" class="button"><span class="icon icon16 fa-check"></span> <span>{lang}wcf.moderation.report.removeReport{/lang}</span></a></li> |
8f0273e2 MW |
42 | {/if} |
43 | {if $queue->getAffectedObject()}<li><a href="{$queue->getAffectedObject()->getLink()}" class="button"><span class="icon icon16 fa-arrow-right"></span> <span>{lang}wcf.moderation.jumpToContent{/lang}</span></a></li>{/if} | |
44 | ||
45 | {event name='contentHeaderNavigation'} | |
3e93caf9 MW |
46 | {/content} |
47 | </ul> | |
48 | </nav> | |
49 | {/hascontent} | |
50 | </header> | |
51 | {/capture} | |
fc69b61d | 52 | |
3e93caf9 | 53 | {include file='header'} |
fc69b61d | 54 | |
ee629b22 AE |
55 | {include file='formError'} |
56 | ||
95961bdf MW |
57 | <section class="section"> |
58 | <header class="sectionHeader"> | |
59 | <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedContent{/lang}</h2> | |
60 | <p class="sectionDescription">{lang}wcf.moderation.type.{@$queue->getObjectTypeName()}{/lang}</p> | |
61 | </header> | |
62 | ||
fc69b61d | 63 | {@$reportedContent} |
95961bdf | 64 | </section> |
fc69b61d | 65 | |
95961bdf MW |
66 | <section class="section"> |
67 | <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedBy{/lang}</h2> | |
68 | ||
166d2b91 MW |
69 | <div class="box32"> |
70 | {if $reportUser->userID} | |
95961bdf | 71 | <a href="{link controller='User' object=$reportUser}{/link}" title="{$reportUser->username}"> |
166d2b91 MW |
72 | {@$reportUser->getAvatar()->getImageTag(32)} |
73 | </a> | |
74 | {else} | |
95961bdf | 75 | <span>{@$reportUser->getAvatar()->getImageTag(32)}</span> |
166d2b91 MW |
76 | {/if} |
77 | ||
78 | <div> | |
79 | <div class="containerHeadline"> | |
80 | <h3> | |
81 | {if $queue->userID} | |
82 | <a href="{link controller='User' id=$queue->userID}{/link}" class="userLink" data-user-id="{@$queue->userID}">{$queue->username}</a> | |
83 | {else} | |
84 | {lang}wcf.user.guest{/lang} | |
85 | {/if} | |
86 | ||
929f7e47 | 87 | <small class="separatorLeft">{@$queue->time|time}</small> |
166d2b91 MW |
88 | </h3> |
89 | </div> | |
90 | ||
95961bdf | 91 | <div class="containerContent">{@$queue->getFormattedMessage()}</div> |
166d2b91 MW |
92 | </div> |
93 | </div> | |
95961bdf | 94 | </section> |
166d2b91 MW |
95 | |
96 | {include file='__commentJavaScript' commentContainerID='moderationQueueCommentList'} | |
97 | ||
95961bdf MW |
98 | <section id="comments" class="section sectionContainerList moderationComments"> |
99 | <header class="sectionHeader"> | |
0d90a2ee | 100 | <h2 class="sectionTitle">{lang}wcf.global.comments{/lang}{if $queue->comments} <span class="badge">{#$queue->comments}</span>{/if}</h2> |
bfa40d3d | 101 | <p class="sectionDescription">{lang}wcf.moderation.comments.description{/lang}</p> |
95961bdf MW |
102 | </header> |
103 | ||
2f292344 | 104 | <ul id="moderationQueueCommentList" class="commentList containerList" data-can-add="true" data-object-id="{@$queueID}" data-object-type-id="{@$commentObjectTypeID}" data-comments="{if $queue->comments}{@$commentList->countObjects()}{else}0{/if}" data-last-comment-time="{@$lastCommentTime}"> |
d8b654e1 | 105 | {include file='commentListAddComment' wysiwygSelector='moderationQueueCommentListAddComment'} |
166d2b91 MW |
106 | {include file='commentList'} |
107 | </ul> | |
95961bdf | 108 | </section> |
166d2b91 | 109 | |
3e93caf9 | 110 | <script data-relocate="true"> |
3e93caf9 MW |
111 | $(function() { |
112 | WCF.Language.addObject({ | |
113 | 'wcf.moderation.assignedUser': '{lang}wcf.moderation.assignedUser{/lang}', | |
3e93caf9 MW |
114 | 'wcf.moderation.assignedUser.error.notAffected': '{lang}wcf.moderation.assignedUser.error.notAffected{/lang}', |
115 | 'wcf.moderation.report.removeContent.confirmMessage': '{lang}wcf.moderation.report.removeContent.confirmMessage{/lang}', | |
116 | 'wcf.moderation.report.removeContent.reason': '{lang}wcf.moderation.report.removeContent.reason{/lang}', | |
117 | 'wcf.moderation.report.removeReport.confirmMessage': '{lang}wcf.moderation.report.removeReport.confirmMessage{/lang}', | |
bceb1b3b | 118 | 'wcf.moderation.report.removeReport.markAsJustified': '{lang}wcf.moderation.report.removeReport.markAsJustified{/lang}', |
3e93caf9 MW |
119 | 'wcf.moderation.status.outstanding': '{lang}wcf.moderation.status.outstanding{/lang}', |
120 | 'wcf.moderation.status.processing': '{lang}wcf.moderation.status.processing{/lang}', | |
121 | 'wcf.user.username.error.notFound': '{lang __literal=true}wcf.user.username.error.notFound{/lang}' | |
122 | }); | |
123 | ||
124 | new WCF.Moderation.Report.Management({@$queue->queueID}, '{link controller='ModerationList' encode=false}{/link}'); | |
125 | }); | |
3e93caf9 | 126 | </script> |
fc69b61d | 127 | |
3e93caf9 | 128 | {include file='footer'} |