Improved styling of compact messages
[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="contentHeader">
34 <div class="contentHeaderTitle">
35 <h1 class="contentTitle">{lang}wcf.moderation.report{/lang}</h1>
36
37 {if $queue->lastChangeTime}
38 <dl class="plain inlineDataList">
39 <dt>{lang}wcf.moderation.lastChangeTime{/lang}</dt>
40 <dd>{@$queue->lastChangeTime|time}</dd>
41 </dl>
42 {/if}
43
44 <dl class="plain inlineDataList" id="moderationAssignedUserContainer">
45 <dt>{lang}wcf.moderation.assignedUser{/lang}</dt>
46 <dd>
47 <span>
48 {if $queue->assignedUserID}
49 <a href="{link controller='User' id=$assignedUserID}{/link}" class="userLink" data-user-id="{@$assignedUserID}">{$queue->assignedUsername}</a>
50 {else}
51 {lang}wcf.moderation.assignedUser.nobody{/lang}
52 {/if}
53 </span>
54 </dd>
55 </dl>
56
57 <dl class="plain inlineDataList" id="moderationStatusContainer">
58 <dt>{lang}wcf.moderation.status{/lang}</dt>
59 <dd>{$queue->getStatus()}</dd>
60 </dl>
61 </div>
62
63 {hascontent}
64 <nav class="contentHeaderNavigation">
65 <ul>
66 {content}
67 {if !$queue->isDone()}
68 {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}
69 <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>
70 {/if}
71 {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}
72 {event name='contentHeaderNavigation'}
73 {/content}
74 </ul>
75 </nav>
76 {/hascontent}
77 </header>
78
79 {include file='userNotice'}
80
81 {include file='formError'}
82
83 <section class="section">
84 <header class="sectionHeader">
85 <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedContent{/lang}</h2>
86 <p class="sectionDescription">{lang}wcf.moderation.type.{@$queue->getObjectTypeName()}{/lang}</p>
87 </header>
88
89 {@$reportedContent}
90 </section>
91
92 <section class="section">
93 <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedBy{/lang}</h2>
94
95 <div class="box32">
96 {if $reportUser->userID}
97 <a href="{link controller='User' object=$reportUser}{/link}" title="{$reportUser->username}">
98 {@$reportUser->getAvatar()->getImageTag(32)}
99 </a>
100 {else}
101 <span>{@$reportUser->getAvatar()->getImageTag(32)}</span>
102 {/if}
103
104 <div>
105 <div class="containerHeadline">
106 <h3>
107 {if $queue->userID}
108 <a href="{link controller='User' id=$queue->userID}{/link}" class="userLink" data-user-id="{@$queue->userID}">{$queue->username}</a>
109 {else}
110 {lang}wcf.user.guest{/lang}
111 {/if}
112
113 <small class="separatorLeft">{@$queue->time|time}</small>
114 </h3>
115 </div>
116
117 <div class="containerContent">{@$queue->getFormattedMessage()}</div>
118 </div>
119 </div>
120 </section>
121
122 {include file='__commentJavaScript' commentContainerID='moderationQueueCommentList'}
123
124 <section id="comments" class="section sectionContainerList moderationComments">
125 <header class="sectionHeader">
126 <h2 class="sectionTitle">{lang}wcf.moderation.comments{/lang} <span class="badge">{#$queue->comments}</span></h2>
127 <p class="sectionDescription">{lang}wcf.moderation.comments.description{/lang}</p>
128 </header>
129
130 <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}">
131 {include file='commentList'}
132 </ul>
133 </section>
134
135 {include file='footer'}
136
137 </body>
138 </html>