Added proper support for font size and color
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / moderationReport.tpl
CommitLineData
ff9e3598 1{capture assign='pageTitle'}{$__wcf->getActivePage()->getTitle()}: {$queue->getTitle()}{/capture}
fc69b61d 2
3e93caf9
MW
3{capture assign='contentHeader'}
4 <header class="contentHeader">
5 <div class="contentHeaderTitle">
ff9e3598 6 <h1 class="contentTitle">{$__wcf->getActivePage()->getTitle()}</h1>
cc548158 7
3e93caf9
MW
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>
e7b063d6 26 </dl>
3e93caf9
MW
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>
e7b063d6 33
3e93caf9
MW
34 {hascontent}
35 <nav class="contentHeaderNavigation">
36 <ul>
37 {content}
e7b063d6
AE
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'}
3e93caf9
MW
44 {/content}
45 </ul>
46 </nav>
47 {/hascontent}
48 </header>
49{/capture}
fc69b61d 50
3e93caf9 51{include file='header'}
fc69b61d 52
ee629b22
AE
53{include file='formError'}
54
95961bdf
MW
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
fc69b61d 61 {@$reportedContent}
95961bdf 62</section>
fc69b61d 63
95961bdf
MW
64<section class="section">
65 <h2 class="sectionTitle">{lang}wcf.moderation.report.reportedBy{/lang}</h2>
66
166d2b91
MW
67 <div class="box32">
68 {if $reportUser->userID}
95961bdf 69 <a href="{link controller='User' object=$reportUser}{/link}" title="{$reportUser->username}">
166d2b91
MW
70 {@$reportUser->getAvatar()->getImageTag(32)}
71 </a>
72 {else}
95961bdf 73 <span>{@$reportUser->getAvatar()->getImageTag(32)}</span>
166d2b91
MW
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
929f7e47 85 <small class="separatorLeft">{@$queue->time|time}</small>
166d2b91
MW
86 </h3>
87 </div>
88
95961bdf 89 <div class="containerContent">{@$queue->getFormattedMessage()}</div>
166d2b91
MW
90 </div>
91 </div>
95961bdf 92</section>
166d2b91
MW
93
94{include file='__commentJavaScript' commentContainerID='moderationQueueCommentList'}
95
95961bdf
MW
96<section id="comments" class="section sectionContainerList moderationComments">
97 <header class="sectionHeader">
bfa40d3d
MW
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>
95961bdf
MW
100 </header>
101
2f292344 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}">
166d2b91
MW
103 {include file='commentList'}
104 </ul>
95961bdf 105</section>
166d2b91 106
3e93caf9
MW
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>
fc69b61d 126
3e93caf9 127{include file='footer'}