Merge commit 'd9ff0c' into next
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / moderationReport.tpl
1 {include file='documentHeader'}
2
3 <head>
4 <title>{lang}wcf.moderation.report{/lang}: {$queue->getTitle()} - {PAGE_TITLE|language}</title>
5
6 {include file='headInclude'}
7
8 <script data-relocate="true">
9 //<![CDATA[
10 $(function() {
11 WCF.Language.addObject({
12 'wcf.moderation.assignedUser': '{lang}wcf.moderation.assignedUser{/lang}',
13 'wcf.moderation.assignedUser.change': '{lang}wcf.moderation.assignedUser.change{/lang}',
14 'wcf.moderation.assignedUser.error.notAffected': '{lang}wcf.moderation.assignedUser.error.notAffected{/lang}',
15 'wcf.moderation.report.removeContent.confirmMessage': '{lang}wcf.moderation.report.removeContent.confirmMessage{/lang}',
16 'wcf.moderation.report.removeContent.reason': '{lang}wcf.moderation.report.removeContent.reason{/lang}',
17 'wcf.moderation.report.removeReport.confirmMessage': '{lang}wcf.moderation.report.removeReport.confirmMessage{/lang}',
18 'wcf.moderation.status.outstanding': '{lang}wcf.moderation.status.outstanding{/lang}',
19 'wcf.moderation.status.processing': '{lang}wcf.moderation.status.processing{/lang}',
20 'wcf.user.username.error.notFound': '{lang __literal=true}wcf.user.username.error.notFound{/lang}'
21 });
22
23 new WCF.Moderation.Report.Management({@$queue->queueID}, '{link controller='ModerationList' encode=false}{/link}');
24 });
25 //]]>
26 </script>
27 </head>
28
29 <body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
30
31 {include file='header'}
32
33 <header class="boxHeadline">
34 <h1>{lang}wcf.moderation.report{/lang}: {$queue->getTitle()}</h1>
35
36 {if $queue->lastChangeTime}
37 <dl class="plain inlineDataList">
38 <dt>{lang}wcf.moderation.lastChangeTime{/lang}</dt>
39 <dd>{@$queue->lastChangeTime|time}</dd>
40 </dl>
41 {/if}
42
43 <dl class="plain inlineDataList" id="moderationAssignedUserContainer">
44 <dt>{lang}wcf.moderation.assignedUser{/lang}</dt>
45 <dd>
46 <span>
47 {if $queue->assignedUserID}
48 <a href="{link controller='User' id=$assignedUserID}{/link}" class="userLink" data-user-id="{@$assignedUserID}">{$queue->assignedUsername}</a>
49 {else}
50 {lang}wcf.moderation.assignedUser.nobody{/lang}
51 {/if}
52 </span>
53 </dd>
54 </dl>
55
56 <dl class="plain inlineDataList" id="moderationStatusContainer">
57 <dt>{lang}wcf.moderation.status{/lang}</dt>
58 <dd>{$queue->getStatus()}</dd>
59 </dl>
60 </header>
61
62 {include file='userNotice'}
63
64 {include file='formError'}
65
66 <header class="boxHeadline boxSubHeadline">
67 <h2>{lang}wcf.moderation.report.reportedContent{/lang}</h2>
68 <p>{lang}wcf.moderation.type.{@$queue->getObjectTypeName()}{/lang}</p>
69 </header>
70
71 <div class="marginTop">
72 {@$reportedContent}
73 </div>
74
75 <div class="contentNavigation">
76 <nav>
77 <ul>
78 {if !$queue->isDone()}
79 {if $queueManager->canRemoveContent($queue->getDecoratedObject())}<li class="jsOnly"><a id="removeContent" class="button"><span class="icon icon16 icon-remove"></span> <span>{lang}wcf.moderation.report.removeContent{/lang}</span></a></li>{/if}
80 <li class="jsOnly"><a id="removeReport" class="button"><span class="icon icon16 icon-remove"></span> <span>{lang}wcf.moderation.report.removeReport{/lang}</span></a></li>
81 {/if}
82 {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}
83
84 {event name='contentNavigationButtons'}
85 </ul>
86 </nav>
87 </div>
88
89 <header class="boxHeadline boxSubHeadline">
90 <h2>{lang}wcf.moderation.report.reportedBy{/lang}</h2>
91 </header>
92
93 <div class="container containerPadding marginTop">
94 <div class="box32">
95 {if $reportUser->userID}
96 <a href="{link controller='User' object=$reportUser}{/link}" title="{$reportUser->username}" class="framed">
97 {@$reportUser->getAvatar()->getImageTag(32)}
98 </a>
99 {else}
100 <span class="framed">{@$reportUser->getAvatar()->getImageTag(32)}</span>
101 {/if}
102
103 <div>
104 <div class="containerHeadline">
105 <h3>
106 {if $queue->userID}
107 <a href="{link controller='User' id=$queue->userID}{/link}" class="userLink" data-user-id="{@$queue->userID}">{$queue->username}</a>
108 {else}
109 {lang}wcf.user.guest{/lang}
110 {/if}
111
112 <small> - {@$queue->time|time}</small>
113 </h3>
114 </div>
115
116 <div>{@$queue->getFormattedMessage()}</div>
117 </div>
118 </div>
119 </div>
120
121 <header id="comments" class="boxHeadline boxSubHeadline">
122 <h2>{lang}wcf.moderation.comments{/lang} <span class="badge">{#$queue->comments}</span></h2>
123 <p>{lang}wcf.moderation.comments.description{/lang}</p>
124 </header>
125
126 {include file='__commentJavaScript' commentContainerID='moderationQueueCommentList'}
127
128 <div class="container marginTop moderationComments">
129 <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}">
130 {include file='commentList'}
131 </ul>
132 </div>
133
134 {include file='footer'}
135
136 </body>
137 </html>