Wiki source code of All Members
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | #if($xwiki.statsService.enabled) | ||
| 2 | #set($period=$xwiki.criteriaService.periodFactory.createSinceWeeksPeriod(3)) | ||
| 3 | #set($interval=$xwiki.criteriaService.rangeFactory.createHeadRange(50)) | ||
| 4 | #set($stats=$xwiki.statsService.getVisitStatistics('save',$period,$interval)) | ||
| 5 | #set($group="XWiki.DSSF-F2008") | ||
| 6 | <table class="stats" cellspacing="0" cellpadding="0"> | ||
| 7 | <thead> | ||
| 8 | <tr> | ||
| 9 | <th class="numeric">Activity Level</th> | ||
| 10 | <th>Name</th> | ||
| 11 | <th>Photo</th> | ||
| 12 | </tr> | ||
| 13 | </thead> | ||
| 14 | <tbody> | ||
| 15 | #foreach($item in $stats) | ||
| 16 | #set($userName = $xwiki.getUserName($item.name)) | ||
| 17 | #if($userName) | ||
| 18 | #set($user2 = $xwiki.getUser($item.name)) | ||
| 19 | #if($user2.isUserInGroup($group)) | ||
| 20 | #set($activity=(4*$item.pageSaves+$item.pageViews)/25) | ||
| 21 | #set($size=8+$activity) | ||
| 22 | #set($picsize=50+$activity*8) | ||
| 23 | <tr> | ||
| 24 | <td><p style="font-size:${size}pt">$activity</p></td> | ||
| 25 | <td><p style="font-size:${size}pt">$userName</p></td> | ||
| 26 | #set($userdoc = $xwiki.getDocument("${item.name}")) $userdoc.use("XWiki.XWikiUsers") | ||
| 27 | <td> | ||
| 28 | #if($userdoc.attachmentList.size()>0) #set($attach = $userdoc.attachmentList.get(0)) <img src="$userdoc.getAttachmentURL($attach.filename,"download", "width=$picsize")" width="$picsize"/>#end | ||
| 29 | </td> | ||
| 30 | </tr> | ||
| 31 | #end | ||
| 32 | #end | ||
| 33 | #end | ||
| 34 | </tbody> | ||
| 35 | </table> | ||
| 36 | |||
| 37 | #if($stats.size() > 0) | ||
| 38 | #else | ||
| 39 | #end | ||
| 40 | #else | ||
| 41 | #end | ||
| 42 | #includeMacros("Stats.Macros") |