Merge branch '3.0' into 3.1
[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-user-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 <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
63 {@$reportedContent}
64 </section>
65
66 <section class="section">
67 <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedBy{/lang}</h2>
68
69 <div class="box32">
70 {if $reportUser->userID}
71 <a href="{link controller='User' object=$reportUser}{/link}" title="{$reportUser->username}">
72 {@$reportUser->getAvatar()->getImageTag(32)}
73 </a>
74 {else}
75 <span>{@$reportUser->getAvatar()->getImageTag(32)}</span>
76 {/if}
77
78 <div>
79 <div class="containerHeadline">
80 <h3>
81 {if $reportUser->userID}
82 <a href="{link controller='User' object=$reportUser}{/link}" class="userLink" data-user-id="{@$reportUser->userID}">{$reportUser->username}</a>
83 {else}
84 {lang}wcf.user.guest{/lang}
85 {/if}
86
87 <small class="separatorLeft">{@$queue->time|time}</small>
88 </h3>
89 </div>
90
91 <div class="containerContent">{@$queue->getFormattedMessage()}</div>
92 </div>
93 </div>
94 </section>
95
96 {include file='__commentJavaScript' commentContainerID='moderationQueueCommentList'}
97
98 <section id="comments" class="section sectionContainerList moderationComments">
99 <header class="sectionHeader">
100 <h2 class="sectionTitle">{lang}wcf.global.comments{/lang}{if $queue->comments} <span class="badge">{#$queue->comments}</span>{/if}</h2>
101 <p class="sectionDescription">{lang}wcf.moderation.comments.description{/lang}</p>
102 </header>
103
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}">
105 {include file='commentListAddComment' wysiwygSelector='moderationQueueCommentListAddComment'}
106 {include file='commentList'}
107 </ul>
108 </section>
109
110 <script data-relocate="true">
111 $(function() {
112 WCF.Language.addObject({
113 'wcf.moderation.assignedUser': '{lang}wcf.moderation.assignedUser{/lang}',
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}',
118 'wcf.moderation.report.removeReport.markAsJustified': '{lang}wcf.moderation.report.removeReport.markAsJustified{/lang}',
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 });
126 </script>
127
128 {include file='footer'}