Merge branch '2.0'
[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 });
21
22 new WCF.Moderation.Report.Management({@$queue->queueID}, '{link controller='ModerationList' encode=false}{/link}');
23 });
24 //]]>
25 </script>
26 </head>
27
28 <body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
29
30 {include file='header'}
31
32 <header class="boxHeadline">
33 <h1>{lang}wcf.moderation.report{/lang}: {$queue->getTitle()}</h1>
34
35 {if $queue->lastChangeTime}
36 <dl class="plain inlineDataList">
37 <dt>{lang}wcf.moderation.lastChangeTime{/lang}</dt>
38 <dd>{@$queue->lastChangeTime|time}</dd>
39 </dl>
40 {/if}
41
42 <dl class="plain inlineDataList" id="moderationAssignedUserContainer">
43 <dt>{lang}wcf.moderation.assignedUser{/lang}</dt>
44 <dd>
45 <span>
46 {if $queue->assignedUserID}
47 <a href="{link controller='User' id=$assignedUserID}{/link}" class="userLink" data-user-id="{@$assignedUserID}">{$queue->assignedUsername}</a>
48 {else}
49 {lang}wcf.moderation.assignedUser.nobody{/lang}
50 {/if}
51 </span>
52 </dd>
53 </dl>
54
55 <dl class="plain inlineDataList" id="moderationStatusContainer">
56 <dt>{lang}wcf.moderation.status{/lang}</dt>
57 <dd>{$queue->getStatus()}</dd>
58 </dl>
59 </header>
60
61 {include file='userNotice'}
62
63 {include file='formError'}
64
65 <header class="boxHeadline boxSubHeadline">
66 <h2>{lang}wcf.moderation.report.reportedContent{/lang}</h2>
67 <p>{lang}wcf.moderation.type.{@$queue->getObjectTypeName()}{/lang}</p>
68 </header>
69
70 <div class="marginTop">
71 {@$reportedContent}
72 </div>
73
74 <div class="contentNavigation">
75 <nav>
76 <ul>
77 {if !$queue->isDone()}
78 {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}
79 <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>
80 {/if}
81 {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}
82
83 {event name='contentNavigationButtons'}
84 </ul>
85 </nav>
86 </div>
87
88 <header class="boxHeadline boxSubHeadline">
89 <h2>{lang}wcf.moderation.report.reportedBy{/lang}</h2>
90 </header>
91
92 <div class="container containerPadding marginTop">
93 <div class="box32">
94 {if $reportUser->userID}
95 <a href="{link controller='User' object=$reportUser}{/link}" title="{$reportUser->username}" class="framed">
96 {@$reportUser->getAvatar()->getImageTag(32)}
97 </a>
98 {else}
99 <span class="framed">{@$reportUser->getAvatar()->getImageTag(32)}</span>
100 {/if}
101
102 <div>
103 <div class="containerHeadline">
104 <h3>
105 {if $queue->userID}
106 <a href="{link controller='User' id=$queue->userID}{/link}" class="userLink" data-user-id="{@$queue->userID}">{$queue->username}</a>
107 {else}
108 {lang}wcf.user.guest{/lang}
109 {/if}
110
111 <small> - {@$queue->time|time}</small>
112 </h3>
113 </div>
114
115 <div>{@$queue->getFormattedMessage()}</div>
116 </div>
117 </div>
118 </div>
119
120 <header id="comments" class="boxHeadline boxSubHeadline">
121 <h2>{lang}wcf.moderation.comments{/lang} <span class="badge">{#$queue->comments}</span></h2>
122 <p>{lang}wcf.moderation.comments.description{/lang}</p>
123 </header>
124
125 {include file='__commentJavaScript' commentContainerID='moderationQueueCommentList'}
126
127 <div class="container containerList marginTop blogEntryComments">
128 <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}">
129 {include file='commentList'}
130 </ul>
131 </div>
132
133 {include file='footer'}
134
135 </body>
136 </html>