Merge branch 'next' of github.com:WoltLab/WCF into next
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / moderationReport.tpl
1 {capture assign='pageTitle'}{lang}wcf.moderation.report{/lang}: {$queue->getTitle()}{/capture}
2
3 {capture assign='contentHeader'}
4 <header class="contentHeader">
5 <div class="contentHeaderTitle">
6 <h1 class="contentTitle">{lang}wcf.moderation.report{/lang}</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 {if !$queue->isDone()}
39 {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}
40 <li class="jsOnly"><a id="removeReport" class="button"><span class="icon icon16 fa-times"></span> <span>{lang}wcf.moderation.report.removeReport{/lang}</span></a></li>
41 {/if}
42 {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}
43 {event name='contentHeaderNavigation'}
44 {/content}
45 </ul>
46 </nav>
47 {/hascontent}
48 </header>
49 {/capture}
50
51 {include file='header'}
52
53 {include file='formError'}
54
55 <section class="section">
56 <header class="sectionHeader">
57 <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedContent{/lang}</h2>
58 <p class="sectionDescription">{lang}wcf.moderation.type.{@$queue->getObjectTypeName()}{/lang}</p>
59 </header>
60
61 {@$reportedContent}
62 </section>
63
64 <section class="section">
65 <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedBy{/lang}</h2>
66
67 <div class="box32">
68 {if $reportUser->userID}
69 <a href="{link controller='User' object=$reportUser}{/link}" title="{$reportUser->username}">
70 {@$reportUser->getAvatar()->getImageTag(32)}
71 </a>
72 {else}
73 <span>{@$reportUser->getAvatar()->getImageTag(32)}</span>
74 {/if}
75
76 <div>
77 <div class="containerHeadline">
78 <h3>
79 {if $queue->userID}
80 <a href="{link controller='User' id=$queue->userID}{/link}" class="userLink" data-user-id="{@$queue->userID}">{$queue->username}</a>
81 {else}
82 {lang}wcf.user.guest{/lang}
83 {/if}
84
85 <small class="separatorLeft">{@$queue->time|time}</small>
86 </h3>
87 </div>
88
89 <div class="containerContent">{@$queue->getFormattedMessage()}</div>
90 </div>
91 </div>
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.moderation.comments{/lang} <span class="badge">{#$queue->comments}</span></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='commentList'}
104 </ul>
105 </section>
106
107 <script data-relocate="true">
108 //<![CDATA[
109 $(function() {
110 WCF.Language.addObject({
111 'wcf.moderation.assignedUser': '{lang}wcf.moderation.assignedUser{/lang}',
112 'wcf.moderation.assignedUser.change': '{lang}wcf.moderation.assignedUser.change{/lang}',
113 'wcf.moderation.assignedUser.error.notAffected': '{lang}wcf.moderation.assignedUser.error.notAffected{/lang}',
114 'wcf.moderation.report.removeContent.confirmMessage': '{lang}wcf.moderation.report.removeContent.confirmMessage{/lang}',
115 'wcf.moderation.report.removeContent.reason': '{lang}wcf.moderation.report.removeContent.reason{/lang}',
116 'wcf.moderation.report.removeReport.confirmMessage': '{lang}wcf.moderation.report.removeReport.confirmMessage{/lang}',
117 'wcf.moderation.status.outstanding': '{lang}wcf.moderation.status.outstanding{/lang}',
118 'wcf.moderation.status.processing': '{lang}wcf.moderation.status.processing{/lang}',
119 'wcf.user.username.error.notFound': '{lang __literal=true}wcf.user.username.error.notFound{/lang}'
120 });
121
122 new WCF.Moderation.Report.Management({@$queue->queueID}, '{link controller='ModerationList' encode=false}{/link}');
123 });
124 //]]>
125 </script>
126
127 {include file='footer'}