Merge branch '5.2' into 5.3
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / moderationReport.tpl
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>
18 <span>
19 {if $queue->assignedUserID}
20 <a href="{link controller='User' id=$assignedUserID}{/link}" class="userLink" data-object-id="{@$assignedUserID}">{$queue->assignedUsername}</a>
21 {else}
22 {lang}wcf.moderation.assignedUser.nobody{/lang}
23 {/if}
24 </span>
25 </dd>
26 </dl>
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>
33
34 {hascontent}
35 <nav class="contentHeaderNavigation">
36 <ul>
37 {content}
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}
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>
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'}
46 {/content}
47 </ul>
48 </nav>
49 {/hascontent}
50 </header>
51 {/capture}
52
53 {include file='header'}
54
55 {include file='formError'}
56
57 <section class="section">
58 <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedBy{/lang}</h2>
59
60 <div class="box32">
61 {if $reportUser->userID}
62 {user object=$reportUser type='avatar32' title=$reportUser->username}
63 {else}
64 <span>{@$reportUser->getAvatar()->getImageTag(32)}</span>
65 {/if}
66
67 <div>
68 <div class="containerHeadline">
69 <h3>
70 {if $reportUser->userID}
71 {user object=$reportUser}
72 {else}
73 {lang}wcf.user.guest{/lang}
74 {/if}
75
76 <small class="separatorLeft">{@$queue->time|time}</small>
77 </h3>
78 </div>
79
80 <div class="containerContent">{@$queue->getFormattedMessage()}</div>
81 </div>
82 </div>
83 </section>
84
85 <section class="section">
86 <header class="sectionHeader">
87 <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedContent{/lang}</h2>
88 <p class="sectionDescription">{lang}wcf.moderation.type.{@$queue->getObjectTypeName()}{/lang}</p>
89 </header>
90
91 {@$reportedContent}
92 </section>
93
94 {include file='__commentJavaScript' commentContainerID='moderationQueueCommentList'}
95
96 <section id="comments" class="section sectionContainerList moderationComments">
97 <header class="sectionHeader">
98 <h2 class="sectionTitle">{lang}wcf.global.comments{/lang}{if $queue->comments} <span class="badge">{#$queue->comments}</span>{/if}</h2>
99 <p class="sectionDescription">{lang}wcf.moderation.comments.description{/lang}</p>
100 </header>
101
102 <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}">
103 {include file='commentListAddComment' wysiwygSelector='moderationQueueCommentListAddComment'}
104 {include file='commentList'}
105 </ul>
106 </section>
107
108 <script data-relocate="true">
109 $(function() {
110 WCF.Language.addObject({
111 'wcf.moderation.assignedUser': '{jslang}wcf.moderation.assignedUser{/jslang}',
112 'wcf.moderation.assignedUser.error.notAffected': '{jslang}wcf.moderation.assignedUser.error.notAffected{/jslang}',
113 'wcf.moderation.report.removeContent.confirmMessage': '{jslang}wcf.moderation.report.removeContent.confirmMessage{/jslang}',
114 'wcf.moderation.report.removeContent.reason': '{jslang}wcf.moderation.report.removeContent.reason{/jslang}',
115 'wcf.moderation.report.removeReport.confirmMessage': '{jslang}wcf.moderation.report.removeReport.confirmMessage{/jslang}',
116 'wcf.moderation.report.removeReport.markAsJustified': '{jslang}wcf.moderation.report.removeReport.markAsJustified{/jslang}',
117 'wcf.moderation.status.outstanding': '{jslang}wcf.moderation.status.outstanding{/jslang}',
118 'wcf.moderation.status.processing': '{jslang}wcf.moderation.status.processing{/jslang}',
119 'wcf.user.username.error.notFound': '{jslang __literal=true}wcf.user.username.error.notFound{/jslang}'
120 });
121
122 new WCF.Moderation.Report.Management({@$queue->queueID}, '{link controller='ModerationList' encode=false}{/link}');
123 });
124 </script>
125
126 {include file='footer'}