Modifiche per il documento Utenti
Dalla versione 10.1
modificato da Andrea Omicini
il 2026/08/29 17:36
il 2026/08/29 17:36
Cambia il commento:
status recode: match the new lowercase values
Alla versione 7.1
modificato da Andrea Omicini
il 2026/08/29 00:56
il 2026/08/29 00:56
Cambia il commento:
Nessun commento per questa versione
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -5,8 +5,7 @@ 5 5 ## Nothing is hand-maintained here: the groups are the values declared by 6 6 ## XWiki.XWikiUsers.status, in the class's own order, and every user carrying a 7 7 ## status appears in exactly one of them. Add a status to the class and it shows 8 -## up here; change someone's status and they move. Disabled accounts (active = 0) 9 -## are left out. 8 +## up here; change someone's status and they move. 10 10 ## 11 11 ## Headings use the translation keys XWiki.XWikiUsers_status_<value>, so the page 12 12 ## is bilingual without a single string of its own. ... ... @@ -25,9 +25,7 @@ 25 25 #set( $uDoc = $xwiki.getDocument($ref) ) 26 26 #set( $uObj = $uDoc.getObject('XWiki.XWikiUsers') ) 27 27 #set( $st = "$!uObj.getValue('status')" ) 28 - ## `active` is unset on most user objects, so only an explicit 0 counts as disabled 29 - #set( $isActive = ("$!uObj.getValue('active')" != '0') ) 30 - #if( $people.containsKey($st) && $isActive && !$seen.contains($ref) ) 27 + #if( $people.containsKey($st) && !$seen.contains($ref) ) 31 31 #set( $discard = $seen.add($ref) ) 32 32 ## sort key: surname, then given name, then the reference 33 33 #set( $last = "$!uObj.getValue('last_name')" ) ... ... @@ -48,7 +48,7 @@ 48 48 #if( $group && !$group.isEmpty() ) 49 49 #set( $group = $collectiontool.sort($group) ) 50 50 51 ->$services.localization.render("XWiki.XWikiUsers_status_${status}") 48 +>$services.localization.render("XWiki.XWikiUsers_status_${status}") (%%)//($group.size())// 52 52 53 53 #foreach( $entry in $group )#if( !$foreach.first ) • #end#apicePerson($entry)#end 54 54 ... ... @@ -57,13 +57,13 @@ 57 57 ## 58 58 #### CURRENT PEOPLE — every status except students and past members 59 59 #foreach( $s in $statusList ) 60 - #if( $s != ' student' && $s != 'gone' )57 + #if( $s != 'Student' && $s != 'Gone' ) 61 61 #apiceGroup($s) 62 62 #end 63 63 #end 64 64 ## 65 65 #### PAST MEMBERS 66 -#apiceGroup(' gone')63 +#apiceGroup('Gone') 67 67 ## 68 68 #### anyone whose status is not among those declared by the class — should be empty 69 69 #set( $strays = [] )