Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | ## Change class name to your class name | ||
3 | #set($class = $doc.getObject("ForumCode.FlagClass").xWikiClass) | ||
4 | #foreach($prop in $class.properties) | ||
5 | #if($prop.getName() == "reason") #set($reason = $prop.prettyName)#end | ||
6 | #if($prop.getName() == "message") #set($message = $prop.prettyName)#end | ||
7 | #if($prop.getName() == "comment") #set($comment = $prop.prettyName)#end | ||
8 | #if($prop.getName() == "target") #set($target = $prop.prettyName)#end | ||
9 | #if($prop.getName() == "status") #set($status = $prop.prettyName)#end | ||
10 | #if($prop.getName() == "user") #set($user = $prop.prettyName)#end | ||
11 | #if($prop.getName() == "moderator") #set($moderator = $prop.prettyName)#end | ||
12 | #end | ||
13 | {{html wiki='true'}} | ||
14 | (% class="xform" %) | ||
15 | ((( | ||
16 | (% class = "row" %) | ||
17 | ((( | ||
18 | (% class="col-xs-12 col-sm-4 col-md-4" %) | ||
19 | ((( | ||
20 | ; <label>$reason</label> | ||
21 | : $doc.display('reason') | ||
22 | ))) | ||
23 | (% class="col-xs-12 col-sm-4 col-md-4" %) | ||
24 | ((( | ||
25 | ; <label>$target</label> | ||
26 | #if($xcontext.action=="view") | ||
27 | #set($target = $doc.getValue("target")) | ||
28 | #set($pos = $target.indexOf(":")) | ||
29 | #if($pos==-1) | ||
30 | #set($targetDocName = $target) | ||
31 | #set($anchor = "") | ||
32 | #else | ||
33 | #set($targetDocName = $target.substring(0, $pos)) | ||
34 | #set($pos = $pos + 1) | ||
35 | #set($anchor = $target.substring($pos)) | ||
36 | #end | ||
37 | : <label>[[$services.localization.render("conversations.flag.viewsource")>>${targetDocName}||target="_blank" anchor="${anchor}"]]</label> | ||
38 | #else | ||
39 | : $doc.display('target') | ||
40 | #end | ||
41 | ; <label>$status</label> | ||
42 | : $doc.display('status') | ||
43 | ))) | ||
44 | (% class="col-xs-12 col-sm-4 col-md-4" %) | ||
45 | ((( | ||
46 | ; <label>$user</label> | ||
47 | : $doc.display('user') | ||
48 | ; <label>$moderator</label> | ||
49 | : $doc.display('moderator') | ||
50 | ))) | ||
51 | ))) | ||
52 | (% class="row" %) | ||
53 | ((( | ||
54 | (% class="col-xs-12 col-sm-12 col-md-12" %) | ||
55 | ((( | ||
56 | ; <label>$message</label> | ||
57 | : $doc.display('message') | ||
58 | ; <label>$comment</label> | ||
59 | : $doc.display('comment') | ||
60 | ))) | ||
61 | ))) | ||
62 | ))) | ||
63 | {{/html}} | ||
64 | #set($docextras = []) | ||
65 | {{/velocity}} |