Wiki source code of ActivityCloud
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | <span style="font-size:0.8em">the size of the names correlates to the users' activity in the wiki</span> | ||
| 2 | |||
| 3 | #if($xwiki.statsService.enabled) | ||
| 4 | #set($period=$xwiki.criteriaService.periodFactory.createSinceWeeksPeriod(3)) | ||
| 5 | #set($interval=$xwiki.criteriaService.rangeFactory.createHeadRange(50)) | ||
| 6 | #set($stats=$xwiki.statsService.getVisitStatistics('save',$period,$interval)) | ||
| 7 | #set($group="XWiki.DSSF-F2008") | ||
| 8 | <p style="line-height: 1.2"> | ||
| 9 | #foreach($item in $stats) | ||
| 10 | #set($userName = $xwiki.getUserName($item.name)) | ||
| 11 | #if($userName) | ||
| 12 | #set($user2 = $xwiki.getUser($item.name)) | ||
| 13 | #if($user2.isUserInGroup($group)) | ||
| 14 | #set($size=(8+(4.00*$item.pageSaves+$item.pageViews)/23.00)) | ||
| 15 | <span style="font-size:${size}pt">$userName, </span> | ||
| 16 | #end | ||
| 17 | #end | ||
| 18 | #end | ||
| 19 | </p> | ||
| 20 | * [See the full statistics and photos of the community members>All+Members] | ||
| 21 | #if($stats.size() > 0) | ||
| 22 | #else | ||
| 23 | #end | ||
| 24 | #else | ||
| 25 | #end |