Changes for page Users
From version 16.1
edited by Andrea Omicini
on 2026/08/29 18:27
on 2026/08/29 18:27
Change comment:
house layout: mainheader, index bar and per-group separators
To version 18.1
edited by Andrea Omicini
on 2026/08/29 18:32
on 2026/08/29 18:32
Change comment:
lowercase the labels in the select bar
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -80,7 +80,7 @@ 80 80 $escapetool.xml($wanted) 81 81 </div> 82 82 <div class="mainselectbar"> 83 -#foreach( $s in $statusList )#if( !$foreach.first ) • #end[[$services.localization.render("XWiki.XWikiUsers_status_${s}")>>path:$doc.getURL('view', "status=${s}")]]#end 83 +#foreach( $s in $statusList )#if( !$foreach.first ) • #end[[$services.localization.render("XWiki.XWikiUsers_status_${s}").toLowerCase()>>path:$doc.getURL('view', "status=${s}")]]#end 84 84 </div> 85 85 #else 86 86 #### page subtitle: how many people, and over what ... ... @@ -99,7 +99,7 @@ 99 99 #### the index bar, only when the page carries more than one group 100 100 #if( $shown.size() > 1 ) 101 101 <div class="mainselectbar" id="index"> 102 -#foreach( $s in $shown )#if( !$foreach.first ) • #end[[$services.localization.render("XWiki.XWikiUsers_status_${s}")>>||anchor="$s"]]#end 102 +#foreach( $s in $shown )#if( !$foreach.first ) • #end[[$services.localization.render("XWiki.XWikiUsers_status_${s}").toLowerCase()>>||anchor="$s"]]#end 103 103 </div> 104 104 #end 105 105 #### one block per group: separator, the people, footer ... ... @@ -118,7 +118,8 @@ 118 118 <span class="textsecondary"> / </span> 119 119 $services.localization.render("XWiki.XWikiUsers_status_${s}") 120 120  •  121 -#anchorlinks() 121 +#### the shared macro also offers the index; with one group there is no index bar 122 +#if( $shown.size() > 1 )#anchorlinks()#else[[$services.localization.render('top').toLowerCase()>>||anchor="top"]] • [[$services.localization.render('bottom').toLowerCase()>>||anchor="bottom"]]#end 122 122 </div> 123 123 #end 124 124 #### anyone whose status is not among those declared by the class — should be empty