Changes for page Supervisors
From version 102.1
edited by Andrea Omicini
on 30/06/2023 00:53
on 30/06/2023 00:53
Change comment:
There is no comment for this version
To version 99.1
edited by Andrea Omicini
on 30/06/2023 00:44
on 30/06/2023 00:44
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -7,7 +7,7 @@ 7 7 ## no tag parameter --> just the cloud 8 8 ## set query 9 9 #set( $query = ", BaseObject as objThesis, LargeStringProperty as propSupervisors, StringProperty as propStatus, DateProperty as propEnddate 10 - where objThesis.name = doc.fullName and objThesis.className = '${objectSpace}.${objectClass}' and objThesis.name <> '${objectSpace}.${objectTemplate}' and propSupervisors.id.id = objThesis.id and propStatus.id.id = objThesis.id and prop Enddate.id.id = objThesis.id and propSupervisors.name = 'supervisors' and propSupervisors.value <> '' and propStatus.name = 'status' and lower(propStatus.value) = 'completed' and propEnddate.name = 'end' order by propEnddate.value desc" )10 + where objThesis.name = doc.fullName and objThesis.className = '${objectSpace}.${objectClass}' and objThesis.name <> '${objectSpace}.${objectTemplate}' and propSupervisors.id.id = objThesis.id and propStatus.id.id = objThesis.id and prop2.id.id = objThesis.id and propSupervisors.name = 'supervisors' and propSupervisors.value <> '' and propStatus.name = 'status' and lower(propStatus.value) = 'completed' and propEnddate.name = 'end' order by propEnddate.value desc" ) 11 11 ## execute query 12 12 #set( $itemFound = $xwiki.searchDocuments($query) ) 13 13 #set( $itemFoundNo = $itemFound.size() ) ... ... @@ -55,8 +55,7 @@ 55 55 #elseif( $nameItemNo == 2 )#set( $tagSize = "100%" ) 56 56 #else#set( $tagSize = "90%" ) 57 57 #end 58 - #set( $urlEscapedName = $escapetool.url($name) ) 59 -<span style='font-size:$tagSize; white-space: nowrap'> [[#if( $name.startsWith("XWiki.") )$xwiki.getUserName($name,false)#else$name#end>>$doc|queryString='tag=$urlEscapedName']]</span><sub class='textprimary' style="font-size: .75em">$nameItemNo</sub>  58 +<span style='font-size:$tagSize; white-space: nowrap'> [[#if( $name.startsWith("XWiki.") )$xwiki.getUserName($name,false)#else$name#end>>$doc]]</span><sub class='textprimary' style="font-size: .75em">$nameItemNo</sub>  60 60 #end 61 61 </div> 62 62 ## cloud bottom ... ... @@ -74,20 +74,15 @@ 74 74 #set( $itemFound = $xwiki.searchDocuments($query) ) 75 75 #set( $itemFoundNo = $itemFound.size() ) 76 76 ## subtitle 77 -<div class="mainheader"> 78 -$itemNo #if( $itemNo > 1)$services.localization.render('theses').toLowerCase()#{else}$services.localization.render('thesis').toLowerCase()#{end} 79 -</div> 80 -## thesis list 81 - #template('apice_thesis_macros.vm') 76 +>$itemFoundNo #if( $itemFoundNo == 1 ){{stringEngIta eng="$objectEngSingular.toLowerCase()" ita="$objectItaSingular.toLowerCase()"/}}#else{{stringEngIta eng="$objectEngPlural.toLowerCase()" ita="$objectItaPlural.toLowerCase()"/}}#end#if( $request.user ) / {{namesFromUsers linked='false'}}$request.user{{/namesFromUsers}}#end#if( $request.name && $request.surname ) / {{namesFromUsers linked='false'}}$request.name $request.surname{{/namesFromUsers}}#end 77 +## talk list 78 +((( 82 82 #foreach( $item in $itemFound ) 83 -<div> 84 -[[image:icon:book]] #thesislinked($item) 85 -</div> 80 +[[image:icon:book]] {{thesis linked="title"}}$item{{/thesis}} 86 86 #end 82 +))) 87 87 ## thesis list bottom 88 -<div class="menuqualifier" style="text-align: right"> 89 -[ [[{{stringEngIta eng="supervisor cloud" ita="nuvola relatori" /}}>>$doc.name]] / $services.localization.render('theses').toLowerCase() ] 90 -</div> 84 +(% style='font-style:oblique;font-size:smaller;text-align:right;color:$theme.textSecondaryColor' %)((([ [[{{stringEngIta eng="supervisor cloud" ita="nuvola supervisori" /}}>>$doc||]] / {{stringEngIta eng = "$objectEngPlural.toLowerCase()" ita = "$objectItaPlural.toLowerCase()"/}} ])))(%%) 91 91 #end 92 92 {{/html}} 93 93 {{/velocity}}{{pageDisplay sort="objectservice"/}}